| /netbsd-src/sys/arch/mvme68k/stand/sboot/ |
| H A D | etherfun.h | 53 struct ether_header { struct 108 struct ether_header *eh = (struct ether_header *)buf; 110 (struct ether_arp *)(buf + sizeof(struct ether_header)); 111 struct ip *iph = (struct ip *)(buf + sizeof(struct ether_header)); 112 struct udp *udph = (struct udp *)(buf + sizeof(struct ether_header) + 114 u_char *tftp_r = buf + sizeof(struct ether_header) + sizeof(struct ip) + 116 struct tftph *tftp_a = (struct tftph *)(buf + sizeof(struct ether_header) + 118 struct tftphr *tftp = (struct tftphr *)(buf + sizeof(struct ether_header) +
|
| /netbsd-src/usr.sbin/ndbootd/config/ |
| H A D | ndbootd-bpf.c | 78 BPF_STMT(BPF_LD + BPF_H + BPF_ABS, NDBOOTD_OFFSETOF(struct ether_header, ether_type)), 82 …BPF_STMT(BPF_LD + BPF_B + BPF_ABS, sizeof(struct ether_header) + NDBOOTD_OFFSETOF(struct ip, ip_p)… 86 …BPF_STMT(BPF_LD + BPF_H + BPF_ABS, sizeof(struct ether_header) + NDBOOTD_OFFSETOF(struct ip, ip_of… 91 …BPF_STMT(BPF_LD + BPF_H + BPF_ABS, sizeof(struct ether_header) + NDBOOTD_OFFSETOF(struct ip, ip_le… 92 BPF_STMT(BPF_LDX + BPF_B + BPF_MSH, sizeof(struct ether_header)), 281 if (the_bpf_header.bh_datalen < sizeof(struct ether_header) in ndbootd_raw_read() 282 || !memcmp(((struct ether_header *) in ndbootd_raw_read()
|
| /netbsd-src/sys/lib/libsa/ |
| H A D | ether.c | 64 struct ether_header *eh; in sendether() 71 eh = (struct ether_header *)pkt - 1; in sendether() 96 struct ether_header *eh; in readether() 103 eh = (struct ether_header *)pkt - 1; in readether()
|
| /netbsd-src/usr.sbin/ndbootd/ |
| H A D | ndbootd.c | 314 unsigned char packet_buffer[sizeof(struct ether_header) + IP_MAXPACKET]; in main() 320 struct ether_header *ether_packet; in main() 324 struct ether_header ether_packet_buffer; in main() 510 ether_packet = (struct ether_header *) packet_buffer; in main() 539 < (sizeof(struct ether_header) in main() 546 memcpy(ether_packet, packet_buffer, sizeof(struct ether_header)); in main() 547 memcpy(ip_packet, packet_buffer + sizeof(struct ether_header), in main() 548 (((struct ip *) (packet_buffer + sizeof(struct ether_header)))->ip_hl << 2)); in main() 561 != (sizeof(struct ether_header) in main() 714 …memcpy(nd_packet, packet_buffer + sizeof(struct ether_header) + (ip_packet->ip_hl << 2), sizeof(st… in main() [all …]
|
| /netbsd-src/external/bsd/dhcpcd/dist/src/ |
| H A D | bpf.c | 87 return sizeof(struct ether_header); in bpf_frame_header_len() 100 *len = sizeof(((struct ether_header *)0)->ether_shost); in bpf_frame_header_src() 101 return f + offsetof(struct ether_header, ether_shost); in bpf_frame_header_src() 116 *len = sizeof(((struct ether_header *)0)->ether_dhost); in bpf_frame_header_dst() 117 return f + offsetof(struct ether_header, ether_dhost); in bpf_frame_header_dst() 135 offsetof(struct ether_header, ether_dhost), in bpf_frame_bcast() 319 struct ether_header eh; in bpf_send() 441 offsetof(struct ether_header, ether_type)), 446 BPF_STMT(BPF_LDX + BPF_W + BPF_IMM, sizeof(struct ether_header)), 500 arp_len = sizeof(struct ether_header)+sizeof(struct ether_arp); in bpf_arp_rw() [all …]
|
| /netbsd-src/sys/arch/pmax/stand/common/ |
| H A D | if_prom.c | 251 struct ether_header *eh = (struct ether_header *)pkt; in fill_arpcache() 282 struct ether_header *eh = (struct ether_header *)pkt; in dump_packet_info()
|
| /netbsd-src/sys/net/ |
| H A D | if_ethersubr.c | 168 CTASSERT(sizeof(struct ether_header) == 14); 202 struct ether_header *eh; in ether_output() 365 ((const struct ether_header *)dst->sa_data)->ether_shost, in ether_output() 371 ((const struct ether_header *)dst->sa_data)->ether_dhost, in ether_output() 374 etype = ((const struct ether_header *)dst->sa_data)->ether_type; in ether_output() 409 M_PREPEND(m, sizeof(struct ether_header), M_DONTWAIT); in ether_output() 413 eh = mtod(m, struct ether_header *); in ether_output() 476 * XXX: We may need to do m_pullups here. First to ensure struct ether_header 482 struct ether_header *eh; in altq_etherclassify() 491 eh = mtod(m, struct ether_header *); in altq_etherclassify() [all...] |
| H A D | ether_sw_offload.c | 80 struct ether_header *ep; in ether_sw_offload_tx() 100 ep = mtod(m, struct ether_header *); in ether_sw_offload_tx() 164 struct ether_header *eh; in ether_sw_offload_rx() 189 eh = mtod(m, struct ether_header *); in ether_sw_offload_rx()
|
| H A D | if_l2tp.c | 567 if (m->m_pkthdr.len < sizeof(struct ether_header)) { in l2tp_input() 580 u_int pad = roundup(sizeof(struct ether_header), 4) in l2tp_input() 581 - sizeof(struct ether_header); in l2tp_input() 1453 struct ether_header *eh; in l2tp_tcpmss_clamp() 1467 eh = (struct ether_header *)&evh; in l2tp_tcpmss_clamp() 1503 if (m->m_pkthdr.len <= sizeof(struct ether_header)) in l2tp_tcpmss_clamp() 1505 m_adj(m, sizeof(struct ether_header)); in l2tp_tcpmss_clamp() 1510 M_PREPEND(m, sizeof(struct ether_header), M_DONTWAIT); in l2tp_tcpmss_clamp() 1513 *mtod(m, struct ether_header *) = *eh; in l2tp_tcpmss_clamp() 1519 if (m->m_pkthdr.len <= sizeof(struct ether_header)) in l2tp_tcpmss_clamp() [all …]
|
| /netbsd-src/sys/dev/ic/ |
| H A D | lance.c | 389 ALIGN(m->m_data + sizeof(struct ether_header)) - in lance_get() 390 sizeof(struct ether_header); in lance_get() 425 struct ether_header *eh; in lance_read() 427 if (len <= sizeof(struct ether_header) || in lance_read() 429 ETHER_VLAN_ENCAP_LEN + ETHERMTU + sizeof(struct ether_header) : in lance_read() 430 ETHERMTU + sizeof(struct ether_header))) { in lance_read() 446 eh = mtod(m, struct ether_header *); in lance_read()
|
| /netbsd-src/external/bsd/ipf/dist/ipsend/ |
| H A D | sockraw.c | 72 struct ether_header *eh; in sendip() 75 eh = (struct ether_header *)pkt; in sendip()
|
| H A D | sirix.c | 67 struct ether_header *eh = (struct ether_header *)pkt; in sendip()
|
| /netbsd-src/sys/dev/ofw/ |
| H A D | ofnet.c | 158 if (len < sizeof(struct ether_header)) { in ofnet_read() 220 sizeof(struct ether_header)) - in ofnet_read() 221 sizeof(struct ether_header); in ofnet_read() 298 if (len > ETHERMTU + sizeof(struct ether_header)) { in ofnet_start()
|
| /netbsd-src/usr.sbin/npf/npftest/libnpftest/ |
| H A D | npf_mbuf_subr.c | 130 struct ether_header *ethdr; in mbuf_construct_ether() 133 ethdr = mtod(m0, struct ether_header *); in mbuf_construct_ether() 135 m0->m_pkthdr.len = sizeof(struct ether_header); in mbuf_construct_ether() 136 m0->m_len = sizeof(struct ether_header); in mbuf_construct_ether()
|
| /netbsd-src/sys/rump/net/lib/libvirtif/ |
| H A D | if_virt.c | 340 struct ether_header *eth; in VIF_DELIVERPKT() 346 = ALIGN(sizeof(struct ether_header)) - sizeof(struct ether_header); in VIF_DELIVERPKT() 370 eth = mtod(m, struct ether_header *); in VIF_DELIVERPKT()
|
| /netbsd-src/usr.sbin/rarpd/ |
| H A D | rarpd.c | 104 static void rarp_reply(struct if_info *, struct ether_header *, u_int32_t, 310 sizeof(struct ether_header)), in rarp_open() 368 struct ether_header *ep = (struct ether_header *) p; 577 struct ether_header *ep; 583 ep = (struct ether_header *) pkt; 774 rarp_reply(struct if_info *ii, struct ether_header *ep, u_int32_t ipaddr,
|
| /netbsd-src/sys/dev/scsipi/ |
| H A D | if_dse.c | 111 #define MAX_BYTES_RX (ETHERMTU + sizeof(struct ether_header) + ETHER_CRC_LEN) 384 sc->sc_tbuf = malloc(ETHERMTU + sizeof(struct ether_header) + in dseattach() 434 bpf_attach(ifp, DLT_EN10MB, sizeof(struct ether_header)); in dseattach() 734 ALIGN(m->m_data + sizeof(struct ether_header)) - in dse_get() 735 sizeof(struct ether_header); in dse_get() 767 struct ether_header *eh; in peek_packet() 771 eh = (struct ether_header*)buf; in peek_packet() 774 len = sizeof(struct ether_header); in peek_packet() 786 len += _2btol(buf + sizeof(struct ether_header) + 2); in peek_packet() 855 ntohs(((struct ether_header *)dat in dse_read() [all...] |
| /netbsd-src/sys/net/lagg/ |
| H A D | if_lagg_lacp.h | 99 struct ether_header ldu_eh; 123 struct ether_header mdu_eh;
|
| /netbsd-src/sys/arch/sun3/dev/ |
| H A D | if_ie.c | 762 struct ether_header eh; in ieget() 774 sizeof(struct ether_header)); in ieget() 809 ALIGN(m->m_data + sizeof(struct ether_header)) - in ieget() 810 sizeof(struct ether_header); in ieget() 828 memcpy(mtod(m, void *), &eh, sizeof(struct ether_header)); in ieget() 829 thismboff = sizeof(struct ether_header); in ieget() 830 thisrboff = sizeof(struct ether_header); in ieget() 831 resid -= sizeof(struct ether_header); in ieget() 904 struct ether_header *eh = mtod(m, struct ether_header *); in ie_readframe()
|
| /netbsd-src/sys/arch/newsmips/stand/boot/ |
| H A D | netif_news.c | 115 struct ether_header *eh; in netif_put() 179 struct ether_header *eh = pkt; in netif_get()
|
| /netbsd-src/sys/arch/ofppc/stand/ofwboot/ |
| H A D | netif_of.c | 139 struct ether_header *eh; in netif_put() 202 struct ether_header *eh = pkt; in netif_get()
|
| /netbsd-src/sys/arch/shark/stand/ofwboot/ |
| H A D | netif_of.c | 139 struct ether_header *eh; in netif_put() 202 struct ether_header *eh = pkt; in netif_get()
|
| /netbsd-src/sys/dev/pci/cxgb/ |
| H A D | cxgb_lro.c | 114 struct ether_header *eh = (struct ether_header *)(cpl + 1); in can_lro_packet() 329 struct ether_header *eh = (struct ether_header *)(cpl + 1); in t3_rx_eth_lro()
|
| /netbsd-src/sys/arch/mac68k/dev/ |
| H A D | if_mc.c | 415 if (totlen < ETHERMIN + sizeof(struct ether_header)) { in maceput() 416 int pad = ETHERMIN + sizeof(struct ether_header) - totlen; in maceput() 418 totlen = ETHERMIN + sizeof(struct ether_header); in maceput() 577 if (len <= sizeof(struct ether_header) || in mace_read() 578 len > ETHERMTU + sizeof(struct ether_header)) { in mace_read()
|
| /netbsd-src/sys/arch/macppc/dev/ |
| H A D | am79c950.c | 412 if (totlen < ETHERMIN + sizeof(struct ether_header)) { in maceput() 413 int pad = ETHERMIN + sizeof(struct ether_header) - totlen; in maceput() 415 totlen = ETHERMIN + sizeof(struct ether_header); in maceput() 571 if (len <= sizeof(struct ether_header) || in mace_read() 572 len > ETHERMTU + sizeof(struct ether_header)) { in mace_read()
|