Lines Matching refs:oip
210 register struct ip *oip = mtod(n, struct ip *), *nip;
211 register unsigned oiphlen = oip->ip_hl << 2;
219 printf("icmp_error(%p, %x, %d)\n", oip, type, code);
232 if (oip->ip_off & ~(IP_MF|IP_DF))
236 if (oip->ip_p == IPPROTO_ICMP && type != ICMP_REDIRECT &&
238 !ICMP_INFOTYPE(((struct icmp *)((caddr_t)oip + oiphlen))->icmp_type)) {
252 if (oip->ip_p == IPPROTO_TCP) {
262 th = (struct tcphdr *)((caddr_t)oip + oiphlen);
266 if (oip->ip_len < oiphlen + tcphlen)
273 icmpelen = max(tcphlen, min(V_icmp_quotelen, oip->ip_len - oiphlen));
275 stdreply: icmpelen = max(8, min(V_icmp_quotelen, oip->ip_len - oiphlen));
340 bcopy((caddr_t)oip, (caddr_t)nip, sizeof(struct ip));