Home
last modified time | relevance | path

Searched refs:ip6_hdr (Results 1 – 25 of 38) sorted by relevance

12

/external/tcpdump/
Dprint-frag6.c39 register const struct ip6_hdr *ip6; in frag6_print()
42 ip6 = (const struct ip6_hdr *)bp2; in frag6_print()
50 sizeof(struct ip6_hdr) + EXTRACT_16BITS(&ip6->ip6_plen) - in frag6_print()
55 sizeof(struct ip6_hdr) + EXTRACT_16BITS(&ip6->ip6_plen) - in frag6_print()
Dprint-ip6.c48 const struct ip6_hdr *ip6) in ip6_finddst()
60 advance = sizeof(struct ip6_hdr); in ip6_finddst()
164 const struct ip6_hdr *ip6, const uint8_t *data, in nextproto6_cksum()
216 register const struct ip6_hdr *ip6; in ip6_print()
226 ip6 = (const struct ip6_hdr *)bp; in ip6_print()
229 if (length < sizeof (struct ip6_hdr)) { in ip6_print()
243 len = payload_len + sizeof(struct ip6_hdr); in ip6_print()
280 advance = sizeof(struct ip6_hdr); in ip6_print()
Dip6.h76 struct ip6_hdr { struct
91 #define IP6_VERSION(ip6_hdr) (((ip6_hdr)->ip6_vfc & 0xf0) >> 4) argument
Dprint-sunrpc.c173 register const struct ip6_hdr *ip6; in sunrpcrequest_print()
197 ip6 = (const struct ip6_hdr *)bp2; in sunrpcrequest_print()
Dprint-udp.c309 static int udp6_cksum(netdissect_options *ndo, const struct ip6_hdr *ip6, in udp6_cksum()
319 const struct ip6_hdr *ip6; in udpipaddr_print()
322 ip6 = (const struct ip6_hdr *)ip; in udpipaddr_print()
378 register const struct ip6_hdr *ip6; in udp_print()
385 ip6 = (const struct ip6_hdr *)bp2; in udp_print()
Dprint-tcp.c151 register const struct ip6_hdr *ip6, in tcp6_cksum()
174 register const struct ip6_hdr *ip6; in tcp_print()
179 ip6 = (const struct ip6_hdr *)bp2; in tcp_print()
843 const struct ip6_hdr *ip6; in tcp_verify_signature()
872 ip6 = (const struct ip6_hdr *)ip; in tcp_verify_signature()
Dprint-dccp.c207 static int dccp6_cksum(netdissect_options *ndo, const struct ip6_hdr *ip6, in dccp6_cksum()
273 const struct ip6_hdr *ip6; in dccp_print()
284 ip6 = (const struct ip6_hdr *)data2; in dccp_print()
Dprint-icmp6.c625 static int icmp6_cksum(netdissect_options *ndo, const struct ip6_hdr *ip6, in icmp6_cksum()
874 const struct ip6_hdr *ip; in icmp6_print()
875 const struct ip6_hdr *oip; in icmp6_print()
882 ip = (const struct ip6_hdr *)bp2; in icmp6_print()
883 oip = (const struct ip6_hdr *)(dp + 1); in icmp6_print()
1167 const struct ip6_hdr *ip6 = (const struct ip6_hdr *)bp; in get_upperlayer()
1182 hlen = sizeof(struct ip6_hdr); in get_upperlayer()
Dprint-esp.c655 const struct ip6_hdr *ip6 = NULL; in esp_print()
707 ip6 = (const struct ip6_hdr *)bp2; in esp_print()
712 len = sizeof(struct ip6_hdr) + EXTRACT_16BITS(&ip6->ip6_plen); in esp_print()
Dprint-nfs.c206 const struct ip6_hdr *ip6; in print_nfsaddr()
217 ip6 = (const struct ip6_hdr *)bp; in print_nfsaddr()
870 const struct ip6_hdr *ip6 = NULL; in xid_map_enter()
880 ip6 = (const struct ip6_hdr *)bp; in xid_map_enter()
919 const struct ip6_hdr *ip6 = (const struct ip6_hdr *)bp; in xid_map_find()
/external/android-clat/
Dipv6.c80 const struct ip6_hdr *ip6 = (struct ip6_hdr *)packet; in ipv6_packet()
89 if (len < sizeof(struct ip6_hdr)) { in ipv6_packet()
114 next_header = packet + sizeof(struct ip6_hdr); in ipv6_packet()
115 len_left = len - sizeof(struct ip6_hdr); in ipv6_packet()
Ddump.h36 void dump_ip6(struct ip6_hdr *header);
38 void dump_udp6(const struct udphdr *udp, const struct ip6_hdr *ip6, const uint8_t *payload,
40 void dump_tcp6(const struct tcphdr *tcp, const struct ip6_hdr *ip6, const uint8_t *payload,
Dtranslate.h48 const struct ip6_hdr *old_header);
49 void fill_ip6_header(struct ip6_hdr *ip6, uint16_t payload_len, uint8_t protocol,
60 size_t maybe_fill_frag_header(struct ip6_frag *frag_hdr, struct ip6_hdr *ip6_targ,
65 size_t maybe_fill_frag_header(struct ip6_frag *frag_hdr, struct ip6_hdr *ip6_targ,
Dclatd_test.cpp193 int is_ipv6_fragment(struct ip6_hdr *ip6, size_t len) { in is_ipv6_fragment()
234 struct ip6_hdr *ip6 = (struct ip6_hdr *)packet; in check_packet()
298 struct ip6_hdr *ip6 = nullptr; in reassemble_packet()
328 struct ip6_hdr *ip6_orig = (struct ip6_hdr *)packet; in reassemble_packet()
338 ip6 = (struct ip6_hdr *)reassembled; in reassemble_packet()
416 struct ip6_hdr *ip6 = (struct ip6_hdr *)packet; in fix_udp_checksum()
527 struct ip6_hdr *ip6; in get_transport_checksum()
542 ip6 = (struct ip6_hdr *)packet; in get_transport_checksum()
830 ASSERT_EQ(sizeof(struct ip6_hdr), sizeof(v6_header)) << "Test IPv6 header: incorrect length\n"; in TEST_F()
844 udp = (struct udphdr *)(v6_udp_packet + sizeof(struct ip6_hdr)); in TEST_F()
[all …]
Dtranslate.c126 const struct ip6_hdr *old_header) { in fill_ip_header()
159 void fill_ip6_header(struct ip6_hdr *ip6, uint16_t payload_len, uint8_t protocol, in fill_ip6_header()
161 memset(ip6, 0, sizeof(struct ip6_hdr)); in fill_ip6_header()
180 size_t maybe_fill_frag_header(struct ip6_frag *frag_hdr, struct ip6_hdr *ip6_targ, in maybe_fill_frag_header()
482 sin6.sin6_addr = ((struct ip6_hdr *)out[CLAT_POS_IPHDR].iov_base)->ip6_dst; in send_rawv6()
498 char iphdr[sizeof(struct ip6_hdr)]; in translate_packet()
501 char icmp_iphdr[sizeof(struct ip6_hdr)]; in translate_packet()
Dipv4.c60 struct ip6_hdr *ip6_targ = (struct ip6_hdr *)out[pos].iov_base; in ipv4_packet()
108 out[pos].iov_len = sizeof(struct ip6_hdr); in ipv4_packet()
Ddump.c74 void dump_ip6(struct ip6_hdr *header) { in dump_ip6()
158 void dump_udp6(const struct udphdr *udp, const struct ip6_hdr *ip6, const uint8_t *payload, in dump_udp6()
217 void dump_tcp6(const struct tcphdr *tcp, const struct ip6_hdr *ip6, const uint8_t *payload, in dump_tcp6()
/external/linux-kselftest/tools/testing/selftests/net/
Dip_defrag.c29 #define IP6_HLEN (sizeof(struct ip6_hdr))
115 static uint16_t udp6_checksum(struct ip6_hdr *iphdr, struct udphdr *udphdr) in udp6_checksum()
148 udphdr.check = udp6_checksum((struct ip6_hdr *)ip_frame, &udphdr); in send_fragment()
155 struct ip6_hdr *ip6hdr = (struct ip6_hdr *)ip_frame; in send_fragment()
205 struct ip6_hdr *ip6hdr = (struct ip6_hdr *)ip_frame; in send_udp_frags()
/external/iptables/iptables/
Dnft-ipv6.c47 add_proto(r, offsetof(struct ip6_hdr, ip6_nxt), 1, in nft_ipv6_add()
53 add_addr(r, offsetof(struct ip6_hdr, ip6_src), in nft_ipv6_add()
59 add_addr(r, offsetof(struct ip6_hdr, ip6_dst), in nft_ipv6_add()
136 case offsetof(struct ip6_hdr, ip6_src): in nft_ipv6_parse_payload()
149 case offsetof(struct ip6_hdr, ip6_dst): in nft_ipv6_parse_payload()
162 case offsetof(struct ip6_hdr, ip6_nxt): in nft_ipv6_parse_payload()
/external/wpa_supplicant_8/src/ap/
Dndisc_snoop.c28 struct ip6_hdr ipv6h;
107 if (len < ETH_HLEN + sizeof(struct ip6_hdr) + sizeof(struct icmp6_hdr)) in handle_ndisc()
/external/iputils/ninfod/
Dninfod.h44 #define MAX_REPLY_SIZE 1280-sizeof(struct ip6_hdr)
/external/toybox/toys/pending/
Dtraceroute.c388 struct ip6_hdr *hip; in do_trace()
392 hip = (struct ip6_hdr *)(ricmp + 1); in do_trace()
433 rcv_len -= sizeof(struct ip6_hdr); in do_trace()
/external/ltp/testcases/network/stress/ns-tools/
Dns-traffic.h122 struct ip6_hdr hdr;
Dns-icmpv6_sender.c344 info_p->pkt_size = sizeof(struct ip6_hdr) + ip6_psize; in create_mld_query()
408 info_p->pkt_size = sizeof(struct ip6_hdr) + ip6_psize; in create_echo_request()
/external/ltp/testcases/network/sctp/
Dsctp_big_chunk.c59 struct ip6_hdr ip6; in setup_client()

12