| /lib/liblwip/src/include/ipv4/lwip/ |
| D | ip.h | 146 #define IPH_V(hdr) ((hdr)->_v_hl >> 4) argument 147 #define IPH_HL(hdr) ((hdr)->_v_hl & 0x0f) argument 148 #define IPH_TOS(hdr) ((hdr)->_tos) argument 149 #define IPH_LEN(hdr) ((hdr)->_len) argument 150 #define IPH_ID(hdr) ((hdr)->_id) argument 151 #define IPH_OFFSET(hdr) ((hdr)->_offset) argument 152 #define IPH_TTL(hdr) ((hdr)->_ttl) argument 153 #define IPH_PROTO(hdr) ((hdr)->_proto) argument 154 #define IPH_CHKSUM(hdr) ((hdr)->_chksum) argument 156 #define IPH_VHL_SET(hdr, v, hl) (hdr)->_v_hl = (((v) << 4) | (hl)) argument [all …]
|
| D | icmp.h | 91 #define ICMPH_TYPE(hdr) ((hdr)->type) argument 92 #define ICMPH_CODE(hdr) ((hdr)->code) argument 95 #define ICMPH_TYPE_SET(hdr, t) ((hdr)->type = (t)) argument 96 #define ICMPH_CODE_SET(hdr, c) ((hdr)->code = (c)) argument
|
| D | autoip.h | 104 void autoip_arp_reply(struct netif *netif, struct etharp_hdr *hdr);
|
| /bin/ethdump/ |
| D | ethdump.c | 16 struct ether_header *hdr = (struct ether_header *)&buf; in dumpPacket() local 21 hdr->ether_shost[0], hdr->ether_shost[1], hdr->ether_shost[2], in dumpPacket() 22 hdr->ether_shost[3], hdr->ether_shost[4], hdr->ether_shost[5]); in dumpPacket() 24 hdr->ether_dhost[0], hdr->ether_dhost[1], hdr->ether_dhost[2], in dumpPacket() 25 hdr->ether_dhost[3], hdr->ether_dhost[4], hdr->ether_dhost[5]); in dumpPacket() 27 printf("From %s to %s of type %04x\n", srcMac, dstMac, hdr->ether_type); in dumpPacket()
|
| /bin/ethinject/ |
| D | ethinject.c | 55 struct ether_header *hdr = (struct ether_header *)&buf; in main() local 56 hdr->ether_dhost[0] = 0xFF; in main() 57 hdr->ether_dhost[1] = 0xFF; in main() 58 hdr->ether_dhost[2] = 0xFF; in main() 59 hdr->ether_dhost[3] = 0xFF; in main() 60 hdr->ether_dhost[4] = 0xFF; in main() 61 hdr->ether_dhost[5] = 0xFF; in main() 63 hdr->ether_shost[0] = 0x00; in main() 64 hdr->ether_shost[1] = 0x11; in main() 65 hdr->ether_shost[2] = 0x22; in main() [all …]
|
| /lib/libc/ |
| D | malloc.c | 98 Header *hdr; in malloc_small() local 108 hdr = pool[idx].free; in malloc_small() 109 pool[idx].free = hdr->next; in malloc_small() 111 return (void *)(hdr + 1); in malloc_small() 171 Header *hdr = (Header *)mem; in free() local 172 hdr--; in free() 177 assert(hdr->magic == HEAP_MAGIC); in free() 179 if (hdr->size > HEAP_MAX_POOLSIZE) in free() 180 free_large(hdr); in free() 182 free_small(hdr); in free()
|
| /lib/liblwip/src/netif/ |
| D | etharp.c | 690 struct etharp_hdr *hdr; local 714 hdr = (struct etharp_hdr *)((u8_t*)ethhdr + SIZEOF_ETH_HDR); 717 hdr = (struct etharp_hdr *)(((u8_t*)ethhdr) + SIZEOF_ETH_HDR + SIZEOF_VLAN_HDR); 722 if ((hdr->hwtype != PP_HTONS(HWTYPE_ETHERNET)) || 723 (hdr->hwlen != ETHARP_HWADDR_LEN) || 724 (hdr->protolen != sizeof(ip_addr_t)) || 725 (hdr->proto != PP_HTONS(ETHTYPE_IP))) { 728 hdr->hwtype, hdr->hwlen, hdr->proto, hdr->protolen)); 740 autoip_arp_reply(netif, hdr); 745 IPADDR2_COPY(&sipaddr, &hdr->sipaddr); [all …]
|
| /lib/liblwip/src/core/ |
| D | dns.c | 563 struct dns_hdr *hdr; in dns_send() local 581 hdr = (struct dns_hdr*)p->payload; in dns_send() 582 memset(hdr, 0, SIZEOF_DNS_HDR); in dns_send() 583 hdr->id = htons(id); in dns_send() 584 hdr->flags1 = DNS_FLAG1_RD; in dns_send() 585 hdr->numquestions = PP_HTONS(1); in dns_send() 586 query = (char*)hdr + SIZEOF_DNS_HDR; in dns_send() 737 struct dns_hdr *hdr; in dns_recv() local 764 hdr = (struct dns_hdr*)dns_payload; in dns_recv() 765 i = htons(hdr->id); in dns_recv() [all …]
|
| /lib/liblwip/src/core/ipv4/ |
| D | autoip.c | 478 autoip_arp_reply(struct netif *netif, struct etharp_hdr *hdr) in autoip_arp_reply() argument 494 IPADDR2_COPY(&sipaddr, &hdr->sipaddr); in autoip_arp_reply() 495 IPADDR2_COPY(&dipaddr, &hdr->dipaddr); in autoip_arp_reply() 508 !eth_addr_cmp(&netifaddr, &hdr->shwaddr))) { in autoip_arp_reply() 519 !eth_addr_cmp(&netifaddr, &hdr->shwaddr)) { in autoip_arp_reply()
|
| /lib/liblwip/src/include/ipv6/lwip/ |
| D | ip.h | 99 #define IPH_PROTO(hdr) (iphdr->nexthdr) argument
|