Lines Matching defs:pip
131 protohandler_out(struct libalias *la, struct ip *pip, struct alias_data *ah)
133 AliasHandleFtpOut(la, pip, ah->lnk, ah->maxpktsize);
138 protohandler_in(struct libalias *la, struct ip *pip, struct alias_data *ah)
140 AliasHandleFtpIn(la, pip, ah->lnk);
218 struct ip *pip, /* IP packet to examine/patch */
229 tc = (struct tcphdr *)ip_next(pip);
230 hlen = (pip->ip_hl + tc->th_off) << 2;
231 tlen = ntohs(pip->ip_len);
235 sptr = (char *)pip;
258 la->true_addr.s_addr = pip->ip_src.s_addr;
263 NewFtpMessage(la, pip, lnk, maxpacketsize, ftp_message_type);
268 sptr = (char *)pip; /* start over at beginning */
269 tlen = ntohs(pip->ip_len); /* recalc tlen, pkt may have grown */
280 struct ip *pip, /* IP packet to examine/patch */
288 tc = (struct tcphdr *)ip_next(pip);
289 hlen = (pip->ip_hl + tc->th_off) << 2;
290 tlen = ntohs(pip->ip_len);
294 sptr = (char *)pip;
317 sptr = (char *)pip; /* start over at beginning */
318 tlen = ntohs(pip->ip_len); /* recalc tlen, pkt may
634 NewFtpMessage(struct libalias *la, struct ip *pip,
642 if (pip->ip_src.s_addr != la->true_addr.s_addr)
663 tc = (struct tcphdr *)ip_next(pip);
664 hlen = (pip->ip_hl + tc->th_off) << 2;
665 tlen = ntohs(pip->ip_len);
723 sptr = (char *)pip;
733 tc = (struct tcphdr *)ip_next(pip);
735 AddSeq(lnk, delta + slen - dlen, pip->ip_hl,
736 pip->ip_len, tc->th_seq, tc->th_off);
745 DifferentialChecksum(&pip->ip_sum,
747 &pip->ip_len,
749 pip->ip_len = new_len;
757 tc->th_sum = TcpChecksum(pip);