Searched refs:packet_str (Results 1 – 4 of 4) sorted by relevance
149 packet_str = os.read(socket_fd,4096) #set packet length to max packet length on the interface variable157 packet_bytearray = bytearray(packet_str)187 ip_src_str = packet_str[ETH_HLEN+12:ETH_HLEN+16] #ip source offset 12..15188 ip_dst_str = packet_str[ETH_HLEN+16:ETH_HLEN+20] #ip dest offset 16..19214 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))]
85 packet_str = os.read(socket_fd,2048) variable92 packet_bytearray = bytearray(packet_str)
83 packet_str = os.read(socket_fd, 2048) variable86 packet_bytearray = bytearray(packet_str)
105 packet_str = os.read(socket_fd, 2048) variable108 packet_bytearray = bytearray(packet_str)