Lines Matching refs:pip
105 IpChecksum(struct ip *pip)
107 return (LibAliasInternetChecksum(NULL, (u_short *) pip,
108 (pip->ip_hl << 2)));
113 TcpChecksum(struct ip *pip)
120 nhdr = pip->ip_hl << 2;
121 ntcp = ntohs(pip->ip_len) - nhdr;
123 tc = (struct tcphdr *)ip_next(pip);
140 ptr = (u_short *) & (pip->ip_dst);
143 ptr = (u_short *) & (pip->ip_src);
147 sum += htons((u_short) pip->ip_p);