/external/android-clat/ |
D | translate.h | 57 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);
|
D | dump.h | 21 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,
|
D | clatd_test.cpp | 179 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 …]
|
D | ipv6.c | 80 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()
|
D | translate.c | 123 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()
|
D | ipv4.c | 58 const struct iphdr *header = (struct iphdr *) packet; in ipv4_packet() 68 if(len < sizeof(struct iphdr)) { in ipv4_packet()
|
D | dump.c | 40 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()
|
D | checksum.h | 30 uint32_t ipv4_pseudo_header_checksum(const struct iphdr *ip, uint16_t len);
|
D | checksum.c | 110 uint32_t ipv4_pseudo_header_checksum(const struct iphdr *ip, uint16_t len) { in ipv4_pseudo_header_checksum()
|
/external/iputils/ |
D | ping.c | 100 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 …]
|
D | clockdiff.c | 139 struct iphdr *ip = (struct iphdr *) packet; in measure() 316 struct iphdr *ip = (struct iphdr *) packet; in measure_opt()
|
D | rdisc.c | 722 struct iphdr *ip; in pr_pack() 727 ip = (struct iphdr *) ALLIGN(buf); in pr_pack()
|
/external/iptables/extensions/ |
D | libxt_TCPMSS.c | 32 __TCPMSS_help(sizeof(struct iphdr)); in TCPMSS_help() 42 .min = 0, .max = UINT16_MAX - sizeof(struct iphdr),
|
/external/iptables/include/linux/netfilter/ |
D | xt_osf.h | 84 struct iphdr ip;
|
/external/iproute2/include/linux/ |
D | if_tunnel.h | 37 struct iphdr iph;
|
/external/kernel-headers/original/uapi/linux/netfilter/ |
D | xt_osf.h | 83 struct iphdr ip;
|
/external/kernel-headers/original/uapi/linux/ |
D | if_tunnel.h | 37 struct iphdr iph;
|
D | ip.h | 85 struct iphdr { struct
|
/external/iputils/Modules/ |
D | pg3.c | 245 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/ |
D | user_recv_thread.c | 278 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/ |
D | isakmp.c | 206 sizeof(struct iphdr) + 248 struct iphdr *ip; 252 ip = (struct iphdr *)(x.lbuf + sizeof(*udp));
|
/external/ipsec-tools/ |
D | ChangeLog | 668 iphdr for Linux
|