Searched defs:iphdr (Results 1 - 17 of 17) sorted by relevance

/external/syslinux/core/lwip/src/include/ipv4/lwip/
H A Dip_frag.h57 struct ip_hdr iphdr; member in struct:ip_reassdata
/external/syslinux/core/lwip/src/core/ipv4/
H A Dicmp.c84 struct ip_hdr *iphdr; local
91 iphdr = (struct ip_hdr *)p->payload;
92 hlen = IPH_HL(iphdr) * 4;
168 iphdr = (struct ip_hdr *)r->payload;
190 ip_addr_copy(iphdr->src, *ip_current_dest_addr());
191 ip_addr_copy(iphdr->dest, *ip_current_src_addr());
201 IPH_TTL_SET(iphdr, ICMP_TTL);
202 IPH_CHKSUM_SET(iphdr, 0);
204 IPH_CHKSUM_SET(iphdr, inet_chksum(iphdr, IP_HLE
290 struct ip_hdr *iphdr; local
[all...]
H A Digmp.c392 struct ip_hdr * iphdr; local
400 iphdr = (struct ip_hdr *)p->payload;
401 if (pbuf_header(p, -(s16_t)(IPH_HL(iphdr) * 4)) || (p->len < IGMP_MINLEN)) {
409 ip_addr_debug_print(IGMP_DEBUG, &(iphdr->src));
411 ip_addr_debug_print(IGMP_DEBUG, &(iphdr->dest));
H A Dip.c156 * @param iphdr the IP header of the input packet
160 ip_forward(struct pbuf *p, struct ip_hdr *iphdr, struct netif *inp) argument
190 IPH_TTL_SET(iphdr, IPH_TTL(iphdr) - 1);
192 if (IPH_TTL(iphdr) == 0) {
196 if (IPH_PROTO(iphdr) != IP_PROTO_ICMP) {
204 if (IPH_CHKSUM(iphdr) >= PP_HTONS(0xffffU - 0x100)) {
205 IPH_CHKSUM_SET(iphdr, IPH_CHKSUM(iphdr) + PP_HTONS(0x100) + 1);
207 IPH_CHKSUM_SET(iphdr, IPH_CHKSU
244 struct ip_hdr *iphdr; local
591 struct ip_hdr *iphdr; local
819 struct ip_hdr *iphdr = (struct ip_hdr *)p->payload; local
[all...]
H A Dip_frag.c179 SMEMCPY(p->payload, &ipr->iphdr, IP_HLEN);
238 if (!IP_ADDRESSES_AND_ID_MATCH(&r->iphdr, fraghdr)) {
295 SMEMCPY(&(ipr->iphdr), fraghdr, IP_HLEN);
524 if (IP_ADDRESSES_AND_ID_MATCH(&ipr->iphdr, fraghdr)) {
542 ((ntohs(IPH_OFFSET(&ipr->iphdr)) & IP_OFFMASK) != 0)) {
543 /* ipr->iphdr is not the header from the first fragment, but fraghdr is
544 * -> copy fraghdr into ipr->iphdr since we want to have the header
547 SMEMCPY(&ipr->iphdr, fraghdr, IP_HLEN);
577 SMEMCPY(fraghdr, &ipr->iphdr, IP_HLEN);
678 struct ip_hdr *iphdr; local
[all...]
/external/syslinux/core/lwip/src/core/
H A Draw.c79 struct ip_hdr *iphdr; local
85 iphdr = (struct ip_hdr *)p->payload;
86 proto = IPH_PROTO(iphdr);
H A Dtcp_in.c64 static struct ip_hdr *iphdr; variable in typeref:struct:ip_hdr
108 iphdr = (struct ip_hdr *)p->payload;
109 tcphdr = (struct tcp_hdr *)((u8_t *)p->payload + IPH_HL(iphdr) * 4);
116 if (pbuf_header(p, -((s16_t)(IPH_HL(iphdr) * 4))) || (p->tot_len < sizeof(struct tcp_hdr))) {
H A Dudp.c89 struct ip_hdr *iphdr; local
98 iphdr = (struct ip_hdr *)p->payload;
102 if (p->tot_len < (IPH_HL(iphdr) * 4 + UDP_HLEN) || pbuf_header(p, -(s16_t)(IPH_HL(iphdr) * 4))) {
130 ip4_addr1_16(&iphdr->dest), ip4_addr2_16(&iphdr->dest),
131 ip4_addr3_16(&iphdr->dest), ip4_addr4_16(&iphdr->dest), ntohs(udphdr->dest),
132 ip4_addr1_16(&iphdr->src), ip4_addr2_16(&iphdr
[all...]
/external/syslinux/gpxe/src/core/
H A Dgdbudp.c62 struct iphdr *iphdr; local
111 if ( iob_len ( iob ) < sizeof ( *iphdr ) ) {
114 iphdr = iob->data;
115 iob_pull ( iob, sizeof ( *iphdr ) );
116 if ( iphdr->protocol != IP_UDP || iphdr->dest.s_addr != source_addr.sin_addr.s_addr ) {
131 dest_addr.sin_addr.s_addr = iphdr->src.s_addr;
159 struct iphdr *iphdr; local
[all...]
/external/syslinux/gpxe/src/include/gpxe/
H A Dip.h39 struct iphdr { struct
/external/syslinux/gpxe/src/net/
H A Dipv4.c166 struct iphdr *iphdr = iobuf->data; local
173 if ( fragbuf->ident == iphdr->ident &&
174 fragbuf->src.s_addr == iphdr->src.s_addr ) {
183 ( iphdr->frags & IP_MASK_OFFSET ) ) {
188 iob_pull ( iobuf, sizeof ( *iphdr ) );
195 if ( ! ( iphdr->frags & IP_MASK_MOREFRAGS ) ) {
211 if ( iphdr->frags & IP_MASK_MOREFRAGS &&
212 ( ( iphdr->frags & IP_MASK_OFFSET ) == 0 ) ) {
216 fragbuf->ident = iphdr
247 struct iphdr *iphdr = iobuf->data; local
307 struct iphdr *iphdr = iob_push ( iobuf, sizeof ( *iphdr ) ); local
386 struct iphdr *iphdr = iobuf->data; local
[all...]
/external/android-clat/
H A Dtranslate.c123 void fill_ip_header(struct iphdr *ip, uint16_t payload_len, uint8_t protocol,
126 memset(ip, 0, sizeof(struct iphdr));
131 ip->tot_len = htons(sizeof(struct iphdr) + payload_len);
158 const struct iphdr *old_header) {
179 const struct iphdr *old_header) {
207 uint8_t parse_frag_header(const struct ip6_frag *frag_hdr, struct iphdr *ip_targ) {
500 char iphdr[sizeof(struct ip6_hdr)]; local
510 { iphdr, 0 }, // IP header.
/external/syslinux/core/lwip/src/api/
H A Dapi_msg.c182 const struct ip_hdr* iphdr = ip_current_header(); local
184 const struct udp_hdr* udphdr = (void*)(((char*)iphdr) + IPH_LEN(iphdr));
/external/syslinux/core/lwip/src/netif/
H A Detharp.c622 struct ip_hdr *iphdr; local
629 iphdr = (struct ip_hdr *)((u8_t*)ethhdr + SIZEOF_ETH_HDR);
632 iphdr = (struct ip_hdr *)((u8_t*)ethhdr + SIZEOF_ETH_HDR + SIZEOF_VLAN_HDR);
636 ip_addr_copy(iphdr_src, iphdr->src);
876 struct ip_hdr *iphdr = (struct ip_hdr*)((u8_t*)q->payload + local
882 if (!ip_addr_islinklocal(&iphdr->src))
H A Dundiif.c293 struct ip_hdr *iphdr; local
295 iphdr = (struct ip_hdr *)((void *)ethhdr + 14);
300 ip4_addr1(&iphdr->src), ip4_addr2(&iphdr->src),
301 ip4_addr3(&iphdr->src), ip4_addr4(&iphdr->src),
302 ip4_addr1(&iphdr->dest), ip4_addr2(&iphdr->dest),
303 ip4_addr3(&iphdr->dest), ip4_addr4(&iphdr
317 struct ip_hdr *iphdr; local
342 struct ip_hdr *iphdr; local
368 struct ip_hdr *iphdr; local
[all...]
/external/kernel-headers/original/uapi/linux/
H A Dip.h85 struct iphdr { struct
/external/libnl/include/linux-private/linux/
H A Dip.h85 struct iphdr { struct

Completed in 457 milliseconds