/freebsd-11.0-release/contrib/tcpdump/ |
H A D | print-calm-fast.c | 39 calm_fast_print(netdissect_options *ndo, const u_char *eth, const u_char *bp, u_int length) argument 46 ND_PRINT((ndo, "CALM FAST src:%s; ", etheraddr_string(ndo, eth+6)));
|
H A D | print-geonet.c | 105 geonet_print(netdissect_options *ndo, const u_char *eth, const u_char *bp, u_int length) argument 117 ND_PRINT((ndo, "GeoNet src:%s; ", etheraddr_string(ndo, eth+6)));
|
/freebsd-11.0-release/sys/ofed/drivers/infiniband/hw/mlx4/ |
H A D | ah.c | 104 resolve_mcast_mac(&in6, ah->av.eth.mac); 106 memcpy(ah->av.eth.mac, ah_attr->dmac, 6); 111 ah->av.eth.port_pd = cpu_to_be32(to_mpd(pd)->pdn | (ah_attr->port_num << 24)); 112 ah->av.eth.gid_index = ah_attr->grh.sgid_index; 113 ah->av.eth.vlan = cpu_to_be16(vlan_tag); 115 ah->av.eth.stat_rate = ah_attr->static_rate + MLX4_STAT_RATE_OFFSET; 116 while (ah->av.eth.stat_rate > IB_RATE_2_5_GBPS + MLX4_STAT_RATE_OFFSET && 117 !(1 << ah->av.eth.stat_rate & dev->caps.stat_rate_support)) 118 --ah->av.eth.stat_rate; 127 memcpy(ah->av.eth [all...] |
H A D | qp.c | 2554 if (is_eth && ah->av.eth.vlan != 0xffff) { 2555 vlan = cpu_to_be16(ah->av.eth.vlan) & 0x0fff; 2631 memcpy(sqp->ud_header.eth.dmac_h, ah->av.eth.mac, 6); 2633 memcpy(&ctrl->srcrb_flags16[0], ah->av.eth.mac, 2); 2634 memcpy(&ctrl->imm, ah->av.eth.mac + 2, 4); 2640 smac = ah->av.eth.s_mac; /* use the src mac of the tunnel */ 2641 memcpy(sqp->ud_header.eth.smac_h, smac, 6); 2643 if (!memcmp(sqp->ud_header.eth.smac_h, sqp->ud_header.eth [all...] |
H A D | main.c | 1051 memcpy(mlx4_spec->eth.dst_mac, ib_spec->eth.val.dst_mac, 1053 memcpy(mlx4_spec->eth.dst_mac_msk, ib_spec->eth.mask.dst_mac, 1055 mlx4_spec->eth.vlan_tag = ib_spec->eth.val.vlan_tag; 1056 mlx4_spec->eth.vlan_tag_msk = ib_spec->eth.mask.vlan_tag;
|
/freebsd-11.0-release/contrib/wpa/src/l2_packet/ |
H A D | l2_packet_freebsd.c | 60 struct l2_ethhdr *eth = os_malloc(sizeof(*eth) + len); local 61 if (eth == NULL) 63 os_memcpy(eth->h_dest, dst_addr, ETH_ALEN); 64 os_memcpy(eth->h_source, l2->own_addr, ETH_ALEN); 65 eth->h_proto = htons(proto); 66 os_memcpy(eth + 1, buf, len); 67 ret = pcap_inject(l2->pcap, (u8 *) eth, len + sizeof(*eth)); 68 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...] |
/freebsd-11.0-release/sys/ofed/drivers/infiniband/core/ |
H A D | ud_header.c | 86 { STRUCT_FIELD(eth, dmac_h), 90 { STRUCT_FIELD(eth, dmac_l), 94 { STRUCT_FIELD(eth, smac_h), 98 { STRUCT_FIELD(eth, smac_l), 102 { STRUCT_FIELD(eth, type), 253 header->eth.type = cpu_to_be16(ETH_P_8021Q); 301 &header->eth, buf + len);
|
H A D | uverbs.h | 200 struct ib_uverbs_flow_spec_eth eth; member in union:ib_uverbs_flow_spec::__anon12868
|
H A D | uverbs_cmd.c | 3319 ib_spec->eth.size = sizeof(struct ib_flow_spec_eth); 3320 memcpy(&ib_spec->eth.val, &kern_spec->eth.val, 3322 memcpy(&ib_spec->eth.mask, &kern_spec->eth.mask,
|
/freebsd-11.0-release/sys/dev/mlx5/mlx5_en/ |
H A D | mlx5_en_tx.c | 245 wqe->eth.cs_flags |= MLX5_ETH_WQE_L3_CSUM; 248 wqe->eth.cs_flags |= MLX5_ETH_WQE_L4_CSUM; 250 if (wqe->eth.cs_flags == 0) { 258 wqe->eth.mss = cpu_to_be16(mss); 278 (struct ether_vlan_header *)wqe->eth.inline_hdr_start; 299 m_copydata(mb, 0, ihs, wqe->eth.inline_hdr_start); 303 wqe->eth.inline_hdr_sz = cpu_to_be16(ihs); 306 if (likely(ihs > sizeof(wqe->eth.inline_hdr_start))) { 307 ds_cnt += DIV_ROUND_UP(ihs - sizeof(wqe->eth.inline_hdr_start),
|
H A D | en.h | 117 sizeof(((struct mlx5e_tx_wqe *)0)->eth.inline_hdr_start)) /* bytes */ 682 struct mlx5_wqe_eth_seg eth; member in struct:mlx5e_tx_wqe
|
/freebsd-11.0-release/sys/ofed/drivers/net/mlx4/ |
H A D | mcg.c | 819 memcpy(rule_hw->eth.dst_mac, spec->eth.dst_mac, ETH_ALEN); 820 memcpy(rule_hw->eth.dst_mac_msk, spec->eth.dst_mac_msk, 822 memcpy(rule_hw->eth.src_mac, spec->eth.src_mac, ETH_ALEN); 823 memcpy(rule_hw->eth.src_mac_msk, spec->eth.src_mac_msk, 825 if (spec->eth.ether_type_enable) { 826 rule_hw->eth [all...] |
/freebsd-11.0-release/contrib/ipfilter/ipsend/ |
H A D | ip.c | 160 ether_header_t eth; local 202 bcopy((char *)eh, (char *)ð, sizeof(eth)); 226 bcopy((char *)ð, ipbuf, sizeof(eth));
|
/freebsd-11.0-release/sys/contrib/octeon-sdk/ |
H A D | cvmx-helper-board.c | 111 int pip, iface, eth; local 144 eth = fdt_subnode_offset(fdt_addr, iface, name_buffer); 145 if (eth < 0) 151 return eth; 207 int aliases, eth, phy, phy_parent, phandle, ret; local 230 eth = __mix_eth_node(fdt_addr, aliases, interface_index) ; 234 eth = __pip_eth_node(fdt_addr, aliases, ipd_port); 236 if (eth < 0 ) 242 phy_handle = (uint32_t *) fdt_getprop(fdt_addr, eth, "phy-handle", NULL);
|
/freebsd-11.0-release/contrib/wpa/hostapd/ |
H A D | ctrl_iface.c | 1564 const struct ether_header *eth; local 1572 eth = (const struct ether_header *) buf; 1573 os_memcpy(&ip, eth + 1, sizeof(ip)); 1574 pos = &buf[sizeof(*eth) + sizeof(ip)]; 1587 MAC2STR(eth->ether_dhost), MAC2STR(eth->ether_shost)); 1637 struct ether_header *eth; local 1664 eth = (struct ether_header *) &buf[2]; 1665 os_memcpy(eth->ether_dhost, dst, ETH_ALEN); 1666 os_memcpy(eth 1698 struct ether_header *eth; local [all...] |
/freebsd-11.0-release/sys/net/ |
H A D | if_gif.c | 346 struct etherip_header *eth; local 424 eth = mtod(m, struct etherip_header *); 425 eth->eip_resvh = 0; 426 eth->eip_ver = ETHERIP_VERSION; 427 eth->eip_resvl = 0;
|
/freebsd-11.0-release/sys/ofed/include/rdma/ |
H A D | ib_pack.h | 232 struct ib_unpacked_eth eth; member in struct:ib_ud_header
|
/freebsd-11.0-release/sys/dev/ixl/ |
H A D | ixl_pf_main.c | 2756 struct i40e_eth_stats *eth_stats = &stats->eth; 3671 &osd->eth.rx_bytes, &nsd->eth.rx_bytes); 3675 &osd->eth.tx_bytes, &nsd->eth.tx_bytes); 3678 &osd->eth.rx_discards, 3679 &nsd->eth.rx_discards); 3683 &osd->eth.rx_unicast, 3684 &nsd->eth.rx_unicast); 3688 &osd->eth [all...] |
/freebsd-11.0-release/sys/ofed/include/linux/mlx4/ |
H A D | device.h | 110 * -device managed - High level API for ib and eth flow steering. FW is 112 * - B0 steering mode - Common low level API for ib and (if supported) eth. 113 * - A0 steering mode - Limited low level API for eth. In case of IB, 710 struct mlx4_eth_av eth; member in union:mlx4_ext_av 1139 struct mlx4_spec_eth eth; member in union:mlx4_spec_list::__anon13060 1236 struct mlx4_net_trans_rule_hw_eth eth; member in union:_rule_hw::__anon13061
|
/freebsd-11.0-release/contrib/wpa/wpa_supplicant/ |
H A D | wpa_supplicant.c | 3250 const struct l2_ethhdr *eth; local 3252 if (len < sizeof(*eth)) 3254 eth = (const struct l2_ethhdr *) buf; 3256 if (os_memcmp(eth->h_dest, wpa_s->own_addr, ETH_ALEN) != 0 && 3257 !(eth->h_dest[0] & 0x01)) { 3260 MAC2STR(src_addr), MAC2STR(eth->h_dest)); 3265 " (bridge)", MAC2STR(src_addr), MAC2STR(eth->h_dest)); 3266 wpa_supplicant_rx_eapol(wpa_s, src_addr, buf + sizeof(*eth), 3267 len - sizeof(*eth));
|
H A D | ctrl_iface.c | 7502 const struct ether_header *eth; local 7510 eth = (const struct ether_header *) buf; 7511 os_memcpy(&ip, eth + 1, sizeof(ip)); 7512 pos = &buf[sizeof(*eth) + sizeof(ip)]; 7525 MAC2STR(eth->ether_dhost), MAC2STR(eth->ether_shost)); 7566 struct ether_header *eth; local 7593 eth = (struct ether_header *) &buf[2]; 7594 os_memcpy(eth->ether_dhost, dst, ETH_ALEN); 7595 os_memcpy(eth 7627 struct ether_header *eth; local [all...] |
/freebsd-11.0-release/contrib/apr/encoding/ |
H A D | apr_escape.c | 715 "amp\046ETH\320eth\360", /* 3 */
|
/freebsd-11.0-release/sys/contrib/ncsw/inc/Peripherals/ |
H A D | fm_pcd_ext.h | 1044 headerFieldEth_t eth; /**< eth */ member in union:t_FmPcdFields
|
/freebsd-11.0-release/sys/dev/cxgb/ |
H A D | cxgb_sge.c | 2849 int eth, eop = 0, ethpad = 0; local 2854 eth = (opcode == CPL_RX_PKT); 2898 int drop_thresh = eth ? SGE_RX_DROP_THRES : 0; 2919 if (!eth && eop) { 2927 } else if (eth && eop) {
|