def get_option(packet, option_code):
    """
    Parses for the option_code's data from ipconfig output

    packet:
        the packet data from "ipconfig getpacket"

    option_code:
        the DHCP option code to parse, for example "option_121"

    Returns a list populated with each line of packet data corresponding to
    the DHCP option code.
    """
    option = False
    option_data = []
    for line in packet.splitlines():
        if option:
            if line:
                option_data.append(line)
            else:
                option = False

        # this has to come after the decoder for the option line
        if option_code in line:
            option = True
    return option_data