Searched refs:ETH_P_IP (Results 1 – 5 of 5) sorted by relevance
48 if((s = socket(PF_PACKET, SOCK_DGRAM, htons(ETH_P_IP))) < 0) { in open_raw_socket()54 bindaddr.sll_protocol = htons(ETH_P_IP); in open_raw_socket()142 destaddr.sll_protocol = htons(ETH_P_IP); in send_packet()
36 ETH_P_IP = 0x0800 variable
183 elif ether.type == net_test.ETH_P_IP:
348 ethertype = {4: net_test.ETH_P_IP, 6: net_test.ETH_P_IPV6}[inner_version]
591 if (proto == ETH_P_IP || proto == ETH_P_ARP || proto == ETH_P_IPV6) in should_forward()