Home
last modified time | relevance | path

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

12

/external/android-clat/
Dtranslate.h46 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);
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()
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 …]
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()
500 char iphdr[sizeof(struct ip6_hdr)]; in translate_packet() local
510 { iphdr, 0 }, // IP header. in translate_packet()
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()
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);
Dclatd_microbenchmark.c50 #define PAYLOADSIZE (1280 - sizeof(struct iphdr) - sizeof(struct udphdr))
95 struct iphdr ip = { in send_packet()
Dchecksum.c109 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/iproute2/examples/bpf/
Dbpf_prog.c254 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/
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/kernel-headers/original/uapi/linux/netfilter/
Dxt_osf.h83 struct iphdr ip;
/external/iproute2/include/linux/
Dif_tunnel.h37 struct iphdr iph;
/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/wpa_supplicant_8/src/ap/
Ddhcp_snoop.c22 struct iphdr iph;
/external/toybox/toys/pending/
Ddhcp.c169 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/
Dctrl_iface.c1596 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/
Disakmp.c206 sizeof(struct iphdr) +
248 struct iphdr *ip;
252 ip = (struct iphdr *)(x.lbuf + sizeof(*udp));

12