Home
last modified time | relevance | path

Searched refs:ETH_HLEN (Results 1 – 23 of 23) sorted by relevance

/external/bcc/examples/networking/http_filter/
Dhttp-parse-complete.py160 ETH_HLEN = 14 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
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
209 tcp_header_length = packet_bytearray[ETH_HLEN + ip_header_length + 12] #load Byte
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]
221 payload_offset = ETH_HLEN + ip_header_length + tcp_header_length
Dhttp-parse-simple.py95 ETH_HLEN = 14 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
142 payload_offset = ETH_HLEN + ip_header_length + tcp_header_length
Dhttp-parse-simple.c6 #define ETH_HLEN 14 macro
58 payload_offset = ETH_HLEN + ip_header_length + tcp_header_length; in http_filter()
Dhttp-parse-complete.c6 #define ETH_HLEN 14 macro
87 payload_offset = ETH_HLEN + ip_header_length + tcp_header_length; in http_filter()
/external/linux-kselftest/tools/testing/selftests/net/
Dpsock_snd.c50 #define TEST_SZ (sizeof(struct virtio_net_hdr) + ETH_HLEN + ETH_MAX_MTU + 1)
80 vh->hdr_len = ETH_HLEN + sizeof(struct iphdr) + sizeof(struct udphdr); in build_vnet_header()
84 vh->csum_start = ETH_HLEN + sizeof(struct iphdr); in build_vnet_header()
106 uint16_t *tag = header + ETH_HLEN; in build_eth_header()
110 return ETH_HLEN + 4; in build_eth_header()
114 return ETH_HLEN; in build_eth_header()
193 buf += ETH_HLEN; in do_send()
194 len -= ETH_HLEN; in do_send()
/external/bcc/examples/networking/vlan_filter/
Ddata-plane-tracing.py111 ETH_HLEN = 14 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
134 payload_offset = ETH_HLEN + ip_header_length + UDP_HLEN + VXLAN_HLEN
Ddata-plane-tracing.c12 #define ETH_HLEN 14 macro
/external/wpa_supplicant_8/src/ap/
Dndisc_snoop.c107 if (len < ETH_HLEN + sizeof(struct ip6_hdr) + sizeof(struct icmp6_hdr)) in handle_ndisc()
109 msg = (struct icmpv6_ndmsg *) &buf[ETH_HLEN]; in handle_ndisc()
112 if (len < ETH_HLEN + sizeof(*msg)) in handle_ndisc()
124 if (len < ETH_HLEN + sizeof(*msg) + ETH_ALEN) in handle_ndisc()
Ddhcp_snoop.c44 exten_len = len - ETH_HLEN - (sizeof(*b) - sizeof(b->exten)); in handle_dhcp()
48 b = (const struct bootp_pkt *) &buf[ETH_HLEN]; in handle_dhcp()
50 if (tot_len > (unsigned int) (len - ETH_HLEN)) in handle_dhcp()
/external/bcc/examples/networking/dns_matching/
Ddns_matching.py88 ETH_HLEN = 14 variable
93 ip_header_length = packet_bytearray[ETH_HLEN] #load Byte
98 payload_offset = ETH_HLEN + ip_header_length + UDP_HLEN
/external/libpcap/
Dpcap-dos.h22 #define ETH_HLEN (2*ETH_ALEN+2) /* Ether header length */ macro
25 #define ETH_MAX (ETH_MTU+ETH_HLEN)
/external/libnl/include/linux-private/linux/
Dif_ether.h32 #define ETH_HLEN 14 /* Total octets in header. */ macro
/external/iproute2/include/uapi/linux/
Dif_ether.h33 #define ETH_HLEN 14 /* Total octets in header. */ macro
/external/kernel-headers/original/uapi/linux/
Dif_ether.h34 #define ETH_HLEN 14 /* Total octets in header. */ macro
/external/u-boot/include/
Dusb_ether.h16 #define ETH_HLEN 14 /* Total octets in header. */ macro
/external/wpa_supplicant_8/src/utils/
Dcommon.h317 #ifndef ETH_HLEN
318 #define ETH_HLEN 14 macro
/external/u-boot/drivers/net/
Dmvneta.c46 #define ETH_HLEN 14 /* Total octets in header */ macro
49 #define WRAP (2 + ETH_HLEN + 4 + 32)
Dmvpp2.c71 #define ETH_HLEN ETHER_HDR_SIZE /* Total octets in header */ macro
74 #define WRAP (2 + ETH_HLEN + 4 + 32)
658 ETH_HLEN + ETH_FCS_LEN, MVPP2_CPU_D_CACHE_LINE_SIZE)
/external/u-boot/drivers/usb/gadget/
Dether.c75 #define ETH_HLEN 14 /* Total octets in header. */ macro
1578 if (req->actual < ETH_HLEN || ETH_FRAME_LEN < req->actual) { in rx_complete()
Drndis.c39 #define ETH_HLEN 14 /* Total octets in header. */ macro
/external/wpa_supplicant_8/hostapd/
Dctrl_iface.c1980 if (len & 1 || len < ETH_HLEN * 2) in hostapd_ctrl_iface_data_test_frame()
/external/linux-kselftest/tools/testing/selftests/bpf/
Dtest_verifier.c11039 .retval = TEST_DATA_LEN + TEST_DATA_LEN - ETH_HLEN - ETH_HLEN,
/external/wpa_supplicant_8/wpa_supplicant/
Dctrl_iface.c9021 if (len & 1 || len < ETH_HLEN * 2) in wpas_ctrl_iface_data_test_frame()