Home
last modified time | relevance | path

Searched refs:packet_str (Results 1 – 4 of 4) sorted by relevance

/external/bcc/examples/networking/http_filter/
Dhttp-parse-complete.py149 packet_str = os.read(socket_fd,4096) #set packet length to max packet length on the interface variable
157 packet_bytearray = bytearray(packet_str)
187 ip_src_str = packet_str[ETH_HLEN+12:ETH_HLEN+16] #ip source offset 12..15
188 ip_dst_str = packet_str[ETH_HLEN+16:ETH_HLEN+20] #ip dest offset 16..19
214 port_src_str = packet_str[ETH_HLEN+ip_header_length:ETH_HLEN+ip_header_length+2]
215 port_dst_str = packet_str[ETH_HLEN+ip_header_length+2:ETH_HLEN+ip_header_length+4]
224 payload_string = packet_str[(payload_offset):(len(packet_bytearray))]
Dhttp-parse-simple.py85 packet_str = os.read(socket_fd,2048) variable
92 packet_bytearray = bytearray(packet_str)
/external/bcc/examples/networking/dns_matching/
Ddns_matching.py83 packet_str = os.read(socket_fd, 2048) variable
86 packet_bytearray = bytearray(packet_str)
/external/bcc/examples/networking/vlan_filter/
Ddata-plane-tracing.py105 packet_str = os.read(socket_fd, 2048) variable
108 packet_bytearray = bytearray(packet_str)