Home | History | Annotate | Download | only in tcpdump

Lines Matching refs:ip6

47 #include "ip6.h"
146 static int tcp6_cksum(const struct ip6_hdr *ip6, const struct tcphdr *tp,
165 phu.ph.ph_src = ip6->ip6_src;
166 phu.ph.ph_dst = ip6->ip6_dst;
203 register const struct ip6_hdr *ip6;
210 ip6 = (struct ip6_hdr *)bp2;
212 ip6 = NULL;
248 if (ip6) {
249 if (ip6->ip6_nxt == IPPROTO_TCP) {
251 ip6addr_string(&ip6->ip6_src),
253 ip6addr_string(&ip6->ip6_dst),
326 if (ip6) {
327 src = &ip6->ip6_src;
328 dst = &ip6->ip6_dst;
332 if (memcmp(src, dst, sizeof ip6->ip6_dst) > 0)
336 memcpy(&tha.src, dst, sizeof ip6->ip6_dst);
337 memcpy(&tha.dst, src, sizeof ip6->ip6_src);
340 memcpy(&tha.dst, dst, sizeof ip6->ip6_dst);
341 memcpy(&tha.src, src, sizeof ip6->ip6_src);
437 if (IP_V(ip) == 6 && ip6->ip6_plen && vflag && !fragmented) {
440 sum = tcp6_cksum(ip6, tp, length);
744 struct ip6_hdr *ip6;
768 ip6 = (struct ip6_hdr *)ip;
769 MD5_Update(&ctx, (char *)&ip6->ip6_src, sizeof(ip6->ip6_src));
770 MD5_Update(&ctx, (char *)&ip6->ip6_dst, sizeof(ip6->ip6_dst));
771 len32 = htonl(ntohs(ip6->ip6_plen));