Searched refs:ip_len (Results 1 - 25 of 140) sorted by relevance

123456

/freebsd-11-stable/contrib/ipfilter/lib/
H A Dprintiphdr.c17 ip->ip_v, ip->ip_hl, ntohs(ip->ip_len), ip->ip_tos,
H A Dprintpacket.c37 len = ntohs(ip->ip_len);
75 PRINTF("ip #%d %d(%d) %d", ntohs(ip->ip_id), ntohs(ip->ip_len),
H A Dipft_tx.c154 mb->mb_len = ntohs(ip->ip_len);
218 ip->ip_len = sizeof(ip_t);
223 ip->ip_len += sizeof(struct tcphdr);
227 ip->ip_len += sizeof(struct udphdr);
231 ip->ip_len += ICMPERR_IPICMPHLEN;
327 ip->ip_len += olen;
336 ip->ip_len = htons(ip->ip_len);
/freebsd-11-stable/sbin/dhclient/
H A Dpacket.c120 ip.ip_len = htons(sizeof(ip) + sizeof(udp) + len);
167 u_int32_t ip_len = (buf[bufix] & 0xf) << 2; local
178 udp = (struct udphdr *)(buf + bufix + ip_len);
182 if (wrapsum(checksum(buf + bufix, ip_len, 0)) != 0) {
193 if (ntohs(ip->ip_len) != buflen)
195 ntohs(ip->ip_len), buflen);
205 data = buf + bufix + ip_len + sizeof(*udp);
247 return (ip_len + sizeof(*udp));
/freebsd-11-stable/contrib/ipfilter/ipsend/
H A Diptests.c125 ip->ip_len = sizeof(*ip) + ntohs(u->uh_ulen);
126 len = ip->ip_len;
137 printf("1.1. sending packets with ip_hl < ip_len\n");
153 printf("1.2. sending packets with ip_hl > ip_len\n");
203 i = ip->ip_len + 1;
204 printf("1.5.0 ip_len < packet size (size++, long packets)\n");
205 for (; i < (ip->ip_len * 2); i++) {
215 printf("1.5.1 ip_len < packet size (ip_len-, short packets)\n");
218 ip->ip_len
[all...]
H A Dipsend.c82 ip->ip_len += sizeof(*ic);
191 ip->ip_len = sizeof(*ip);
249 ip->ip_len += sizeof(tcphdr_t);
260 ip->ip_len += sizeof(udphdr_t);
353 ip->ip_len += olen;
363 bcopy(ip + 1, p + hlen, ip->ip_len - hlen);
409 udpcksum(ip, udp, ip->ip_len - (IP_HL(ip) << 2));
H A Dip.c125 iplen = ip->ip_len;
126 ip->ip_len = htons(iplen);
202 iplen = ntohs(ip->ip_len) - hlen;
217 ip->ip_len = htons(ts);
256 iplen = ip->ip_len;
285 ip2->ip_len = htons(thlen);
286 ip->ip_len = hlen + thlen;
317 ip->ip_len = (IP_HL(ip) << 2) + thlen;
H A Dresend.c47 printf("len %d id %d ", ip->ip_len, ip->ip_id);
109 len = ntohs(ip->ip_len);
/freebsd-11-stable/sys/netinet/
H A Dip_reass.c210 * Adjust ip_len to not reflect header,
213 ip->ip_len = htons(ntohs(ip->ip_len) - hlen);
219 if (ip->ip_len == htons(0) ||
220 ((ip->ip_off & htons(IP_MF)) && (ntohs(ip->ip_len) & 0x7) != 0)) {
299 fp->ipq_maxoff = ntohs(ip->ip_off) + ntohs(ip->ip_len);
309 i = ntohs(ip->ip_off) + ntohs(ip->ip_len);
317 fp->ipq_maxoff = ntohs(ip->ip_off) + ntohs(ip->ip_len);
360 i = ntohs(GETIP(p)->ip_off) + ntohs(GETIP(p)->ip_len) -
363 if (i >= ntohs(ip->ip_len))
[all...]
H A Dip_output.c222 uint16_t ip_len, ip_off; local
258 ip_len = ntohs(ip->ip_len);
542 if (ip_len > mtu) {
623 if (ip_len <= mtu ||
744 uint16_t ip_len, ip_off; local
746 ip_len = ntohs(ip->ip_len);
819 for (nfrags = 1; off < ip_len; off += len, nfrags++) {
859 if (off + len >= ip_len)
909 uint16_t csum, offset, ip_len; local
[all...]
H A Dip_input.c455 uint16_t sum, ip_len; local
466 ip_len = ntohs(ip->ip_len);
532 ip_len = ntohs(ip->ip_len);
533 if (ip_len < hlen) {
544 if (m->m_pkthdr.len < ip_len) {
549 if (m->m_pkthdr.len > ip_len) {
551 m->m_len = ip_len;
552 m->m_pkthdr.len = ip_len;
[all...]
H A Dip_fastfwd.c155 uint16_t ip_len, ip_off; local
373 ip_len = ntohs(ip->ip_len);
384 if (ip_len <= nh.nh_mtu) {
/freebsd-11-stable/stand/libsa/
H A Dip.c114 ip->ip_len = htons(len);
253 if (n < ntohs(ip->ip_len)) {
257 (int)n, ntohs(ip->ip_len));
280 ip->ip_len = htons(sizeof(*ip));
284 n = (n > (ntohs(ip->ip_len) - sizeof(*ip))) ?
285 ntohs(ip->ip_len) - sizeof(*ip) : n;
357 n += ntohs(ipq->ipq_hdr->ip_len) - (ipq->ipq_hdr->ip_hl << 2);
374 ipr->ip_hdr->ip_len = htons(n);
385 len = ntohs(ipq->ipq_hdr->ip_len) - hlen;
/freebsd-11-stable/contrib/ipfilter/
H A Dip_msnrpc_pxy.c103 if (mrh->mrh_dlen > ip->ip_len)
106 if (mrh->mrh_hint > ip->ip_len)
298 slen = ip->ip_len;
299 ip->ip_len = fin->fin_hlen + sizeof(*tcp2);
324 ip->ip_len = slen;
/freebsd-11-stable/sys/netinet/libalias/
H A Dalias_proxy.c325 if ((int)(ntohs(pip->ip_len) + strlen(buffer)) > maxpacketsize)
335 dlen = ntohs(pip->ip_len) - hlen;
356 AddSeq(lnk, delta + slen, pip->ip_hl, pip->ip_len, tc->th_seq,
364 accumulate = pip->ip_len;
365 pip->ip_len = htons(ntohs(pip->ip_len) + slen);
366 accumulate -= pip->ip_len;
409 memcpy(ptr + OPTION_LEN_BYTES, ptr, ntohs(pip->ip_len) - 20);
438 accumulate += pip->ip_len;
439 pip->ip_len
[all...]
H A Dalias_ftp.c237 tlen = ntohs(pip->ip_len);
279 tlen = ntohs(pip->ip_len); /* recalc tlen, pkt may
301 tlen = ntohs(pip->ip_len);
329 tlen = ntohs(pip->ip_len); /* recalc tlen, pkt may
677 tlen = ntohs(pip->ip_len);
748 pip->ip_len, tc->th_seq, tc->th_off);
759 &pip->ip_len,
761 pip->ip_len = new_len;
H A Dalias_irc.c182 tlen = ntohs(pip->ip_len);
444 pip->ip_len, tc->th_seq, tc->th_off);
454 &pip->ip_len,
456 pip->ip_len = new_len;
H A Dalias_smedia.c255 tlen = ntohs(pip->ip_len);
409 AddSeq(lnk, delta + new_dlen - dlen, pip->ip_hl, pip->ip_len,
415 &pip->ip_len,
417 pip->ip_len = new_len;
496 tlen = ntohs(pip->ip_len);
/freebsd-11-stable/sbin/natd/
H A Dicmp.c78 failBytes = failedDgram->ip_len - failHdrLen;
98 ip->ip_len = htons (sizeof (struct ip) + icmpLen);
/freebsd-11-stable/usr.sbin/ppp/
H A Dslcompress.c333 if (ip->ip_len != cs->cs_ip.ip_len &&
334 ntohs(cs->cs_ip.ip_len) == hlen)
350 deltaS == ntohs(cs->cs_ip.ip_len) - hlen) {
358 if (deltaS == ntohs(cs->cs_ip.ip_len) - hlen) {
513 register u_int i = ntohs(cs->cs_ip.ip_len) - cs->cs_hlen;
521 th->th_seq = htonl(ntohl(th->th_seq) + ntohs(cs->cs_ip.ip_len)
567 cs->cs_ip.ip_len = htons(len);
/freebsd-11-stable/sys/net/
H A Dslcompress.c320 if (ip->ip_len != cs->cs_ip.ip_len &&
321 ntohs(cs->cs_ip.ip_len) == hlen)
336 deltaS == ntohs(cs->cs_ip.ip_len) - hlen) {
344 if (deltaS == ntohs(cs->cs_ip.ip_len) - hlen) {
531 u_int i = ntohs(cs->cs_ip.ip_len) - cs->cs_hlen;
538 th->th_seq = htonl(ntohl(th->th_seq) + ntohs(cs->cs_ip.ip_len)
574 cs->cs_ip.ip_len = htons(total_len);
/freebsd-11-stable/sys/contrib/ipfilter/netinet/
H A Dip_fil_freebsd.c134 ip->ip_len = htons(ip->ip_len);
144 ip->ip_len = ntohs(ip->ip_len);
428 ip->ip_len = htons(sizeof(struct tcphdr));
432 ip->ip_len = htons(hlen + sizeof(*tcp2));
438 * ip_len must be in network byte order when called.
461 fnew.fin_plen = ntohs(ip->ip_len);
674 ip->ip_len = htons(iclen);
826 if (ntohs(ip->ip_len) <
[all...]
/freebsd-11-stable/contrib/traceroute/
H A Drip_output.c46 ip->ip_len = sizeof(struct ip) + len;
/freebsd-11-stable/contrib/tcpdump/
H A Dip.h48 * We declare ip_len and ip_off to be short, rather than u_short
57 nd_uint16_t ip_len; /* total length */ member in struct:ip
/freebsd-11-stable/contrib/ipfilter/iplang/
H A Diplang_y.y671 aip->ah_ip->ip_len += sz;
699 aip->ah_ip->ip_len += inc;
839 ip->ip_len = sizeof(ip_t);
903 ip->ip_len += inc;
953 inc_anipheaders(len - ip->ip_len);
954 ip->ip_len = len;
1275 ip->ip_len = htons(ip->ip_len);
1276 for (i = ntohs(ip->ip_len), j = 0; i; i--, j++, s++) {
1316 ip->ip_len
[all...]

Completed in 219 milliseconds

123456