Home
last modified time | relevance | path

Searched refs:ip6_hdr (Results 1 – 25 of 31) 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()
Dip6.h76 struct ip6_hdr { struct
91 #define IP6_VERSION(ip6_hdr) (((ip6_hdr)->ip6_vfc & 0xf0) >> 4) argument
199 extern int nextproto6_cksum(const struct ip6_hdr *, const uint8_t *, u_int, u_int, u_int);
Dprint-ip6.c44 nextproto6_cksum(const struct ip6_hdr *ip6, const uint8_t *data, in nextproto6_cksum()
77 register const struct ip6_hdr *ip6; in ip6_print()
87 ip6 = (const struct ip6_hdr *)bp; in ip6_print()
90 if (length < sizeof (struct ip6_hdr)) { in ip6_print()
104 len = payload_len + sizeof(struct ip6_hdr); in ip6_print()
141 advance = sizeof(struct ip6_hdr); in ip6_print()
Dprint-rt6.c95 struct ip6_hdr *ip6 = (struct ip6_hdr *)bp2; in rt6_print()
Dprint-sunrpc.c175 register const struct ip6_hdr *ip6; in sunrpcrequest_print()
201 ip6 = (struct ip6_hdr *)bp2; in sunrpcrequest_print()
Dprint-udp.c283 static int udp6_cksum(const struct ip6_hdr *ip6, const struct udphdr *up, in udp6_cksum()
295 const struct ip6_hdr *ip6; in udpipaddr_print()
298 ip6 = (const struct ip6_hdr *)ip; in udpipaddr_print()
357 register const struct ip6_hdr *ip6; in udp_print()
366 ip6 = (struct ip6_hdr *)bp2; in udp_print()
Dprint-dccp.c209 static int dccp6_cksum(const struct ip6_hdr *ip6, const struct dccp_hdr *dh, u_int len) in dccp6_cksum()
276 const struct ip6_hdr *ip6; in dccp_print()
289 ip6 = (const struct ip6_hdr *)data2; in dccp_print()
Dprint-esp.c570 struct ip6_hdr *ip6 = NULL; in esp_print()
622 ip6 = (struct ip6_hdr *)bp2; in esp_print()
627 len = sizeof(struct ip6_hdr) + EXTRACT_16BITS(&ip6->ip6_plen); in esp_print()
Dprint-tcp.c168 register const struct ip6_hdr *ip6;
175 ip6 = (struct ip6_hdr *)bp2;
813 struct ip6_hdr *ip6;
844 ip6 = (struct ip6_hdr *)ip;
Dprint-icmp6.c625 static int icmp6_cksum(const struct ip6_hdr *ip6, const struct icmp6_hdr *icp, in icmp6_cksum()
893 const struct ip6_hdr *ip; in icmp6_print()
894 const struct ip6_hdr *oip; in icmp6_print()
901 ip = (struct ip6_hdr *)bp2; in icmp6_print()
902 oip = (struct ip6_hdr *)(dp + 1); in icmp6_print()
1185 const struct ip6_hdr *ip6 = (struct ip6_hdr *)bp; in get_upperlayer()
1200 hlen = sizeof(struct ip6_hdr); in get_upperlayer()
Dprint-nfs.c208 struct ip6_hdr *ip6; in print_nfsaddr()
226 ip6 = (struct ip6_hdr *)bp; in print_nfsaddr()
884 struct ip6_hdr *ip6 = NULL; in xid_map_enter()
896 ip6 = (struct ip6_hdr *)bp; in xid_map_enter()
939 struct ip6_hdr *ip6 = (struct ip6_hdr *)bp; in xid_map_find()
Dprint-sctp.c502 const struct ip6_hdr *ip6; in sctp_print()
521 ip6 = (const struct ip6_hdr *)bp2; in sctp_print()
/external/android-clat/
Dipv6.c79 const struct ip6_hdr *ip6 = (struct ip6_hdr *) packet; in ipv6_packet()
88 if(len < sizeof(struct ip6_hdr)) { in ipv6_packet()
113 next_header = packet + sizeof(struct ip6_hdr); in ipv6_packet()
114 len_left = len - sizeof(struct ip6_hdr); in ipv6_packet()
Ddump.h29 void dump_ip6(struct ip6_hdr *header);
31 void dump_udp6(const struct udphdr *udp, const struct ip6_hdr *ip6,
33 void dump_tcp6(const struct tcphdr *tcp, const struct ip6_hdr *ip6,
Dtranslate.h47 const struct ip6_hdr *old_header);
48 void fill_ip6_header(struct ip6_hdr *ip6, uint16_t payload_len, uint8_t protocol,
59 size_t maybe_fill_frag_header(struct ip6_frag *frag_hdr, struct ip6_hdr *ip6_targ,
64 size_t maybe_fill_frag_header(struct ip6_frag *frag_hdr, struct ip6_hdr *ip6_targ,
Dclatd_test.cpp184 int is_ipv6_fragment(struct ip6_hdr *ip6, size_t len) { in is_ipv6_fragment()
225 struct ip6_hdr *ip6 = (struct ip6_hdr *) packet; in check_packet()
289 struct ip6_hdr *ip6 = NULL; in reassemble_packet()
319 struct ip6_hdr *ip6_orig = (struct ip6_hdr *) packet; in reassemble_packet()
329 ip6 = (struct ip6_hdr *) reassembled; in reassemble_packet()
408 struct ip6_hdr *ip6 = (struct ip6_hdr *) packet; in fix_udp_checksum()
520 struct ip6_hdr *ip6; in get_transport_checksum()
535 ip6 = (struct ip6_hdr *) packet; in get_transport_checksum()
748 ASSERT_EQ(sizeof(struct ip6_hdr), sizeof(v6_header)) << "Test IPv6 header: incorrect length\n"; in TEST_F()
762 udp = (struct udphdr *) (v6_udp_packet + sizeof(struct ip6_hdr)); in TEST_F()
[all …]
Dtranslate.c124 const struct ip6_hdr *old_header) { in fill_ip_header()
157 void fill_ip6_header(struct ip6_hdr *ip6, uint16_t payload_len, uint8_t protocol, in fill_ip6_header()
159 memset(ip6, 0, sizeof(struct ip6_hdr)); in fill_ip6_header()
178 size_t maybe_fill_frag_header(struct ip6_frag *frag_hdr, struct ip6_hdr *ip6_targ, in maybe_fill_frag_header()
484 sin6.sin6_addr = ((struct ip6_hdr *) out[CLAT_POS_IPHDR].iov_base)->ip6_dst; in send_rawv6()
500 char iphdr[sizeof(struct ip6_hdr)]; in translate_packet()
503 char icmp_iphdr[sizeof(struct ip6_hdr)]; in translate_packet()
Dipv4.c59 struct ip6_hdr *ip6_targ = (struct ip6_hdr *) out[pos].iov_base; in ipv4_packet()
107 out[pos].iov_len = sizeof(struct ip6_hdr); in ipv4_packet()
Ddump.c73 void dump_ip6(struct ip6_hdr *header) { in dump_ip6()
157 void dump_udp6(const struct udphdr *udp, const struct ip6_hdr *ip6, in dump_udp6()
216 void dump_tcp6(const struct tcphdr *tcp, const struct ip6_hdr *ip6, in dump_tcp6()
Dchecksum.h29 uint32_t ipv6_pseudo_header_checksum(const struct ip6_hdr *ip6, uint16_t len, uint8_t protocol);
Dchecksum.c90 uint32_t ipv6_pseudo_header_checksum(const struct ip6_hdr *ip6, uint16_t len, uint8_t protocol) { in ipv6_pseudo_header_checksum()
/external/wpa_supplicant_8/src/ap/
Dndisc_snoop.c27 struct ip6_hdr ipv6h;
106 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/iputils/
Dtraceroute6.c839 struct ip6_hdr *hip; in packet_ok()
843 hip = (struct ip6_hdr *) (icp + 1); in packet_ok()

12