Home
last modified time | relevance | path

Searched refs:iphdr (Results 1 – 22 of 22) sorted by relevance

/external/android-clat/
Dtranslate.h57 void fill_ip_header(struct iphdr *ip_targ, uint16_t payload_len, uint8_t protocol,
60 const struct iphdr *old_header);
71 const struct iphdr *old_header);
72 uint8_t parse_frag_header(const struct ip6_frag *frag_hdr, struct iphdr *ip_targ);
76 const struct iphdr *old_header);
77 uint8_t parse_frag_header(const struct ip6_frag *frag_hdr, struct iphdr *ip_targ);
Ddump.h21 void dump_ip(struct iphdr *header);
23 void dump_udp(const struct udphdr *udp, const struct iphdr *ip,
25 void dump_tcp(const struct tcphdr *tcp, const struct iphdr *ip,
Dclatd_test.cpp179 int is_ipv4_fragment(struct iphdr *ip) { in is_ipv4_fragment()
193 int ipv4_fragment_offset(struct iphdr *ip) { in ipv4_fragment_offset()
209 struct iphdr *ip = (struct iphdr *) packet; in check_packet()
288 struct iphdr *ip = NULL; in reassemble_packet()
304 struct iphdr *ip_orig = (struct iphdr *) packet; in reassemble_packet()
314 ip = (struct iphdr *) reassembled; in reassemble_packet()
402 struct iphdr *ip = (struct iphdr *) packet; in fix_udp_checksum()
522 struct iphdr *ip; in get_transport_checksum()
530 ip = (struct iphdr *) packet; in get_transport_checksum()
748 ASSERT_EQ(sizeof(struct iphdr), sizeof(v4_header)) << "Test IPv4 header: incorrect length\n"; in TEST_F()
[all …]
Dipv6.c80 struct iphdr *ip_targ = (struct iphdr *) out[pos].iov_base; in ipv6_packet()
123 out[pos].iov_len = sizeof(struct iphdr); in ipv6_packet()
177 ip_targ->check = ip_checksum(ip_targ, sizeof(struct iphdr)); in ipv6_packet()
Dtranslate.c123 void fill_ip_header(struct iphdr *ip, uint16_t payload_len, uint8_t protocol, in fill_ip_header()
126 memset(ip, 0, sizeof(struct iphdr)); in fill_ip_header()
131 ip->tot_len = htons(sizeof(struct iphdr) + payload_len); in fill_ip_header()
158 const struct iphdr *old_header) { in fill_ip6_header()
179 const struct iphdr *old_header) { in maybe_fill_frag_header()
207 uint8_t parse_frag_header(const struct ip6_frag *frag_hdr, struct iphdr *ip_targ) { in parse_frag_header()
504 char iphdr[sizeof(struct ip6_hdr)]; in translate_packet() local
514 { iphdr, 0 }, // IP header. in translate_packet()
Dipv4.c58 const struct iphdr *header = (struct iphdr *) packet; in ipv4_packet()
68 if(len < sizeof(struct iphdr)) { in ipv4_packet()
Ddump.c40 void dump_ip(struct iphdr *header) { in dump_ip()
149 void dump_udp(const struct udphdr *udp, const struct iphdr *ip, in dump_udp()
206 void dump_tcp(const struct tcphdr *tcp, const struct iphdr *ip, in dump_tcp()
Dchecksum.h30 uint32_t ipv4_pseudo_header_checksum(const struct iphdr *ip, uint16_t len);
Dchecksum.c110 uint32_t ipv4_pseudo_header_checksum(const struct iphdr *ip, uint16_t len) { in ipv4_pseudo_header_checksum()
/external/iputils/
Dping.c100 static void pr_iph(struct iphdr *ip);
788 struct iphdr *ip; in parse_reply()
797 ip = (struct iphdr *)buf; in parse_reply()
807 opts = buf + sizeof(struct iphdr); in parse_reply()
808 optlen = hlen - sizeof(struct iphdr); in parse_reply()
856 struct iphdr * iph = (struct iphdr *)(&icp[1]); in parse_reply()
859 if (cc < 8+sizeof(struct iphdr)+8 || in parse_reply()
929 pr_options(opts, optlen + sizeof(struct iphdr)); in parse_reply()
1049 pr_iph((struct iphdr*)(icp + 1)); in pr_icmph()
1054 pr_iph((struct iphdr*)(icp + 1)); in pr_icmph()
[all …]
Dclockdiff.c139 struct iphdr *ip = (struct iphdr *) packet; in measure()
316 struct iphdr *ip = (struct iphdr *) packet; in measure_opt()
Drdisc.c722 struct iphdr *ip; in pr_pack()
727 ip = (struct iphdr *) ALLIGN(buf); in pr_pack()
/external/iptables/extensions/
Dlibxt_TCPMSS.c32 __TCPMSS_help(sizeof(struct iphdr)); in TCPMSS_help()
42 .min = 0, .max = UINT16_MAX - sizeof(struct iphdr),
/external/iptables/include/linux/netfilter/
Dxt_osf.h84 struct iphdr ip;
/external/iproute2/include/linux/
Dif_tunnel.h37 struct iphdr iph;
/external/kernel-headers/original/uapi/linux/netfilter/
Dxt_osf.h83 struct iphdr ip;
/external/kernel-headers/original/uapi/linux/
Dif_tunnel.h37 struct iphdr iph;
Dip.h85 struct iphdr { struct
/external/iputils/Modules/
Dpg3.c245 struct iphdr *iph; in fill_packet()
257 iph = (struct iphdr*)skb_put(skb, sizeof( struct iphdr)); in fill_packet()
/external/chromium_org/third_party/usrsctp/usrsctplib/
Duser_recv_thread.c278 struct ip *iphdr; in recv_function_raw() local
384 iphdr = mtod(recvmbuf[0], struct ip *); in recv_function_raw()
385 sh = (struct sctphdr *)((caddr_t)iphdr + sizeof(struct ip)); in recv_function_raw()
389 if (iphdr->ip_tos != 0) { in recv_function_raw()
390 ecn = iphdr->ip_tos & 0x02; in recv_function_raw()
397 dst.sin_addr = iphdr->ip_dst; in recv_function_raw()
404 src.sin_addr = iphdr->ip_src; in recv_function_raw()
/external/ipsec-tools/src/racoon/
Disakmp.c206 sizeof(struct iphdr) +
248 struct iphdr *ip;
252 ip = (struct iphdr *)(x.lbuf + sizeof(*udp));
/external/ipsec-tools/
DChangeLog668 iphdr for Linux