/external/android-clat/ |
D | translate.h | 46 void fill_ip_header(struct iphdr *ip_targ, uint16_t payload_len, uint8_t protocol, 49 const struct iphdr *old_header); 60 const struct iphdr *old_header); 61 uint8_t parse_frag_header(const struct ip6_frag *frag_hdr, struct iphdr *ip_targ); 65 const struct iphdr *old_header); 66 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() 519 struct iphdr *ip; in get_transport_checksum() 527 ip = (struct iphdr *) packet; in get_transport_checksum() 745 ASSERT_EQ(sizeof(struct iphdr), sizeof(v4_header)) << "Test IPv4 header: incorrect length\n"; in TEST_F() [all …]
|
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() 500 char iphdr[sizeof(struct ip6_hdr)]; in translate_packet() local 510 { iphdr, 0 }, // IP header. in translate_packet()
|
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 | 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 | clatd_microbenchmark.c | 50 #define PAYLOADSIZE (1280 - sizeof(struct iphdr) - sizeof(struct udphdr)) 95 struct iphdr ip = { in send_packet()
|
D | checksum.c | 109 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/iproute2/examples/bpf/ |
D | bpf_prog.c | 254 return !!(load_half(skb, nh_off + offsetof(struct iphdr, frag_off)) & in flow_is_frag() 266 *ip_proto = load_byte(skb, nh_off + offsetof(struct iphdr, in flow_parse_ipv4() 269 flow->src = load_word(skb, nh_off + offsetof(struct iphdr, saddr)); in flow_parse_ipv4() 270 flow->dst = load_word(skb, nh_off + offsetof(struct iphdr, daddr)); in flow_parse_ipv4()
|
/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/kernel-headers/original/uapi/linux/netfilter/ |
D | xt_osf.h | 83 struct iphdr ip;
|
/external/iproute2/include/linux/ |
D | if_tunnel.h | 37 struct iphdr iph;
|
/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/wpa_supplicant_8/src/ap/ |
D | dhcp_snoop.c | 22 struct iphdr iph;
|
/external/toybox/toys/pending/ |
D | dhcp.c | 169 struct iphdr iph; 684 memset(&packet.iph, 0, ((size_t) &((struct iphdr *)0)->protocol)); in read_raw() 749 packet.udph.len = htons(sizeof(dhcp_raw_t) - sizeof(struct iphdr) - padding); in send_raw()
|
/external/wpa_supplicant_8/hostapd/ |
D | ctrl_iface.c | 1596 struct iphdr ip; in hostapd_data_test_rx() 1669 struct iphdr *ip; in hostapd_ctrl_iface_data_test_tx() 1699 ip = (struct iphdr *) (eth + 1); in hostapd_ctrl_iface_data_test_tx()
|
/external/ipsec-tools/src/racoon/ |
D | isakmp.c | 206 sizeof(struct iphdr) + 248 struct iphdr *ip; 252 ip = (struct iphdr *)(x.lbuf + sizeof(*udp));
|