Home
last modified time | relevance | path

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

12

/external/tcpdump/
Dprint-ip6.c48 const struct ip6_hdr *ip6) in ip6_finddst()
61 advance = sizeof(struct ip6_hdr); in ip6_finddst()
174 const struct ip6_hdr *ip6, const uint8_t *data, in nextproto6_cksum()
228 const struct ip6_hdr *ip6; in ip6_print()
241 ip6 = (const struct ip6_hdr *)bp; in ip6_print()
244 if (length < sizeof (struct ip6_hdr)) { in ip6_print()
281 len = payload_len + sizeof(struct ip6_hdr); in ip6_print()
286 len = length + sizeof(struct ip6_hdr); in ip6_print()
319 advance = sizeof(struct ip6_hdr); in ip6_print()
418 len = payload_len + sizeof(struct ip6_hdr); in ip6_print()
[all …]
Dprint-frag6.c39 const struct ip6_hdr *ip6; in frag6_print()
43 ip6 = (const struct ip6_hdr *)bp2; in frag6_print()
49 sizeof(struct ip6_hdr) + GET_BE_U_2(ip6->ip6_plen) - in frag6_print()
54 sizeof(struct ip6_hdr) + GET_BE_U_2(ip6->ip6_plen) - in frag6_print()
Dip6.h76 struct ip6_hdr { struct
91 #define IP6_VERSION(ip6_hdr) ((GET_U_1((ip6_hdr)->ip6_vfc) & 0xf0) >> 4) argument
Dprint-sunrpc.c163 const struct ip6_hdr *ip6; in sunrpc_print()
189 ip6 = (const struct ip6_hdr *)bp2; in sunrpc_print()
Dprint-udp.c307 static uint16_t udp6_cksum(netdissect_options *ndo, const struct ip6_hdr *ip6, in udp6_cksum()
317 const struct ip6_hdr *ip6; in udpipaddr_print()
320 ip6 = (const struct ip6_hdr *)ip; in udpipaddr_print()
377 const struct ip6_hdr *ip6; in udp_print()
383 ip6 = (const struct ip6_hdr *)bp2; in udp_print()
Dprint-tcp.c151 const struct ip6_hdr *ip6, in tcp6_cksum()
174 const struct ip6_hdr *ip6; in tcp_print()
181 ip6 = (const struct ip6_hdr *)bp2; in tcp_print()
901 const struct ip6_hdr *ip6; in tcp_verify_signature()
930 ip6 = (const struct ip6_hdr *)ip; in tcp_verify_signature()
Dprint-dccp.c209 static uint16_t dccp6_cksum(netdissect_options *ndo, const struct ip6_hdr *ip6, in dccp6_cksum()
274 const struct ip6_hdr *ip6; in dccp_print()
286 ip6 = (const struct ip6_hdr *)data2; in dccp_print()
Dprint-icmp6.c782 static uint16_t icmp6_cksum(netdissect_options *ndo, const struct ip6_hdr *ip6, in icmp6_cksum()
1027 const struct ip6_hdr *ip; in icmp6_print()
1028 const struct ip6_hdr *oip; in icmp6_print()
1036 ip = (const struct ip6_hdr *)bp2; in icmp6_print()
1037 oip = (const struct ip6_hdr *)(dp + 1); in icmp6_print()
1335 const struct ip6_hdr *ip6 = (const struct ip6_hdr *)bp; in get_upperlayer()
1350 hlen = sizeof(struct ip6_hdr); in get_upperlayer()
Dprint-nfs.c205 const struct ip6_hdr *ip6; in print_nfsaddr()
216 ip6 = (const struct ip6_hdr *)bp; in print_nfsaddr()
945 const struct ip6_hdr *ip6 = NULL; in xid_map_enter()
955 ip6 = (const struct ip6_hdr *)bp; in xid_map_enter()
998 const struct ip6_hdr *ip6 = (const struct ip6_hdr *)bp; in xid_map_find()
/external/android-clat/
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()
619 ASSERT_EQ(sizeof(struct ip6_hdr), sizeof(v6_header)) << "Test IPv6 header: incorrect length\n"; in TEST_F()
633 udp = (struct udphdr *)(v6_udp_packet + sizeof(struct ip6_hdr)); in TEST_F()
[all …]
Dipv6.c78 const struct ip6_hdr *ip6 = (struct ip6_hdr *)packet; in ipv6_packet()
87 if (len < sizeof(struct ip6_hdr)) { in ipv6_packet()
112 next_header = packet + sizeof(struct ip6_hdr); in ipv6_packet()
113 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,
Dtranslate.c125 const struct ip6_hdr *old_header) { in fill_ip_header()
158 void fill_ip6_header(struct ip6_hdr *ip6, uint16_t payload_len, uint8_t protocol, in fill_ip6_header()
160 memset(ip6, 0, sizeof(struct ip6_hdr)); in fill_ip6_header()
179 size_t maybe_fill_frag_header(struct ip6_frag *frag_hdr, struct ip6_hdr *ip6_targ, in maybe_fill_frag_header()
481 sin6.sin6_addr = ((struct ip6_hdr *)out[CLAT_POS_IPHDR].iov_base)->ip6_dst; in send_rawv6()
497 char iphdr[sizeof(struct ip6_hdr)]; in translate_packet()
500 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.c75 void dump_ip6(struct ip6_hdr *header) { in dump_ip6()
159 void dump_udp6(const struct udphdr *udp, const struct ip6_hdr *ip6, const uint8_t *payload, in dump_udp6()
218 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.c30 #define IP6_HLEN (sizeof(struct ip6_hdr))
117 static uint16_t udp6_checksum(struct ip6_hdr *iphdr, struct udphdr *udphdr) in udp6_checksum()
150 udphdr.check = udp6_checksum((struct ip6_hdr *)ip_frame, &udphdr); in send_fragment()
157 struct ip6_hdr *ip6hdr = (struct ip6_hdr *)ip_frame; in send_fragment()
207 struct ip6_hdr *ip6hdr = (struct ip6_hdr *)ip_frame; in send_udp_frags()
/external/usrsctp/fuzzer/
Dpcap2corpus.c114 const struct ip6_hdr *ip6_hdr_in; in packet_handler()
145 offset = args->offset + sizeof(struct ip6_hdr) + sizeof(struct sctphdr); in packet_handler()
149 ip6_hdr_in = (const struct ip6_hdr *)(bytes_in + args->offset); in packet_handler()
/external/iptables/iptables/
Dnft-ipv6.c55 offsetof(struct ip6_hdr, ip6_src), in nft_ipv6_add()
64 offsetof(struct ip6_hdr, ip6_dst), in nft_ipv6_add()
144 case offsetof(struct ip6_hdr, ip6_src): in nft_ipv6_parse_payload()
158 case offsetof(struct ip6_hdr, ip6_dst): in nft_ipv6_parse_payload()
172 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/usrsctp/usrsctplib/netinet/
Dsctp_header.h569 sizeof(struct ip6_hdr))
573 sizeof(struct ip6_hdr))
576 #define SCTP_MIN_OVERHEAD (sizeof(struct ip6_hdr) + \
/external/usrsctp/usrsctplib/
Duser_ip6_var.h64 struct ip6_hdr { struct
/external/iputils/ninfod/
Dninfod.h44 #define MAX_REPLY_SIZE 1280-sizeof(struct ip6_hdr)
/external/musl/include/netinet/
Dip6.h11 struct ip6_hdr { struct
/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()

12