(layer)
return arr
I havent found a neat way to pull RAW bytes out of Scapy packets,
       so I just wrote a small utility function for it.
I havent found a neat way to pull RAW bytes out of Scapy packets,
       so I just wrote a small utility function for it.
I havent found a neat way to pull RAW bytes out of Scapy packets so I just wrote a small utility function for it .
def get_layer_bytes(layer):
    """I havent found a neat way to pull RAW bytes out of Scapy packets,
       so I just wrote a small utility function for it.
    """
    arr = []
    layer = layer.encode('hex')
    for (f, s) in zip(layer[0::2], layer[1::2]):
        arr.append(f + s)
    return arr
def get_layer_bytes ( layer ) : arr = [ ] layer = layer . encode ( 'hex' ) for ( f , s ) in zip ( layer [ 0 : : 2 ] , layer [ 1 : : 2 ] ) : arr . append ( f + s ) return arr