/freebsd-current/contrib/wpa/src/l2_packet/ |
H A D | 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 [all...] |
H A D | 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...] |
H A D | l2_packet_freebsd.c | 62 struct l2_ethhdr *eth = os_malloc(sizeof(*eth) + len); local 63 if (eth == NULL) 65 os_memcpy(eth->h_dest, dst_addr, ETH_ALEN); 66 os_memcpy(eth->h_source, l2->own_addr, ETH_ALEN); 67 eth->h_proto = htons(proto); 68 os_memcpy(eth + 1, buf, len); 69 ret = pcap_inject(l2->pcap, (u8 *) eth, len + sizeof(*eth)); 70 os_free(eth); [all...] |
H A D | 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...] |
H A D | l2_packet_linux.c | 174 const struct l2_ethhdr *eth = (const struct l2_ethhdr *) buf; local 182 (os_memcmp(eth->h_dest, l2->own_addr, ETH_ALEN) == 0 || 183 is_multicast_ether_addr(eth->h_dest))) {
|
/freebsd-current/tests/sys/netinet6/ |
H A D | scapyi386.py | 73 eth = pkt.getlayer(sp.Ether) 74 if eth is None: 78 if eth.dst == bcmac: 80 eth.display()
|
/freebsd-current/sys/dev/mlx4/mlx4_ib/ |
H A D | mlx4_ib_ah.c | 90 rdma_get_mcast_mac(&in6, ah->av.eth.mac); 92 memcpy(ah->av.eth.mac, ah_attr->dmac, ETH_ALEN); 98 eth_zero_addr(ah->av.eth.s_mac); 101 memcpy(ah->av.eth.s_mac, if_getlladdr(gid_attr.ndev), ETH_ALEN); 106 ah->av.eth.port_pd = cpu_to_be32(to_mpd(pd)->pdn | (ah_attr->port_num << 24)); 110 ah->av.eth.gid_index = ret; 111 ah->av.eth.vlan = cpu_to_be16(vlan_tag); 112 ah->av.eth.hop_limit = ah_attr->grh.hop_limit; 114 ah->av.eth.stat_rate = ah_attr->static_rate + MLX4_STAT_RATE_OFFSET; 115 while (ah->av.eth [all...] |
H A D | mlx4_ib_main.c | 1303 if (FIELDS_NOT_SUPPORTED(ib_spec->eth.mask, LAST_ETH_FIELD)) 1307 memcpy(mlx4_spec->eth.dst_mac, ib_spec->eth.val.dst_mac, 1309 memcpy(mlx4_spec->eth.dst_mac_msk, ib_spec->eth.mask.dst_mac, 1311 mlx4_spec->eth.vlan_tag = ib_spec->eth.val.vlan_tag; 1312 mlx4_spec->eth.vlan_tag_msk = ib_spec->eth.mask.vlan_tag; 1582 err = mlx4_tunnel_steer_add(to_mdev(qp->device)->dev, ib_spec->eth [all...] |
/freebsd-current/sys/dev/mlx5/mlx5_en/ |
H A D | mlx5_en_tx.c | 396 wqe->eth.swp_outer_l3_offset = eth_hdr_len / 2; 397 wqe->eth.cs_flags = MLX5_ETH_WQE_L3_CSUM | MLX5_ETH_WQE_L4_CSUM; 404 wqe->eth.swp_outer_l4_offset = eth_hdr_len / 2; 405 wqe->eth.swp_flags |= MLX5_ETH_WQE_SWP_OUTER_L4_TYPE; 416 wqe->eth.swp_outer_l3_offset = eth_hdr_len / 2; 417 wqe->eth.cs_flags = MLX5_ETH_WQE_L4_CSUM; 423 wqe->eth.swp_outer_l4_offset = eth_hdr_len / 2; 424 wqe->eth.swp_flags |= MLX5_ETH_WQE_SWP_OUTER_L4_TYPE | 465 wqe->eth.swp_inner_l3_offset = eth_hdr_len / 2; 466 wqe->eth [all...] |
/freebsd-current/tests/sys/netpfil/pf/ |
H A D | frag-overindex.py | 53 eth = [] 55 eth.append(sp.Ether() / f) 59 for e in eth:
|
H A D | frag-overlimit.py | 59 eth = [] 61 eth.append(sp.Ether() / f) 65 for e in eth:
|
H A D | frag-overreplace.py | 58 eth=[] 60 eth.append(sp.Ether() / f) 64 for e in eth:
|
/freebsd-current/tests/sys/netgraph/ |
H A D | ng_macfilter_test.sh | 70 ngctl mkpeer $eth: macfilter lower ether # Connect the lower hook of the ether instance $eth to the ether hook of a new macfilter instance 71 ngctl name $eth:lower MF # Give the macfilter instance a name 72 ngctl mkpeer $eth: one2many upper one # Connect the upper hook of the ether instance $eth to the one hook of a new one2many instance 73 ngctl name $eth:upper O2M # Give the one2many instance a name 235 eth=$(find_iface) 236 if [ -z "$eth" ]; then 242 test_comment "Using $eth..."
|
/freebsd-current/tests/sys/netinet/ |
H A D | arp.sh | 150 eth="$(ifconfig -j ${jname}b ${epair0}b | 162 atf_check -o match:"\(${ipb}\) at $eth on ${epair0}a" \ 194 eth="$(ifconfig -j ${jname}b ${epair0}b | 201 "? (${ipb}) at ${eth} on ${epair0}a expires in ${max_age} seconds [ethernet]\n" 214 "arp: ${eth} attempts to modify permanent entry for ${ipb} on ${epair0}a"
|
/freebsd-current/sys/dev/qlnx/qlnxe/ |
H A D | ecore_l2.c | 1938 p_common->rx_64_byte_packets += port_stats.eth.r64; 1939 p_common->rx_65_to_127_byte_packets += port_stats.eth.r127; 1940 p_common->rx_128_to_255_byte_packets += port_stats.eth.r255; 1941 p_common->rx_256_to_511_byte_packets += port_stats.eth.r511; 1942 p_common->rx_512_to_1023_byte_packets += port_stats.eth.r1023; 1943 p_common->rx_1024_to_1518_byte_packets += port_stats.eth.r1518; 1944 p_common->rx_crc_errors += port_stats.eth.rfcs; 1945 p_common->rx_mac_crtl_frames += port_stats.eth.rxcf; 1946 p_common->rx_pause_frames += port_stats.eth.rxpf; 1947 p_common->rx_pfc_frames += port_stats.eth [all...] |
H A D | ecore_dcbx_api.h | 91 u8 eth; member in struct:ecore_dcbx_app_prio
|
/freebsd-current/sys/dev/mlx4/mlx4_core/ |
H A D | mlx4_mcg.c | 849 memcpy(rule_hw->eth.dst_mac, spec->eth.dst_mac, ETH_ALEN); 850 memcpy(rule_hw->eth.dst_mac_msk, spec->eth.dst_mac_msk, 852 memcpy(rule_hw->eth.src_mac, spec->eth.src_mac, ETH_ALEN); 853 memcpy(rule_hw->eth.src_mac_msk, spec->eth.src_mac_msk, 855 if (spec->eth.ether_type_enable) { 856 rule_hw->eth [all...] |
/freebsd-current/sys/ofed/drivers/infiniband/core/ |
H A D | ib_ud_header.c | 90 { STRUCT_FIELD(eth, dmac_h), 94 { STRUCT_FIELD(eth, dmac_l), 98 { STRUCT_FIELD(eth, smac_h), 102 { STRUCT_FIELD(eth, smac_l), 106 { STRUCT_FIELD(eth, type), 360 header->eth.type = cpu_to_be16(ETH_P_8021Q); 432 &header->eth, (char *)buf + len);
|
/freebsd-current/sbin/ipf/ipsend/ |
H A D | ip.c | 147 ether_header_t eth; local 189 bcopy((char *)eh, (char *)ð, sizeof(eth)); 213 bcopy((char *)ð, ipbuf, sizeof(eth));
|
/freebsd-current/contrib/libpcap/msdos/ |
H A D | pktdrvr.h | 131 extern BOOL PktTransmit (const void *eth, int len);
|
H A D | pktdrvr.c | 444 PUBLIC BOOL PktTransmit (const void *eth, int len) argument 453 dosmemput (eth, len, realBase+pktTxBuf); 458 memcpy ((void*)(realBase+pktTxBuf), eth, len); 463 memcpy (&pktTxBuf, eth, len); 468 reg.r_ds = FP_SEG (eth); 469 reg.r_si = FP_OFF (eth);
|
/freebsd-current/sys/dev/qlnx/qlnxr/ |
H A D | qlnxr_cm.c | 523 memcpy(udh->eth.dmac_h, ah_attr->dmac, ETH_ALEN); 524 memcpy(udh->eth.smac_h, dev->ha->primary_mac, ETH_ALEN); 526 udh->eth.type = htons(ETH_P_8021Q); 530 udh->eth.type = htons(ether_type); 535 udh->eth.dmac_h[j]); 539 udh->eth.smac_h[j]); 642 if (memcmp(udh.eth.smac_h, udh.eth.dmac_h, ETH_ALEN))
|
/freebsd-current/sys/net/ |
H A D | if_gif.c | 283 struct etherip_header *eth; local 364 eth = mtod(m, struct etherip_header *); 365 eth->eip_resvh = 0; 366 eth->eip_ver = ETHERIP_VERSION; 367 eth->eip_resvl = 0;
|
/freebsd-current/sys/dev/ixl/ |
H A D | ixl_pf_main.c | 1043 struct i40e_eth_stats *eth_stats = &stats->eth; 2115 &osd->eth.rx_bytes, &nsd->eth.rx_bytes); 2119 &osd->eth.tx_bytes, &nsd->eth.tx_bytes); 2122 &osd->eth.rx_discards, 2123 &nsd->eth.rx_discards); 2127 &osd->eth.rx_unicast, 2128 &nsd->eth.rx_unicast); 2132 &osd->eth [all...] |
/freebsd-current/sys/dev/mlx5/mlx5_ib/ |
H A D | mlx5_ib_main.c | 1842 if (FIELDS_NOT_SUPPORTED(ib_spec->eth.mask, LAST_ETH_FIELD)) 1847 ib_spec->eth.mask.dst_mac); 1850 ib_spec->eth.val.dst_mac); 1854 ib_spec->eth.mask.src_mac); 1857 ib_spec->eth.val.src_mac); 1859 if (ib_spec->eth.mask.vlan_tag) { 1866 first_vid, ntohs(ib_spec->eth.mask.vlan_tag)); 1868 first_vid, ntohs(ib_spec->eth.val.vlan_tag)); 1872 ntohs(ib_spec->eth.mask.vlan_tag) >> 12); 1875 ntohs(ib_spec->eth [all...] |