Searched refs:iphdr (Results 1 - 21 of 21) sorted by relevance

/external/android-clat/
H A 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,
H A 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);
H A Dchecksum.h30 uint32_t ipv4_pseudo_header_checksum(const struct iphdr *ip, uint16_t len);
H A Dipv4.c58 const struct iphdr *header = (struct iphdr *) packet;
68 if(len < sizeof(struct iphdr)) {
H A Dipv6.c80 struct iphdr *ip_targ = (struct iphdr *) out[pos].iov_base;
123 out[pos].iov_len = sizeof(struct iphdr);
177 ip_targ->check = ip_checksum(ip_targ, sizeof(struct iphdr));
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) {
504 char iphdr[sizeof(struct ip6_hdr)]; local
514 { iphdr, 0 }, // IP header.
H A Dclatd_test.cpp179 int is_ipv4_fragment(struct iphdr *ip) {
193 int ipv4_fragment_offset(struct iphdr *ip) {
209 struct iphdr *ip = (struct iphdr *) packet;
288 struct iphdr *ip = NULL;
304 struct iphdr *ip_orig = (struct iphdr *) packet;
314 ip = (struct iphdr *) reassembled;
402 struct iphdr *ip = (struct iphdr *) packe
[all...]
H A Ddump.c40 void dump_ip(struct iphdr *header) {
149 void dump_udp(const struct udphdr *udp, const struct iphdr *ip,
206 void dump_tcp(const struct tcphdr *tcp, const struct iphdr *ip,
H A Dchecksum.c110 uint32_t ipv4_pseudo_header_checksum(const struct iphdr *ip, uint16_t len) {
/external/iptables/extensions/
H A Dlibxt_TCPMSS.c32 __TCPMSS_help(sizeof(struct iphdr));
42 .min = 0, .max = UINT16_MAX - sizeof(struct iphdr),
/external/iproute2/include/linux/
H A Dif_tunnel.h37 struct iphdr iph;
/external/iptables/include/linux/netfilter/
H A Dxt_osf.h84 struct iphdr ip;
/external/iputils/
H A Dping.c100 static void pr_iph(struct iphdr *ip);
788 struct iphdr *ip;
797 ip = (struct iphdr *)buf;
807 opts = buf + sizeof(struct iphdr);
808 optlen = hlen - sizeof(struct iphdr);
856 struct iphdr * iph = (struct iphdr *)(&icp[1]);
859 if (cc < 8+sizeof(struct iphdr)+8 ||
929 pr_options(opts, optlen + sizeof(struct iphdr));
1049 pr_iph((struct iphdr*)(ic
[all...]
H A Dclockdiff.c139 struct iphdr *ip = (struct iphdr *) packet;
316 struct iphdr *ip = (struct iphdr *) packet;
H A Drdisc.c722 struct iphdr *ip;
727 ip = (struct iphdr *) ALLIGN(buf);
/external/kernel-headers/original/uapi/linux/netfilter/
H A Dxt_osf.h83 struct iphdr ip;
/external/kernel-headers/original/uapi/linux/
H A Dif_tunnel.h37 struct iphdr iph;
H A Dip.h85 struct iphdr { struct
/external/chromium_org/third_party/usrsctp/usrsctplib/
H A Duser_recv_thread.c278 struct ip *iphdr; local
384 iphdr = mtod(recvmbuf[0], struct ip *);
385 sh = (struct sctphdr *)((caddr_t)iphdr + sizeof(struct ip));
389 if (iphdr->ip_tos != 0) {
390 ecn = iphdr->ip_tos & 0x02;
397 dst.sin_addr = iphdr->ip_dst;
404 src.sin_addr = iphdr->ip_src;
/external/iputils/Modules/
H A Dpg3.c245 struct iphdr *iph;
257 iph = (struct iphdr*)skb_put(skb, sizeof( struct iphdr));
/external/ipsec-tools/src/racoon/
H A Disakmp.c206 sizeof(struct iphdr) +
248 struct iphdr *ip;
252 ip = (struct iphdr *)(x.lbuf + sizeof(*udp));

Completed in 329 milliseconds