Home
last modified time | relevance | path

Searched refs:ether_type (Results 1 – 25 of 91) sorted by relevance

1234

/netbsd-src/sys/arch/mvme68k/stand/sboot/
H A Detherfun.c42 eh->ether_type = ETYPE_RARP; in do_rev_arp()
65 if (eh->ether_type == ETYPE_RARP && rarp->ar_op == OPCODE_REPLY) { in get_rev_arp()
113 eh->ether_type = ETYPE_IP; in do_send_tftp()
174 if ((eh->ether_type != ETYPE_IP) || in do_get_file()
H A Detherfun.h56 u_short ether_type; member
/netbsd-src/sys/net/
H A Dif_ethersubr.c156 #define llc_snap_ether_type llc_un.type_snap.ether_type
373 /* AF_UNSPEC doesn't swap the byte order of the ether_type. */ in ether_output()
374 etype = ((const struct ether_header *)dst->sa_data)->ether_type; in ether_output()
415 memcpy(&eh->ether_type, &etype, sizeof(eh->ether_type)); in ether_output()
484 uint16_t ether_type; in altq_etherclassify()
493 ether_type = htons(eh->ether_type); in altq_etherclassify()
495 if (ether_type < ETHERMTU) { in altq_etherclassify()
508 ether_type in altq_etherclassify()
483 uint16_t ether_type; altq_etherclassify() local
[all...]
H A Dether_sw_offload.c101 switch (type = ntohs(ep->ether_type)) { in ether_sw_offload_tx()
190 switch (htons(eh->ether_type)) { in ether_sw_offload_rx()
H A Dif_llc.h78 uint16_t ether_type; member
H A Dif_bridge.c2712 uint16_t ether_type; in bridge_ipf()
2717 ether_type = ntohs(eh1->ether_type); in bridge_ipf()
2722 if (ether_type < ETHERMTU) { in bridge_ipf()
2729 ether_type = htons(llc2->llc_un.type_snap.ether_type); in bridge_ipf()
2747 switch (ether_type) { in bridge_ipf()
2774 switch (ether_type) in bridge_ipf()
2697 uint16_t ether_type; bridge_ipf() local
/netbsd-src/sys/arch/pmax/stand/common/
H A Dif_prom.c259 if (ntohs(eh->ether_type) == 0x0800) { in fill_arpcache()
287 printf("ether_type = 0x%x\n", ntohs(eh->ether_type)); in dump_packet_info()
289 if (ntohs(eh->ether_type) == 0x0800) { in dump_packet_info()
/netbsd-src/external/mpl/dhcp/dist/common/
H A Dethernet.c62 eh.ether_type = htons (ETHERTYPE_IP);
83 if (ntohs (eh.ether_type) != ETHERTYPE_IP)
H A Dfddi.c68 lh.llc_un.type_snap.ether_type = htons (ETHERTYPE_IP);
/netbsd-src/sys/lib/libsa/
H A Dether.c76 eh->ether_type = htons(etype); in sendether()
120 *etype = ntohs(eh->ether_type); in readether()
/netbsd-src/sys/arch/newsmips/stand/boot/
H A Dnetif_news.c122 printf("type: 0x%x\n", eh->ether_type & 0xFFFF); in netif_put()
183 printf("type: 0x%x\n", eh->ether_type & 0xFFFF); in netif_get()
/netbsd-src/sys/arch/ofppc/stand/ofwboot/
H A Dnetif_of.c146 printf("type: 0x%x\n", eh->ether_type & 0xFFFF); in netif_put()
206 printf("type: 0x%x\n", eh->ether_type & 0xFFFF); in netif_get()
/netbsd-src/sys/arch/shark/stand/ofwboot/
H A Dnetif_of.c146 printf("type: 0x%x\n", eh->ether_type & 0xFFFF); in netif_put()
206 printf("type: 0x%x\n", eh->ether_type & 0xFFFF); in netif_get()
/netbsd-src/sys/netatalk/
H A Daarp.c204 eh->ether_type = 0; /* if_output will treat as 802 */ in aarpwhohas()
224 eh->ether_type = htons(ETHERTYPE_AARP); in aarpwhohas()
510 eh->ether_type = 0; /* if_output will treat as 802 */ in at_aarpinput()
512 eh->ether_type = htons(ETHERTYPE_AARP); in at_aarpinput()
639 eh->ether_type = 0; /* if_output will treat as 802 */ in aarpprobe()
661 eh->ether_type = htons(ETHERTYPE_AARP); in aarpprobe()
H A Dphase2.h36 #define llc_ether_type llc_un.type_snap.ether_type
/netbsd-src/sys/arch/macppc/stand/ofwboot/
H A Dnetif_of.c150 printf("type: 0x%x\n", eh->ether_type & 0xFFFF); in netif_put()
214 printf("type: 0x%x\n", eh->ether_type & 0xFFFF); in netif_get()
/netbsd-src/sys/arch/sparc/stand/ofwboot/
H A Dnetif_of.c155 printf("type: 0x%x\n", eh->ether_type & 0xFFFF); in netif_put()
218 printf("type: 0x%x\n", eh->ether_type & 0xFFFF); in netif_get()
/netbsd-src/sys/arch/sparc/stand/common/
H A Dnetif_sun.c147 printf("type: 0x%x\n", eh->ether_type & 0xFFFF); in netif_put()
208 printf("type: 0x%x\n", eh->ether_type & 0xFFFF); in netif_get()
/netbsd-src/sys/arch/emips/stand/common/
H A Denic.c318 printf("ether_type = 0x%x\n", ntohs(eh->ether_type)); in dump_packet()
320 if (ntohs(eh->ether_type) == 0x0800) { in dump_packet()
/netbsd-src/external/mpl/dhcp/dist/includes/netinet/
H A Dif_ether.h55 u_int16_t ether_type; member
/netbsd-src/usr.sbin/rarpd/
H A Drarpd.c389 if (ep->ether_type != ETHERTYPE_REVARP ||
391 if (ntohs (ep->ether_type) != ETHERTYPE_REVARP ||
795 ep->ether_type = ETHERTYPE_REVARP;
797 ep->ether_type = htons(ETHERTYPE_REVARP);
/netbsd-src/sys/arch/sun68k/stand/libsa/
H A Dnetif_sun.c292 printf("type: 0x%x\n", eh->ether_type & 0xFFFF); in netif_put()
406 printf("type: 0x%x\n", eh->ether_type & 0xFFFF); in netif_get()
/netbsd-src/sys/arch/x68k/stand/boot/
H A Dif_ne.c122 printf("type: 0x%x\n", eh->ether_type & 0xffff); in ne_put()
/netbsd-src/external/bsd/dhcpcd/dist/src/
H A Dbpf.c326 eh.ether_type = htons(protocol); in bpf_send()
441 offsetof(struct ether_header, ether_type)),
577 offsetof(struct ether_header, ether_type)),
/netbsd-src/external/bsd/ipf/dist/ipsend/
H A Dip.c80 eh->ether_type = htons(ETHERTYPE_IP);
126 eh->ether_type = htons(ETHERTYPE_IP);

1234