Home
last modified time | relevance | path

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

/external/bcc/examples/networking/vlan_filter/
Ddata-plane-tracing.py108 packet_bytearray = bytearray(packet_str) variable
124 total_length = packet_bytearray[ETH_HLEN + 2] #load MSB
126 total_length = total_length + packet_bytearray[ETH_HLEN+3] #add LSB
129 ip_header_length = packet_bytearray[ETH_HLEN] #load Byte
137 ipversion = str(bin(packet_bytearray[14])[2:5])
140 …rc_host_ip = str(packet_bytearray[26]) + "." + str(packet_bytearray[27]) + "." + str(packet_bytear…
141 …st_host_ip = str(packet_bytearray[30]) + "." + str(packet_bytearray[31]) + "." + str(packet_bytear…
144 src_host_port = packet_bytearray[34] << 8 | packet_bytearray[35]
145 dest_host_port = packet_bytearray[36] << 8 | packet_bytearray[37]
148 VNI = str((packet_bytearray[46])+(packet_bytearray[47])+(packet_bytearray[48]))
[all …]
/external/bcc/examples/networking/http_filter/
Dhttp-parse-simple.py92 packet_bytearray = bytearray(packet_str) variable
112 total_length = packet_bytearray[ETH_HLEN + 2] #load MSB
114 total_length = total_length + packet_bytearray[ETH_HLEN+3] #add LSB
117 ip_header_length = packet_bytearray[ETH_HLEN] #load Byte
137 tcp_header_length = packet_bytearray[ETH_HLEN + ip_header_length + 12] #load Byte
147 for i in range (payload_offset-1,len(packet_bytearray)-1):
148 if (packet_bytearray[i]== 0x0A):
149 if (packet_bytearray[i-1] == 0x0D):
151 print ("%c" % chr(packet_bytearray[i]), end = "")
Dhttp-parse-complete.py157 packet_bytearray = bytearray(packet_str) variable
177 total_length = packet_bytearray[ETH_HLEN + 2] #load MSB
179 total_length = total_length + packet_bytearray[ETH_HLEN+3] #add LSB
182 ip_header_length = packet_bytearray[ETH_HLEN] #load Byte
209 tcp_header_length = packet_bytearray[ETH_HLEN + ip_header_length + 12] #load Byte
224 payload_string = packet_str[(payload_offset):(len(packet_bytearray))]
/external/bcc/examples/networking/dns_matching/
Ddns_matching.py86 packet_bytearray = bytearray(packet_str) variable
93 ip_header_length = packet_bytearray[ETH_HLEN] #load Byte
100 payload = packet_bytearray[payload_offset:]