Lines Matching defs:pip
208 * One (and only one) of pip or pip6 must be set.
257 const struct ip *pip = (const struct ip *)packet;
259 len = ntohs(pip->ip_off) & IP_OFFMASK; /* fragment offset */
273 ncpaddr_setip4(&srcaddr, pip->ip_src);
274 ncpaddr_setip4(&dstaddr, pip->ip_dst);
275 datalen = ntohs(pip->ip_len) - (pip->ip_hl << 2);
276 payload = packet + (pip->ip_hl << 2);
277 cproto = pip->ip_p;
557 * One of pip or pip6 must be set.
599 const struct ip *pip = (const struct ip *)packet;
601 ncpaddr_setip4(&srcaddr, pip->ip_src);
602 ncpaddr_setip4(&dstaddr, pip->ip_dst);
603 datalen = ntohs(pip->ip_len) - (pip->ip_hl << 2);
604 payload = packet + (pip->ip_hl << 2);
605 cproto = pip->ip_p;
606 tos = pip->ip_tos;
607 frag = ntohs(pip->ip_off) & IP_OFFMASK;