Home
last modified time | relevance | path

Searched refs:ETH_HLEN (Results 1 – 25 of 31) sorted by relevance

12

/external/grub/netboot/
Dmain.c367 tr = (struct tftp_t *) &nic.packet[ETH_HLEN]; in tftp()
747 unsigned int protohdrlen = (ETH_HLEN + sizeof (struct iphdr) in await_reply()
764 if (nic.packetlen >= ETH_HLEN) in await_reply()
773 if (nic.packetlen >= ETH_HLEN + sizeof (struct arprequest) in await_reply()
778 arpreply = (struct arprequest *) &nic.packet[ETH_HLEN]; in await_reply()
824 && nic.packetlen >= ETH_HLEN + sizeof (struct arprequest) in await_reply()
827 arpreply = (struct arprequest *) &nic.packet[ETH_HLEN]; in await_reply()
848 ip = (struct iphdr *) &nic.packet[ETH_HLEN]; in await_reply()
870 udp = (struct udphdr *) &nic.packet[(ETH_HLEN in await_reply()
880 &nic.packet[(ETH_HLEN + sizeof (struct iphdr) in await_reply()
[all …]
Detherboot.h60 #define MAX_BOOTP_EXTLEN (ETH_FRAME_LEN - ETH_HLEN - \
96 #define ETH_HLEN 14 /* Size of ethernet header */ macro
104 #define ETH_MAX_MTU (ETH_FRAME_LEN - ETH_HLEN \
Dtiara.c171 len = s + ETH_HLEN; in tiara_transmit()
181 while (s++ < ETH_ZLEN - ETH_HLEN) /* pad */ in tiara_transmit()
Dns8390.c353 memcpy((char *)eth_bmem+ETH_HLEN, p, s); in ns8390_transmit()
354 s += ETH_HLEN; in ns8390_transmit()
374 memcpy((char *)eth_bmem+ETH_HLEN, p, s); in ns8390_transmit()
375 s += ETH_HLEN; in ns8390_transmit()
398 eth_pio_write(p, (eth_tx_start<<8)+ETH_HLEN, s); in ns8390_transmit()
399 s += ETH_HLEN; in ns8390_transmit()
Dni5010.c251 len = s + ETH_HLEN; in ni5010_transmit()
264 while (s++ < ETH_ZLEN - ETH_HLEN) /* Pad to min size */ in ni5010_transmit()
Dotulip.c54 static unsigned char ehdr[ETH_HLEN]; /* buffer for ethernet header */
283 txd.buf1sz = ETH_HLEN; in tulip_transmit()
Dvia-rhine.c1150 memcpy (tp->tx_buffs[entry] + ETH_HLEN, p, s); in rhine_transmit()
1151 s += ETH_HLEN; in rhine_transmit()
1153 *((char *) tp->tx_buffs[entry] + ETH_HLEN + (s++)) = 0; in rhine_transmit()
1155 tp->tx_ring[entry].tx_ctrl.bits.tx_buf_size = ETH_HLEN + s; in rhine_transmit()
Depic100.c319 memcpy(txp + ETH_HLEN, data, len); in epic100_transmit()
321 len += ETH_HLEN; in epic100_transmit()
D3c595.c174 printf("{l=%d,t=%hX}",s+ETH_HLEN,t); in t595_transmit()
180 len=s+ETH_HLEN; /* actual length of packet */ in t595_transmit()
Drtl8139.c344 memcpy(tx_buffer + ETH_HLEN, data, len); in rtl_transmit()
346 len += ETH_HLEN; in rtl_transmit()
Dw89c840.c516 memcpy (tx_packet + ETH_HLEN, p, s); in w89c840_transmit()
517 s += ETH_HLEN; in w89c840_transmit()
520 *((char *) tx_packet + ETH_HLEN + (s++)) = 0; in w89c840_transmit()
Ddepca.c626 memcpy_toio(mem + ETH_HLEN, p, s); in depca_transmit()
627 s += ETH_HLEN; in depca_transmit()
Dfa311.c287 memcpy(txp + ETH_HLEN, data, len); in fa311_transmit()
288 len += ETH_HLEN; in fa311_transmit()
D3c509.c166 printf("{l=%d,t=%hX}",s+ETH_HLEN,t); in t509_transmit()
172 len=s+ETH_HLEN; /* actual length of packet */ in t509_transmit()
Dnatsemi.c626 memcpy(txb + ETH_HLEN, p, s); in natsemi_transmit()
628 s += ETH_HLEN; in natsemi_transmit()
Dlance.c349 memcpy(&lp->tbuf[ETH_HLEN], p, s); in lance_transmit()
350 s += ETH_HLEN; in lance_transmit()
Ddavicom.c568 memcpy(&txb[ETH_HLEN], p, s); /* Frame data */ in davicom_transmit()
571 txd[TxPtr].buf1sz = ETH_HLEN+s; in davicom_transmit()
Dsk_g16.c642 memcpy(&p->ram->tmdbuf[p->tmdnum][ETH_HLEN], pack, s); in SK_transmit()
643 s += ETH_HLEN; in SK_transmit()
Dfsys_tftp.c103 tr = (struct tftp_t *) &nic.packet[ETH_HLEN]; in buf_fill()
/external/qemu/slirp/
Dslirp.c565 #define ETH_HLEN 14 macro
600 struct arphdr *ah = (struct arphdr *)(pkt + ETH_HLEN); in arp_input()
601 uint8_t arp_reply[ETH_HLEN + sizeof(struct arphdr)]; in arp_input()
603 struct arphdr *rah = (struct arphdr *)(arp_reply + ETH_HLEN); in arp_input()
657 if (pkt_len < ETH_HLEN) in slirp_input()
676 m->m_data += 2 + ETH_HLEN; in slirp_input()
677 m->m_len -= 2 + ETH_HLEN; in slirp_input()
692 if (ip_data_len + ETH_HLEN > sizeof(buf)) in if_encap()
696 uint8_t arp_req[ETH_HLEN + sizeof(struct arphdr)]; in if_encap()
698 struct arphdr *rah = (struct arphdr *)(arp_req + ETH_HLEN); in if_encap()
[all …]
/external/qemu/slirp-android/
Dslirp.c654 #define ETH_HLEN 14 macro
689 struct arphdr *ah = (struct arphdr *)(pkt + ETH_HLEN); in arp_input()
690 uint8_t arp_reply[ETH_HLEN + sizeof(struct arphdr)]; in arp_input()
692 struct arphdr *rah = (struct arphdr *)(arp_reply + ETH_HLEN); in arp_input()
750 if (pkt_len < ETH_HLEN) in slirp_input()
769 m->m_data += 2 + ETH_HLEN; in slirp_input()
770 m->m_len -= 2 + ETH_HLEN; in slirp_input()
785 if (ip_data_len + ETH_HLEN > sizeof(buf)) in if_encap()
789 uint8_t arp_req[ETH_HLEN + sizeof(struct arphdr)]; in if_encap()
791 struct arphdr *rah = (struct arphdr *)(arp_req + ETH_HLEN); in if_encap()
[all …]
/external/libpcap/
Dpcap-dos.h24 #define ETH_HLEN (2*ETH_ALEN+2) /* Ether header length */ macro
27 #define ETH_MAX (ETH_MTU+ETH_HLEN)
/external/iproute2/include/linux/
Dif_ether.h32 #define ETH_HLEN 14 /* Total octets in header. */ macro
/external/kernel-headers/original/linux/
Dif_ether.h32 #define ETH_HLEN 14 /* Total octets in header. */ macro
/external/dhcpcd/
Dlpf.c42 # define BPF_ETHCOOK -ETH_HLEN

12