pcapfile/protocols/network/ip.py
def strip_ip(packet):
    """
    Remove the IP packet layer, yielding the transport layer.
    """
    if not isinstance(packet, IP):
        packet = IP(packet)
    payload = packet.payload

    return payload
def strip_ip(packet):
    """
    Remove the IP packet layer, yielding the transport layer.
    """
    if not isinstance(packet, IP):
        packet = IP(packet)
    payload = packet.payload

    return payload
Remove the IP packet layer, yielding the transport layer.