HomeSort by relevance Sort by last modified time
    Searched defs:iphdr (Results 1 - 25 of 212) sorted by null

1 2 3 4 5 6 7 8 9

  /external/syslinux/core/lwip/src/include/ipv4/lwip/
ip_frag.h 57 struct ip_hdr iphdr; member in struct:ip_reassdata
  /external/syslinux/core/lwip/src/core/ipv4/
icmp.c 84 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_HLEN))
290 struct ip_hdr *iphdr; local
    [all...]
ip.c 156 * @param iphdr the IP header of the input packet
160 ip_forward(struct pbuf *p, struct ip_hdr *iphdr, struct netif *inp)
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_CHKSUM(iphdr) + PP_HTONS(0x100))
244 struct ip_hdr *iphdr; local
591 struct ip_hdr *iphdr; local
819 struct ip_hdr *iphdr = (struct ip_hdr *)p->payload; local
    [all...]
igmp.c 392 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));
ip_frag.c 179 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/
raw.c 79 struct ip_hdr *iphdr; local
85 iphdr = (struct ip_hdr *)p->payload;
86 proto = IPH_PROTO(iphdr);
udp.c 89 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->src)
    [all...]
tcp_in.c 64 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))) {
    [all...]
  /external/syslinux/gpxe/src/core/
gdbudp.c 62 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/
ip.h 39 struct iphdr { struct
  /external/android-clat/
translate.c 123 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/
api_msg.c 182 const struct ip_hdr* iphdr = ip_current_header(); local
184 const struct udp_hdr* udphdr = (void*)(((char*)iphdr) + IPH_LEN(iphdr));
    [all...]
  /external/syslinux/gpxe/src/net/
ipv4.c 166 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->ident
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...]
  /development/ndk/platforms/android-9/include/linux/
ip.h 75 struct iphdr { struct
  /external/syslinux/core/lwip/src/netif/
etharp.c 622 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))
    [all...]
  /prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.8/sysroot/usr/include/linux/
ip.h 85 struct iphdr { struct
  /prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/sysroot/usr/include/linux/
ip.h 85 struct iphdr { struct
  /prebuilts/ndk/r10/platforms/android-12/arch-arm/usr/include/linux/
ip.h 75 struct iphdr { struct
  /prebuilts/ndk/r10/platforms/android-12/arch-mips/usr/include/linux/
ip.h 75 struct iphdr { struct
  /prebuilts/ndk/r10/platforms/android-12/arch-x86/usr/include/linux/
ip.h 75 struct iphdr { struct
  /prebuilts/ndk/r10/platforms/android-13/arch-arm/usr/include/linux/
ip.h 75 struct iphdr { struct
  /prebuilts/ndk/r10/platforms/android-13/arch-mips/usr/include/linux/
ip.h 75 struct iphdr { struct
  /prebuilts/ndk/r10/platforms/android-13/arch-x86/usr/include/linux/
ip.h 75 struct iphdr { struct
  /prebuilts/ndk/r10/platforms/android-14/arch-arm/usr/include/linux/
ip.h 75 struct iphdr { struct
  /prebuilts/ndk/r10/platforms/android-14/arch-mips/usr/include/linux/
ip.h 75 struct iphdr { struct

Completed in 508 milliseconds

1 2 3 4 5 6 7 8 9