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

123456

/freebsd-9.3-release/sbin/dhclient/
H A Dpacket.c128 ip.ip_len = htons(sizeof(ip) + sizeof(udp) + len);
142 * which is used for unicasts expects the ip_len field to be in host
147 ip.ip_len = ntohs(ip.ip_len);
186 u_int32_t ip_len = (buf[bufix] & 0xf) << 2; local
197 udp = (struct udphdr *)(buf + bufix + ip_len);
201 if (wrapsum(checksum(buf + bufix, ip_len, 0)) != 0) {
212 if (ntohs(ip->ip_len) != buflen)
214 ntohs(ip->ip_len), buflen);
224 data = buf + bufix + ip_len
[all...]
/freebsd-9.3-release/sys/netinet/
H A Dip_fastfwd.c167 u_short sum, ip_len; local
251 ip_len = ntohs(ip->ip_len);
256 if (m->m_pkthdr.len < ip_len) {
264 if (m->m_pkthdr.len > ip_len) {
266 m->m_len = ip_len;
267 m->m_pkthdr.len = ip_len;
269 m_adj(m, ip_len - m->m_pkthdr.len);
344 ip->ip_len = ntohs(ip->ip_len);
[all...]
H A Dip_input.c392 * We expect ip_len and ip_off to be in host byte order.
464 ip->ip_len = ntohs(ip->ip_len);
465 if (ip->ip_len < hlen) {
477 if (m->m_pkthdr.len < ip->ip_len) {
482 if (m->m_pkthdr.len > ip->ip_len) {
484 m->m_len = ip->ip_len;
485 m->m_pkthdr.len = ip->ip_len;
487 m_adj(m, ip->ip_len - m->m_pkthdr.len);
743 ip->ip_len
[all...]
H A Dip_divert.c213 ip->ip_len = ntohs(ip->ip_len);
216 ip->ip_len = htons(ip->ip_len);
220 ip->ip_len = ntohs(ip->ip_len);
223 ip->ip_len = htons(ip->ip_len);
390 ((u_short)ntohs(ip->ip_len) > m->m_pkthdr.len)) {
397 ip->ip_len
[all...]
H A Dip_ipsec.c349 ip->ip_len = htons(ip->ip_len);
361 ip->ip_len = ntohs(ip->ip_len);
H A Dtcp_lro.c169 cs = ip4->ip_len;
171 cs = in_addword(ntohs(ip4->ip_len) - sizeof(*ip4),
234 c = ~ip4->ip_len;
243 ip4->ip_len = p_len;
364 int error, ip_len, l; local
387 ip_len = sizeof(*ip6) + tcp_data_len;
405 ip_len = ntohs(ip4->ip_len);
406 tcp_data_len = ip_len - sizeof(*ip4);
419 l = m->m_pkthdr.len - (ETHER_HDR_LEN + ip_len);
[all...]
H A Dip_output.c105 * ip_len and ip_off are in host format.
438 n = ip->ip_len / mtu + 1; /* how many fragments ? */
465 if (ip->ip_len > mtu) {
599 if (ip->ip_len <= mtu ||
602 ip->ip_len = htons(ip->ip_len);
779 for (nfrags = 1; off < ip->ip_len; off += len, nfrags++) {
807 if (off + len >= ip->ip_len) { /* last fragment */
808 len = ip->ip_len - off;
812 mhip->ip_len
[all...]
/freebsd-9.3-release/contrib/ipfilter/ipsend/
H A Diptests.c152 ip->ip_len = sizeof(*ip) + ntohs(u->uh_ulen);
153 len = ip->ip_len;
164 printf("1.1. sending packets with ip_hl < ip_len\n");
180 printf("1.2. sending packets with ip_hl > ip_len\n");
230 i = ip->ip_len + 1;
231 printf("1.5.0 ip_len < packet size (size++, long packets)\n");
232 for (; i < (ip->ip_len * 2); i++) {
242 printf("1.5.1 ip_len < packet size (ip_len-, short packets)\n");
245 ip->ip_len
[all...]
H A Dipsend.c106 ip->ip_len += sizeof(*ic);
215 ip->ip_len = sizeof(*ip);
273 ip->ip_len += sizeof(tcphdr_t);
284 ip->ip_len += sizeof(udphdr_t);
377 ip->ip_len += olen;
387 bcopy(ip + 1, p + hlen, ip->ip_len - hlen);
433 udpcksum(ip, udp, ip->ip_len - (IP_HL(ip) << 2));
H A Dip.c132 iplen = ip->ip_len;
133 ip->ip_len = htons(iplen);
209 iplen = ntohs(ip->ip_len) - hlen;
224 ip->ip_len = htons(ts);
263 iplen = ip->ip_len;
292 ip2->ip_len = htons(thlen);
293 ip->ip_len = hlen + thlen;
324 ip->ip_len = (IP_HL(ip) << 2) + thlen;
H A Dip_var.h58 short ip_len; member in struct:ipasfrag
/freebsd-9.3-release/contrib/ipfilter/lib/
H A Dipft_td.c143 ip->ip_len = sizeof(ip_t);
158 ip->ip_len += atoi(s);
176 slen = IP_HL(ip) + extra + ip->ip_len;
H A Dprintpacket.c30 len = ntohs(ip->ip_len);
56 printf("ip #%d %d(%d) %d", ntohs(ip->ip_id), ntohs(ip->ip_len),
H A Dipft_tx.c150 return ntohs(ip->ip_len);
204 ip->ip_len = sizeof(ip_t);
209 ip->ip_len += sizeof(struct tcphdr);
213 ip->ip_len += sizeof(struct udphdr);
217 ip->ip_len += ICMPERR_IPICMPHLEN;
325 ip->ip_len = htons(ip->ip_len);
/freebsd-9.3-release/sys/ofed/drivers/net/mlx4/
H A Den_frag.c94 iph->ip_len = htons(session->total_len);
129 u16 ip_len; local
136 ip_len = ntohs(iph->ip_len);
138 data_len = ip_len - ip_hlen;
168 session->total_len = ip_len;
/freebsd-9.3-release/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-9.3-release/sys/netinet/libalias/
H A Dalias_proxy.c323 if ((int)(ntohs(pip->ip_len) + strlen(buffer)) > maxpacketsize)
333 dlen = ntohs(pip->ip_len) - hlen;
354 AddSeq(lnk, delta + slen, pip->ip_hl, pip->ip_len, tc->th_seq,
362 accumulate = pip->ip_len;
363 pip->ip_len = htons(ntohs(pip->ip_len) + slen);
364 accumulate -= pip->ip_len;
407 memcpy(ptr + OPTION_LEN_BYTES, ptr, ntohs(pip->ip_len) - 20);
436 accumulate += pip->ip_len;
437 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);
758 &pip->ip_len,
760 pip->ip_len = new_len;
/freebsd-9.3-release/sbin/natd/
H A Dicmp.c78 failBytes = failedDgram->ip_len - failHdrLen;
98 ip->ip_len = htons (sizeof (struct ip) + icmpLen);
/freebsd-9.3-release/sys/net/
H A Dslcompress.c325 if (ip->ip_len != cs->cs_ip.ip_len &&
326 ntohs(cs->cs_ip.ip_len) == hlen)
341 deltaS == ntohs(cs->cs_ip.ip_len) - hlen) {
349 if (deltaS == ntohs(cs->cs_ip.ip_len) - hlen) {
545 register u_int i = ntohs(cs->cs_ip.ip_len) - cs->cs_hlen;
552 th->th_seq = htonl(ntohl(th->th_seq) + ntohs(cs->cs_ip.ip_len)
588 cs->cs_ip.ip_len = htons(total_len);
/freebsd-9.3-release/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-9.3-release/lib/libstand/
H A Dudp.c92 ip->ip_len = htons(len);
200 if (n < ntohs(ip->ip_len)) {
204 (int)n, ntohs(ip->ip_len));
221 ip->ip_len = htons(sizeof(*ip));
/freebsd-9.3-release/sys/boot/arm/at91/libat91/
H A Demac.h76 unsigned short ip_len; member in struct:__anon5589
/freebsd-9.3-release/sys/contrib/pf/net/
H A Dpf_norm.c504 u_int16_t ip_len = ntohs(ip->ip_len) - ip->ip_hl * 4; local
505 u_int16_t max = ip_len + off;
576 FR_IP_OFF(frep) + ntohs(frep->fr_ip->ip_len) - frep->fr_ip->ip_hl *
581 precut = FR_IP_OFF(frep) + ntohs(frep->fr_ip->ip_len) -
583 if (precut >= ip_len)
590 ip_len -= precut;
591 ip->ip_len = htons(ip_len);
594 for (; frea != NULL && ip_len
755 int ip_len = ntohs(h->ip_len) - (h->ip_hl << 2); local
1149 int ip_len; local
[all...]
/freebsd-9.3-release/sys/contrib/ipfilter/netinet/
H A Dip_fil_freebsd.c639 ip->ip_len = htons(sizeof(struct tcphdr));
643 ip->ip_len = hlen + sizeof(*tcp2);
861 ip2->ip_len = htons(ip2->ip_len);
872 ip->ip_len = iclen;
1045 if (ip->ip_len <= ifp->if_mtu) {
1046 ip->ip_len = htons(ip->ip_len);
1080 for (off = hlen + len; off < ip->ip_len; off += len) {
1100 if (off + len >= ip->ip_len)
[all...]

Completed in 209 milliseconds

123456