| /src/usr.sbin/npf/npftest/ |
| npfstream.c | 40 const struct ether_header *eth = data; local 49 if (ntohs(eth->ether_type) != ETHERTYPE_IP) { 52 p = eth + 1;
|
| /src/external/bsd/nsd/dist/ |
| xdp-dns-redirect_kern.c | 63 struct ethhdr *eth; local 65 if (!(eth = parse_ethhdr(c))) 68 *eth_proto = eth->h_proto; 86 return eth; 93 struct ethhdr *eth; local 103 if (!(eth = parse_eth(&c, ð_proto)))
|
| xdp-server.c | 177 static inline void swap_eth(struct ethhdr *eth); 642 static inline void swap_eth(struct ethhdr *eth) { 644 memcpy(tmp_mac, eth->h_dest, ETH_ALEN); 645 memcpy(eth->h_dest, eth->h_source, ETH_ALEN); 646 memcpy(eth->h_source, tmp_mac, ETH_ALEN); 746 struct ethhdr *eth = (struct ethhdr *)pkt; local 756 if (*len < (sizeof(*eth) + sizeof(struct iphdr) + sizeof(*udp))) 759 data_before_dnshdr_len = sizeof(*eth) + sizeof(*udp); 761 switch (ntohs(eth->h_proto)) [all...] |
| /src/sys/rump/net/lib/libvirtif/ |
| if_virt.c | 340 struct ether_header *eth; local 370 eth = mtod(m, struct ether_header *); 371 if (memcmp(eth->ether_dhost, CLLADDR(ifp->if_sadl), 374 } else if (ETHER_IS_MULTICAST(eth->ether_dhost)) {
|
| /src/external/bsd/ipf/dist/ipsend/ |
| ip.c | 163 ether_header_t eth; local 205 bcopy((char *)eh, (char *)ð, sizeof(eth)); 229 bcopy((char *)ð, ipbuf, sizeof(eth));
|
| /src/external/bsd/wpa/dist/src/l2_packet/ |
| l2_packet_freebsd.c | 66 struct l2_ethhdr *eth = os_malloc(sizeof(*eth) + len); local 67 if (eth == NULL) 69 os_memcpy(eth->h_dest, dst_addr, ETH_ALEN); 70 os_memcpy(eth->h_source, l2->own_addr, ETH_ALEN); 71 eth->h_proto = htons(proto); 72 os_memcpy(eth + 1, buf, len); 73 ret = pcap_inject(l2->pcap, (u8 *) eth, len + sizeof(*eth)); 74 os_free(eth); [all...] |
| l2_packet_linux.c | 174 const struct l2_ethhdr *eth = (const struct l2_ethhdr *) buf; local 182 (ether_addr_equal(eth->h_dest, l2->own_addr) || 183 is_multicast_ether_addr(eth->h_dest))) {
|
| l2_packet_ndis.c | 96 struct l2_ethhdr *eth; local 116 size_t mlen = sizeof(*eth) + len; 117 eth = os_malloc(mlen); 118 if (eth == NULL) 121 os_memcpy(eth->h_dest, dst_addr, ETH_ALEN); 122 os_memcpy(eth->h_source, l2->own_addr, ETH_ALEN); 123 eth->h_proto = htons(proto); 124 os_memcpy(eth + 1, buf, len); 125 res = WriteFile(driver_ndis_get_ndisuio_handle(), eth, mlen, 127 os_free(eth); [all...] |
| l2_packet_pcap.c | 31 eth_t *eth; member in struct:l2_packet_data 55 l2->eth = eth_open(l2->ifname); 56 if (!l2->eth) { 63 if (eth_get(l2->eth, &own_addr) < 0) { 67 eth_close(l2->eth); 68 l2->eth = NULL; 82 struct l2_ethhdr *eth; local 91 ret = eth_send(l2->eth, buf, len); 94 size_t mlen = sizeof(*eth) + len; 95 eth = os_malloc(mlen) [all...] |
| l2_packet_winpcap.c | 76 struct l2_ethhdr *eth; local 84 size_t mlen = sizeof(*eth) + len; 85 eth = os_malloc(mlen); 86 if (eth == NULL) 89 os_memcpy(eth->h_dest, dst_addr, ETH_ALEN); 90 os_memcpy(eth->h_source, l2->own_addr, ETH_ALEN); 91 eth->h_proto = htons(proto); 92 os_memcpy(eth + 1, buf, len); 93 ret = pcap_sendpacket(l2->pcap, (u8 *) eth, mlen); 94 os_free(eth); [all...] |
| /src/sys/rump/net/lib/libshmif/ |
| if_shmem.c | 747 struct ether_header *eth; local 846 eth = mtod(m, struct ether_header *); 856 } else if (memcmp(eth->ether_dhost, CLLADDR(ifp->if_sadl), 859 } else if (ETHER_IS_MULTICAST(eth->ether_dhost)) {
|
| /src/sys/external/gpl2/dts/dist/arch/arm64/boot/dts/ti/ |
| Makefile | 61 dtb-$(CONFIG_ARCH_K3) += k3-am6xx-phycore-disable-eth-phy.dtbo 93 k3-j7200-evm-dtbs := k3-j7200-common-proc-board.dtb k3-j7200-evm-quad-port-eth-exp.dtbo 97 k3-j721e-evm-dtbs := k3-j721e-common-proc-board.dtb k3-j721e-evm-quad-port-eth-exp.dtbo 122 dtb-$(CONFIG_ARCH_K3) += k3-j784s4-evm-quad-port-eth-exp1.dtbo 132 k3-am625-phyboard-lyra-disable-eth-phy-dtbs := k3-am625-phyboard-lyra-rdk.dtb \ 133 k3-am6xx-phycore-disable-eth-phy.dtbo 167 k3-am642-phyboard-electra-disable-eth-phy-dtbs := \ 168 k3-am642-phyboard-electra-rdk.dtb k3-am6xx-phycore-disable-eth-phy.dtbo 197 k3-j784s4-evm-quad-port-eth-exp1-dtbs := k3-j784s4-evm.dtb \ 198 k3-j784s4-evm-quad-port-eth-exp1.dtb [all...] |
| /src/usr.sbin/npf/npfctl/ |
| npf_build.c | 349 struct ether_addr *eth = data; local 350 npfctl_bpf_ether(ctx, opts, eth);
|
| /src/external/bsd/wpa/dist/src/drivers/ |
| driver_atheros.c | 1654 struct l2_ethhdr *eth; local 1674 eth = (struct l2_ethhdr *) bp; 1675 os_memcpy(eth->h_dest, addr, ETH_ALEN); 1676 os_memcpy(eth->h_source, own_addr, ETH_ALEN); 1677 eth->h_proto = host_to_be16(ETH_P_EAPOL); 1678 os_memcpy(eth + 1, data, data_len);
|
| /src/sys/dev/pci/cxgb/ |
| cxgb_sge.c | 2404 int eth, eop = 0, ethpad = 0; local 2409 eth = (r->rss_hdr.opcode == CPL_RX_PKT); 2447 int drop_thresh = eth ? SGE_RX_DROP_THRES : 0; 2498 if (eth) {
|
| /src/external/bsd/wpa/dist/hostapd/ |
| ctrl_iface.c | 1877 const struct ether_header *eth; local 1883 if (len < sizeof(*eth) + sizeof(ip) || len > HWSIM_PACKETLEN) { 1890 eth = (const struct ether_header *) buf; 1891 os_memcpy(&ip, eth + 1, sizeof(ip)); 1892 pos = &buf[sizeof(*eth) + sizeof(ip)]; 1914 MAC2STR(eth->ether_dhost), MAC2STR(eth->ether_shost), extra); 1969 struct ether_header *eth; local 2005 eth = (struct ether_header *) &buf[2]; 2006 os_memcpy(eth->ether_dhost, dst, ETH_ALEN) 2039 struct ether_header *eth; local [all...] |
| /src/external/bsd/wpa/dist/wpa_supplicant/ |
| wpa_supplicant.c | 5820 const struct l2_ethhdr *eth; local 5822 if (len < sizeof(*eth)) 5824 eth = (const struct l2_ethhdr *) buf; 5826 if (!ether_addr_equal(eth->h_dest, wpa_s->own_addr) && 5827 !(eth->h_dest[0] & 0x01)) { 5830 MAC2STR(src_addr), MAC2STR(eth->h_dest)); 5835 " (bridge)", MAC2STR(src_addr), MAC2STR(eth->h_dest)); 5836 wpa_supplicant_rx_eapol(wpa_s, src_addr, buf + sizeof(*eth), 5837 len - sizeof(*eth), FRAME_ENCRYPTION_UNKNOWN);
|
| ctrl_iface.c | 3439 struct ether_header *eth; local 3464 eth = (struct ether_header *) buf; 3465 os_memcpy(eth->ether_dhost, addr, ETH_ALEN); 3466 os_memcpy(eth->ether_shost, wpa_s->own_addr, ETH_ALEN); 3467 eth->ether_type = htons(ETH_P_802_3); 10001 const struct ether_header *eth; local 10007 if (len < sizeof(*eth) + sizeof(ip) || len > HWSIM_PACKETLEN) { 10014 eth = (const struct ether_header *) buf; 10015 os_memcpy(&ip, eth + 1, sizeof(ip)); 10016 pos = &buf[sizeof(*eth) + sizeof(ip)] 10085 struct ether_header *eth; local 10155 struct ether_header *eth; local [all...] |
| /src/external/apache2/mDNSResponder/dist/mDNSCore/ |
| mDNS.c | 124 mDNSlocal void mDNS_ExtractKeepaliveInfo(AuthRecord *ar, mDNSu32 *timeout, mDNSAddr *laddr, mDNSAddr *raddr, mDNSEthAddr *eth, 134 mDNSlocal mDNSu8 *GetValueForMACAddr(mDNSu8 *ptr, mDNSu8 *limit, mDNSEthAddr *eth); 1681 mDNSEthAddr eth = zeroEthAddr; local 1691 mDNS_ExtractKeepaliveInfo(rr, &timeout, &laddr, raddr, ð, &seq, &ack, &lport, &rport, &win); 7420 mDNSEthAddr eth = zeroEthAddr; local 7435 mDNS_ExtractKeepaliveInfo(rr, &timeout, &laddr, &raddr, ð, &seq, &ack, &lport, &rport, &win); 7469 newrdlength = (mDNSu16)mDNS_snprintf((char *)&txt.c[1], sizeof(txt.c) - 1, "t=%d i=%d c=%d h=%#a d=%#a l=%u r=%u m=%.6a s=%u a=%u w=%u", timeout, kKeepaliveRetryInterval, kKeepaliveRetryCount, &laddr, &raddr, mDNSVal16(lport), mDNSVal16(rport), ð, mti.seq, mti.ack, mti.window); 7471 newrdlength = (mDNSu16)mDNS_snprintf((char *)&txt.c[1], sizeof(txt.c) - 1, "t=%d i=%d c=%d H=%#a D=%#a l=%u r=%u m=%.6a s=%u a=%u w=%u", timeout, kKeepaliveRetryInterval, kKeepaliveRetryCount, &laddr, &raddr, mDNSVal16(lport), mDNSVal16(rport), ð, mti.seq, mti.ack, mti.window); 12846 mDNSlocal mDNSu8 *GetValueForMACAddr(mDNSu8 *ptr, mDNSu8 *limit, mDNSEthAddr *eth) 12868 eth->b[colons] = val [all...] |