Searched refs:ethhdr (Results 1 - 14 of 14) sorted by relevance

/barrelfish-master/lib/lwip2/src/netif/
H A Dethernet.c83 struct eth_hdr* ethhdr; local
98 ethhdr = (struct eth_hdr *)p->payload;
101 (unsigned)ethhdr->dest.addr[0], (unsigned)ethhdr->dest.addr[1], (unsigned)ethhdr->dest.addr[2],
102 (unsigned)ethhdr->dest.addr[3], (unsigned)ethhdr->dest.addr[4], (unsigned)ethhdr->dest.addr[5],
103 (unsigned)ethhdr->src.addr[0], (unsigned)ethhdr
268 struct eth_hdr* ethhdr; local
[all...]
H A Dethernetif.c259 struct eth_hdr *ethhdr;
/barrelfish-master/lib/lwip/src/netif/
H A Detharp.c468 struct eth_hdr *ethhdr = p->payload; local
477 ethhdr->dest.addr[k] = dst->addr[k];
478 ethhdr->src.addr[k] = src->addr[k];
480 ethhdr->type = htons(ETHTYPE_IP);
705 || (hdr->ethhdr.type != htons(ETHTYPE_ARP))) {
710 ARPH_PROTOLEN(hdr), hdr->ethhdr.type));
792 hdr->ethhdr.dest.addr[i] = ethdst_hwaddr[i];
794 hdr->ethhdr.dest.addr[i] = hdr->shwaddr.addr[i];
797 hdr->ethhdr.src.addr[i] = ethaddr->addr[i];
1214 hdr->ethhdr
1275 struct eth_hdr *ethhdr; local
[all...]
H A Dbfeth.c193 struct eth_hdr *ethhdr; local
215 ethhdr = p->payload;
232 switch (htons(ethhdr->type)) {
259 ("unknown type %x!!!!!\n", htons(ethhdr->type)));
H A Dethernetif.c219 struct eth_hdr *ethhdr;
230 ethhdr = p->payload;
232 switch (htons(ethhdr->type)) {
/barrelfish-master/lib/lwip2/test/minimal/
H A Dmain.c146 struct eth_hdr* ethhdr = p->payload; local
150 memset(ethhdr->dest.addr, 0xaa, sizeof(ethhdr->dest.addr));
151 memset(ethhdr->src.addr, 0xbb, sizeof(ethhdr->src.addr));
152 ethhdr->type = PP_HTONS(ETHTYPE_IP);
/barrelfish-master/lib/lwip2/src/netif/ppp/
H A Dpppoe.c389 struct eth_hdr *ethhdr; local
399 if (pb->len < sizeof(*ethhdr)) {
402 ethhdr = (struct eth_hdr *)pb->payload;
403 off = sizeof(*ethhdr);
417 ph = (struct pppoehdr *) (ethhdr + 1);
601 MEMCPY(&sc->sc_dest, ethhdr->src.addr, sizeof(sc->sc_dest.addr));
721 struct eth_hdr *ethhdr; local
733 ethhdr = (struct eth_hdr *)pb->payload;
735 ethhdr->type = lwip_htons(etype);
736 MEMCPY(&ethhdr
1032 struct eth_hdr *ethhdr; local
[all...]
/barrelfish-master/include/lwip2/netif/ppp/
H A Dpppoe.c389 struct eth_hdr *ethhdr; local
399 if (pb->len < sizeof(*ethhdr)) {
402 ethhdr = (struct eth_hdr *)pb->payload;
403 off = sizeof(*ethhdr);
417 ph = (struct pppoehdr *) (ethhdr + 1);
601 MEMCPY(&sc->sc_dest, ethhdr->src.addr, sizeof(sc->sc_dest.addr));
721 struct eth_hdr *ethhdr; local
733 ethhdr = (struct eth_hdr *)pb->payload;
735 ethhdr->type = lwip_htons(etype);
736 MEMCPY(&ethhdr
1032 struct eth_hdr *ethhdr; local
[all...]
/barrelfish-master/usr/tests/e10ktest/
H A De10ktest_latencies.c158 struct eth_hdr *ethhdr = (struct eth_hdr *)p->payload; local
159 switch (htons(ethhdr->type)) {
236 memcpy(&myeth->dest, &ethhdr->src, ETHARP_HWADDR_LEN);
237 memcpy(&myeth->src, &ethhdr->dest, ETHARP_HWADDR_LEN);
H A De10ktest.c374 struct eth_hdr *ethhdr = (struct eth_hdr *)p->payload; local
375 switch (htons(ethhdr->type)) {
466 memcpy(&myeth->dest, &ethhdr->src, ETHARP_HWADDR_LEN);
467 memcpy(&myeth->src, &ethhdr->dest, ETHARP_HWADDR_LEN);
494 memcpy(&newpeer->mac.addr, &ethhdr->src.addr, ETHARP_HWADDR_LEN);
H A Dsubways.c431 struct eth_hdr *ethhdr = (struct eth_hdr *)p->payload; local
432 switch (htons(ethhdr->type)) {
570 memcpy(&newpeer->mac.addr, &ethhdr->src.addr, ETHARP_HWADDR_LEN);
689 struct eth_hdr *ethhdr = (struct eth_hdr *)p; local
717 memcpy(&ethhdr->dest, &ethhdr->src, ETHARP_HWADDR_LEN);
718 memcpy(&ethhdr->src, arranet_mymac, ETHARP_HWADDR_LEN);
719 /* memcpy(&myeth->src, &ethhdr->dest, ETHARP_HWADDR_LEN); */
730 /* switch (htons(ethhdr->type)) { */
/barrelfish-master/include/lwip/netif/
H A Detharp.h91 PACK_STRUCT_FIELD(struct eth_hdr ethhdr);
/barrelfish-master/lib/devif/backends/net/mlx4/include/linux/
H A Dif_ether.h135 struct ethhdr { struct
/barrelfish-master/lib/arranet/
H A Darranet.c2110 struct eth_hdr *ethhdr = (struct eth_hdr *)p->payload; local
2111 switch (htons(ethhdr->type)) {
2360 ph->eth.dest = ethhdr->src;
2440 memcpy(&newpeer->mac.addr, &ethhdr->src.addr, ETHARP_HWADDR_LEN);

Completed in 1045 milliseconds