/dports/multimedia/v4l_compat/linux-5.13-rc2/tools/testing/selftests/bpf/prog_tests/ |
H A D | flow_dissector.c | 120 .nhoff = ETH_HLEN, 140 .nhoff = ETH_HLEN, 162 .nhoff = ETH_HLEN + VLAN_HLEN, 208 .nhoff = ETH_HLEN, 233 .nhoff = ETH_HLEN, 255 .nhoff = ETH_HLEN, 280 .nhoff = ETH_HLEN, 302 .nhoff = ETH_HLEN, 325 .nhoff = ETH_HLEN, 351 .nhoff = ETH_HLEN, [all …]
|
/dports/multimedia/libv4l/linux-5.13-rc2/tools/testing/selftests/bpf/prog_tests/ |
H A D | flow_dissector.c | 120 .nhoff = ETH_HLEN, 140 .nhoff = ETH_HLEN, 162 .nhoff = ETH_HLEN + VLAN_HLEN, 208 .nhoff = ETH_HLEN, 233 .nhoff = ETH_HLEN, 255 .nhoff = ETH_HLEN, 280 .nhoff = ETH_HLEN, 302 .nhoff = ETH_HLEN, 325 .nhoff = ETH_HLEN, 351 .nhoff = ETH_HLEN, [all …]
|
/dports/multimedia/v4l-utils/linux-5.13-rc2/tools/testing/selftests/bpf/prog_tests/ |
H A D | flow_dissector.c | 120 .nhoff = ETH_HLEN, 140 .nhoff = ETH_HLEN, 162 .nhoff = ETH_HLEN + VLAN_HLEN, 208 .nhoff = ETH_HLEN, 233 .nhoff = ETH_HLEN, 255 .nhoff = ETH_HLEN, 280 .nhoff = ETH_HLEN, 302 .nhoff = ETH_HLEN, 325 .nhoff = ETH_HLEN, 351 .nhoff = ETH_HLEN, [all …]
|
/dports/multimedia/v4l_compat/linux-5.13-rc2/tools/testing/selftests/bpf/progs/ |
H A D | test_tc_tunnel.c | 27 #define L2_PAD_SZ (sizeof(struct vxlanhdr) + ETH_HLEN) 113 if (bpf_skb_load_bytes(skb, ETH_HLEN, &iph6_inner, in __encap_ipv4() 130 if (bpf_skb_load_bytes(skb, ETH_HLEN, &iph_inner, in __encap_ipv4() 141 if (bpf_skb_load_bytes(skb, ETH_HLEN + tcp_off, in __encap_ipv4() 159 l2_len = ETH_HLEN; in __encap_ipv4() 211 if (bpf_skb_load_bytes(skb, 0, l2_hdr, ETH_HLEN)) in __encap_ipv4() 267 if (bpf_skb_load_bytes(skb, ETH_HLEN, &iph_inner, in __encap_ipv6() 290 l2_len = ETH_HLEN; in __encap_ipv6() 549 olen += ETH_HLEN; in decap_internal() 562 olen += ETH_HLEN; in decap_internal() [all …]
|
H A D | test_check_mtu.c | 71 delta = GLOBAL_USER_MTU - (data_len - ETH_HLEN) + 1; in xdp_exceed_mtu() 96 delta = -((data_len - ETH_HLEN) + 1); in xdp_minus_delta() 123 __u32 mtu_len = data_len - ETH_HLEN; in xdp_input_len() 186 delta = GLOBAL_USER_MTU - (skb_len - ETH_HLEN) + 1; in tc_exceed_mtu() 213 delta = GLOBAL_USER_MTU - (data_len - ETH_HLEN) + 1; in tc_exceed_mtu_da() 236 delta = -((skb_len - ETH_HLEN) + 1); in tc_minus_delta()
|
/dports/multimedia/libv4l/linux-5.13-rc2/tools/testing/selftests/bpf/progs/ |
H A D | test_tc_tunnel.c | 27 #define L2_PAD_SZ (sizeof(struct vxlanhdr) + ETH_HLEN) 113 if (bpf_skb_load_bytes(skb, ETH_HLEN, &iph6_inner, in __encap_ipv4() 130 if (bpf_skb_load_bytes(skb, ETH_HLEN, &iph_inner, in __encap_ipv4() 141 if (bpf_skb_load_bytes(skb, ETH_HLEN + tcp_off, in __encap_ipv4() 159 l2_len = ETH_HLEN; in __encap_ipv4() 211 if (bpf_skb_load_bytes(skb, 0, l2_hdr, ETH_HLEN)) in __encap_ipv4() 267 if (bpf_skb_load_bytes(skb, ETH_HLEN, &iph_inner, in __encap_ipv6() 290 l2_len = ETH_HLEN; in __encap_ipv6() 549 olen += ETH_HLEN; in decap_internal() 562 olen += ETH_HLEN; in decap_internal() [all …]
|
H A D | test_check_mtu.c | 71 delta = GLOBAL_USER_MTU - (data_len - ETH_HLEN) + 1; in xdp_exceed_mtu() 96 delta = -((data_len - ETH_HLEN) + 1); in xdp_minus_delta() 123 __u32 mtu_len = data_len - ETH_HLEN; in xdp_input_len() 186 delta = GLOBAL_USER_MTU - (skb_len - ETH_HLEN) + 1; in tc_exceed_mtu() 213 delta = GLOBAL_USER_MTU - (data_len - ETH_HLEN) + 1; in tc_exceed_mtu_da() 236 delta = -((skb_len - ETH_HLEN) + 1); in tc_minus_delta()
|
/dports/multimedia/v4l-utils/linux-5.13-rc2/tools/testing/selftests/bpf/progs/ |
H A D | test_tc_tunnel.c | 27 #define L2_PAD_SZ (sizeof(struct vxlanhdr) + ETH_HLEN) 113 if (bpf_skb_load_bytes(skb, ETH_HLEN, &iph6_inner, in __encap_ipv4() 130 if (bpf_skb_load_bytes(skb, ETH_HLEN, &iph_inner, in __encap_ipv4() 141 if (bpf_skb_load_bytes(skb, ETH_HLEN + tcp_off, in __encap_ipv4() 159 l2_len = ETH_HLEN; in __encap_ipv4() 211 if (bpf_skb_load_bytes(skb, 0, l2_hdr, ETH_HLEN)) in __encap_ipv4() 267 if (bpf_skb_load_bytes(skb, ETH_HLEN, &iph_inner, in __encap_ipv6() 290 l2_len = ETH_HLEN; in __encap_ipv6() 549 olen += ETH_HLEN; in decap_internal() 562 olen += ETH_HLEN; in decap_internal() [all …]
|
H A D | test_check_mtu.c | 71 delta = GLOBAL_USER_MTU - (data_len - ETH_HLEN) + 1; in xdp_exceed_mtu() 96 delta = -((data_len - ETH_HLEN) + 1); in xdp_minus_delta() 123 __u32 mtu_len = data_len - ETH_HLEN; in xdp_input_len() 186 delta = GLOBAL_USER_MTU - (skb_len - ETH_HLEN) + 1; in tc_exceed_mtu() 213 delta = GLOBAL_USER_MTU - (data_len - ETH_HLEN) + 1; in tc_exceed_mtu_da() 236 delta = -((skb_len - ETH_HLEN) + 1); in tc_minus_delta()
|
/dports/security/tinc-devel/tinc-1.1pre18/src/ |
H A D | fd_device.c | 180 switch(DATA(packet)[ETH_HLEN] >> 4) { 193 memset(DATA(packet), 0, ETH_HLEN - ETHER_TYPE_LEN); 195 DATA(packet)[ETH_HLEN - ETHER_TYPE_LEN] = (ethertype >> 8) & 0xFF; 196 DATA(packet)[ETH_HLEN - ETHER_TYPE_LEN + 1] = ethertype & 0xFF; 200 int lenin = read(device_fd, DATA(packet) + ETH_HLEN, MTU - ETH_HLEN); 215 packet->len = lenin + ETH_HLEN; 225 if(write(device_fd, DATA(packet) + ETH_HLEN, packet->len - ETH_HLEN) < 0) {
|
/dports/multimedia/libv4l/linux-5.13-rc2/samples/bpf/ |
H A D | tcbpf1_kern.c | 21 #define IP_CSUM_OFF (ETH_HLEN + offsetof(struct iphdr, check)) 22 #define TOS_OFF (ETH_HLEN + offsetof(struct iphdr, tos)) 32 #define TCP_CSUM_OFF (ETH_HLEN + sizeof(struct iphdr) + offsetof(struct tcphdr, check)) 33 #define IP_SRC_OFF (ETH_HLEN + offsetof(struct iphdr, saddr)) 46 #define TCP_DPORT_OFF (ETH_HLEN + sizeof(struct iphdr) + offsetof(struct tcphdr, dest)) 58 __u8 proto = load_byte(skb, ETH_HLEN + offsetof(struct iphdr, protocol)); in bpf_prog1()
|
H A D | parse_ldabs.c | 30 __u64 troff = ETH_HLEN + sizeof(struct iphdr); in handle_ingress() 34 if (load_byte(skb, ETH_HLEN + offsetof(struct iphdr, protocol)) != IPPROTO_UDP || in handle_ingress() 35 load_byte(skb, ETH_HLEN) != 0x45) in handle_ingress() 37 if (ip_is_fragment(skb, ETH_HLEN)) in handle_ingress()
|
/dports/multimedia/v4l_compat/linux-5.13-rc2/samples/bpf/ |
H A D | tcbpf1_kern.c | 21 #define IP_CSUM_OFF (ETH_HLEN + offsetof(struct iphdr, check)) 22 #define TOS_OFF (ETH_HLEN + offsetof(struct iphdr, tos)) 32 #define TCP_CSUM_OFF (ETH_HLEN + sizeof(struct iphdr) + offsetof(struct tcphdr, check)) 33 #define IP_SRC_OFF (ETH_HLEN + offsetof(struct iphdr, saddr)) 46 #define TCP_DPORT_OFF (ETH_HLEN + sizeof(struct iphdr) + offsetof(struct tcphdr, dest)) 58 __u8 proto = load_byte(skb, ETH_HLEN + offsetof(struct iphdr, protocol)); in bpf_prog1()
|
H A D | parse_ldabs.c | 30 __u64 troff = ETH_HLEN + sizeof(struct iphdr); in handle_ingress() 34 if (load_byte(skb, ETH_HLEN + offsetof(struct iphdr, protocol)) != IPPROTO_UDP || in handle_ingress() 35 load_byte(skb, ETH_HLEN) != 0x45) in handle_ingress() 37 if (ip_is_fragment(skb, ETH_HLEN)) in handle_ingress()
|
/dports/multimedia/v4l-utils/linux-5.13-rc2/samples/bpf/ |
H A D | tcbpf1_kern.c | 21 #define IP_CSUM_OFF (ETH_HLEN + offsetof(struct iphdr, check)) 22 #define TOS_OFF (ETH_HLEN + offsetof(struct iphdr, tos)) 32 #define TCP_CSUM_OFF (ETH_HLEN + sizeof(struct iphdr) + offsetof(struct tcphdr, check)) 33 #define IP_SRC_OFF (ETH_HLEN + offsetof(struct iphdr, saddr)) 46 #define TCP_DPORT_OFF (ETH_HLEN + sizeof(struct iphdr) + offsetof(struct tcphdr, dest)) 58 __u8 proto = load_byte(skb, ETH_HLEN + offsetof(struct iphdr, protocol)); in bpf_prog1()
|
H A D | parse_ldabs.c | 30 __u64 troff = ETH_HLEN + sizeof(struct iphdr); in handle_ingress() 34 if (load_byte(skb, ETH_HLEN + offsetof(struct iphdr, protocol)) != IPPROTO_UDP || in handle_ingress() 35 load_byte(skb, ETH_HLEN) != 0x45) in handle_ingress() 37 if (ip_is_fragment(skb, ETH_HLEN)) in handle_ingress()
|
/dports/multimedia/v4l_compat/linux-5.13-rc2/drivers/net/wireless/ath/ath10k/ |
H A D | wow.c | 83 u8 hdr_8023_pattern[ETH_HLEN] = {}; in ath10k_wow_convert_8023_to_80211() 84 u8 hdr_8023_bit_mask[ETH_HLEN] = {}; in ath10k_wow_convert_8023_to_80211() 106 old->pattern, ETH_HLEN - old->pkt_offset); in ath10k_wow_convert_8023_to_80211() 108 old->mask, ETH_HLEN - old->pkt_offset); in ath10k_wow_convert_8023_to_80211() 138 if (total_len > ETH_HLEN) in ath10k_wow_convert_8023_to_80211() 158 if (total_len > ETH_HLEN) { in ath10k_wow_convert_8023_to_80211() 162 total_len - ETH_HLEN); in ath10k_wow_convert_8023_to_80211() 165 total_len - ETH_HLEN); in ath10k_wow_convert_8023_to_80211() 167 new->pattern_len += total_len - ETH_HLEN; in ath10k_wow_convert_8023_to_80211() 343 if (patterns[i].pkt_offset < ETH_HLEN) in ath10k_vif_wow_set_wakeups() [all …]
|
/dports/multimedia/v4l-utils/linux-5.13-rc2/drivers/net/wireless/ath/ath10k/ |
H A D | wow.c | 83 u8 hdr_8023_pattern[ETH_HLEN] = {}; in ath10k_wow_convert_8023_to_80211() 84 u8 hdr_8023_bit_mask[ETH_HLEN] = {}; in ath10k_wow_convert_8023_to_80211() 106 old->pattern, ETH_HLEN - old->pkt_offset); in ath10k_wow_convert_8023_to_80211() 108 old->mask, ETH_HLEN - old->pkt_offset); in ath10k_wow_convert_8023_to_80211() 138 if (total_len > ETH_HLEN) in ath10k_wow_convert_8023_to_80211() 158 if (total_len > ETH_HLEN) { in ath10k_wow_convert_8023_to_80211() 162 total_len - ETH_HLEN); in ath10k_wow_convert_8023_to_80211() 165 total_len - ETH_HLEN); in ath10k_wow_convert_8023_to_80211() 167 new->pattern_len += total_len - ETH_HLEN; in ath10k_wow_convert_8023_to_80211() 343 if (patterns[i].pkt_offset < ETH_HLEN) in ath10k_vif_wow_set_wakeups() [all …]
|
/dports/multimedia/libv4l/linux-5.13-rc2/drivers/net/wireless/ath/ath10k/ |
H A D | wow.c | 83 u8 hdr_8023_pattern[ETH_HLEN] = {}; in ath10k_wow_convert_8023_to_80211() 84 u8 hdr_8023_bit_mask[ETH_HLEN] = {}; in ath10k_wow_convert_8023_to_80211() 106 old->pattern, ETH_HLEN - old->pkt_offset); in ath10k_wow_convert_8023_to_80211() 108 old->mask, ETH_HLEN - old->pkt_offset); in ath10k_wow_convert_8023_to_80211() 138 if (total_len > ETH_HLEN) in ath10k_wow_convert_8023_to_80211() 158 if (total_len > ETH_HLEN) { in ath10k_wow_convert_8023_to_80211() 162 total_len - ETH_HLEN); in ath10k_wow_convert_8023_to_80211() 165 total_len - ETH_HLEN); in ath10k_wow_convert_8023_to_80211() 167 new->pattern_len += total_len - ETH_HLEN; in ath10k_wow_convert_8023_to_80211() 343 if (patterns[i].pkt_offset < ETH_HLEN) in ath10k_vif_wow_set_wakeups() [all …]
|
/dports/multimedia/v4l_compat/linux-5.13-rc2/tools/testing/selftests/net/ |
H A D | psock_snd.c | 50 #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()
|
/dports/multimedia/libv4l/linux-5.13-rc2/tools/testing/selftests/net/ |
H A D | psock_snd.c | 50 #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()
|
/dports/multimedia/v4l-utils/linux-5.13-rc2/tools/testing/selftests/net/ |
H A D | psock_snd.c | 50 #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()
|
/dports/net/vde/vde-1.5.7/slirpvde/ |
H A D | slirp.c | 436 #define ETH_HLEN 14 macro 471 struct arphdr *ah = (struct arphdr *)(pkt + ETH_HLEN); in arp_input() 472 uint8_t arp_reply[ETH_HLEN + sizeof(struct arphdr)]; in arp_input() 474 struct arphdr *rah = (struct arphdr *)(arp_reply + ETH_HLEN); in arp_input() 515 if (pkt_len < ETH_HLEN) in slirp_input() 530 m->m_data += ETH_HLEN; in slirp_input() 531 m->m_len -= ETH_HLEN; in slirp_input() 546 if (ip_data_len + ETH_HLEN > sizeof(buf)) in if_encap() 554 slirp_output(buf, ip_data_len + ETH_HLEN); in if_encap()
|
/dports/emulators/qemu60/qemu-6.0.0/slirp/src/ |
H A D | ncsi.c | 140 (const struct ncsi_pkt_hdr *)(pkt + ETH_HLEN); in ncsi_input() 141 uint8_t ncsi_reply[ETH_HLEN + NCSI_MAX_LEN]; in ncsi_input() 144 (struct ncsi_rsp_pkt_hdr *)(ncsi_reply + ETH_HLEN); in ncsi_input() 151 if (pkt_len < ETH_HLEN + sizeof(struct ncsi_pkt_hdr)) { in ncsi_input() 196 slirp_send_packet_all(slirp, ncsi_reply, ETH_HLEN + ncsi_rsp_len); in ncsi_input()
|
/dports/emulators/qemu5/qemu-5.2.0/slirp/src/ |
H A D | ncsi.c | 140 (const struct ncsi_pkt_hdr *)(pkt + ETH_HLEN); in ncsi_input() 141 uint8_t ncsi_reply[ETH_HLEN + NCSI_MAX_LEN]; in ncsi_input() 144 (struct ncsi_rsp_pkt_hdr *)(ncsi_reply + ETH_HLEN); in ncsi_input() 151 if (pkt_len < ETH_HLEN + sizeof(struct ncsi_pkt_hdr)) { in ncsi_input() 196 slirp_send_packet_all(slirp, ncsi_reply, ETH_HLEN + ncsi_rsp_len); in ncsi_input()
|