HomeSort by: relevance | last modified time | path
    Searched refs:ip_len (Results 1 - 25 of 85) sorted by relevancy

1 2 3 4

  /src/sys/netinet/
in_offload.c 110 ip->ip_len = htons(iphlen + thlen + mss);
202 uint16_t ip_len; local in function:in_undefer_cksum
225 ip_len = ip->ip_len;
229 hdrlen + offsetof(struct ip, ip_len);
231 m_copydata(m, ip_len_offset, sizeof(ip_len), &ip_len);
234 ip_len = ntohs(ip_len);
251 csum = in4_cksum(m, 0, l4offset, ip_len - iphdrlen)
    [all...]
in_l2tp.c 137 iphdr.ip_len = sizeof(struct ip);
139 iphdr.ip_len += sizeof(uint32_t);
142 iphdr.ip_len += var->lv_peer_cookie_len;
160 iphdr.ip_len += m->m_pkthdr.len;
161 HTONS(iphdr.ip_len);
igmp.c 193 int ip_len, iphlen; local in function:igmp_input
204 ip_len = ntohs(ip->ip_len);
205 if (ip_len < minlen) {
226 if (in_cksum(m, ip_len - iphlen)) {
614 ip->ip_len = htons(sizeof(struct ip) + IGMP_MINLEN);
udp_usrreq.c 319 u_int16_t ip_len; local in function:udp_input
357 ip_len = ntohs(ip->ip_len);
363 if (ip_len != iphlen + len) {
364 if (ip_len < iphlen + len) {
368 m_adj(m, iphlen + len - ip_len);
841 ((struct ip *)ui)->ip_len = htons(sizeof(struct udpiphdr) + len);
1315 ip->ip_len = htons(ntohs(ip->ip_len) - skip);
ip_output.c 577 if (ntohs(ip->ip_len) > ifp->if_mtu) {
604 unsigned int datasz = ntohs(ip->ip_len) - hlen;
700 if (ntohs(ip->ip_len) > mtu &&
707 ia->ia_ifa.ifa_data.ifad_outbytes += ntohs(ip->ip_len);
794 ia->ia_ifa.ifa_data.ifad_outbytes += ntohs(ip->ip_len);
875 for (off = hlen + len; off < ntohs(ip->ip_len); off += len) {
902 if (off + len >= ntohs(ip->ip_len))
903 len = ntohs(ip->ip_len) - off;
908 mhip->ip_len = htons((u_int16_t)(len + mhlen));
943 m_adj(m, hlen + firstlen - ntohs(ip->ip_len));
    [all...]
raw_ip.c 176 * XXX Compatibility: programs using raw IP expect ip_len
181 ip->ip_len = ntohs(ip->ip_len) - hlen;
337 ip->ip_len = htons(m->m_pkthdr.len);
369 /* XXX userland passes ip_len and ip_off in host order */
370 if (m->m_pkthdr.len != ip->ip_len) {
374 HTONS(ip->ip_len);
ip_icmp.c 301 ntohs(oip->ip_len) - oiphlen);
379 nip->ip_len = htons(m->m_len);
431 icmplen = ntohs(ip->ip_len) - hlen;
911 ip->ip_len = htons(ntohs(ip->ip_len) - optlen);
952 icp->icmp_cksum = in_cksum(m, ntohs(ip->ip_len) - hlen);
1182 mtu = ntohs(icp->icmp_ip.ip_len);
1183 /* Some 4.2BSD-based routers incorrectly adjust the ip_len */
ip.h 61 u_int16_t ip_len; /* total length */ member in struct:ip
  /src/sys/lib/libsa/
ip.c 96 ip->ip_len = htons(len);
157 if (ntohs(ip->ip_len) < hlen) {
160 if (n < ntohs(ip->ip_len)) {
167 return (ntohs(ip->ip_len) - hlen);
  /src/sys/dev/pci/cxgb/
cxgb_lro.c 160 int ip_len = ntohs(ih->ip_len); local in function:lro_new_session_init
167 s->ip_len = ip_len;
168 s->seq = ntohl(th->th_seq) + ip_len - sizeof(*ih) - (th->th_off << 2);
188 ih->ip_len = htons(s->ip_len);
282 plen = ntohs(nih->ip_len) - tcpiphlen;
284 s->ip_len += plen;
  /src/sys/dist/pf/net/
pf_norm.c 367 u_int16_t ip_len = ntohs(ip->ip_len) - ip->ip_hl * 4; local in function:pf_reassemble
368 u_int16_t frmax = ip_len + off;
416 FR_IP_OFF(frep) + ntohs(frep->fr_ip->ip_len) - frep->fr_ip->ip_hl *
421 precut = FR_IP_OFF(frep) + ntohs(frep->fr_ip->ip_len) -
423 if (precut >= ip_len)
430 ip_len -= precut;
431 ip->ip_len = htons(ip_len);
434 for (; frea != NULL && ip_len + off > FR_IP_OFF(frea)
565 int ip_len = ntohs(h->ip_len) - (h->ip_hl << 2); local in function:pf_fragcache
868 int ip_len; local in function:pf_normalize_ip
    [all...]
  /src/usr.sbin/npf/npftest/
npfstream.c 59 tcpdlen = ntohs(ip->ip_len) - hlen - (th->th_off << 2);
78 len = ntohs(ip->ip_len);
  /src/sys/net/
slcompress.c 337 if (ip->ip_len != cs->cs_ip.ip_len &&
338 ntohs(cs->cs_ip.ip_len) == hlen)
353 deltaS == ntohs(cs->cs_ip.ip_len) - hlen) {
361 if (deltaS == ntohs(cs->cs_ip.ip_len) - hlen) {
557 u_int i = ntohs(cs->cs_ip.ip_len) - cs->cs_hlen;
564 th->th_seq = htonl(ntohl(th->th_seq) + ntohs(cs->cs_ip.ip_len)
601 cs->cs_ip.ip_len = htons(total_len);
  /src/sys/arch/mvme68k/stand/sboot/
etherfun.h 75 short ip_len; /* total length */ member in struct:ip
  /src/usr.sbin/mrouted/
igmp.c 155 ipdatalen = ip->ip_len;
314 ip->ip_len = MIN_IP_HEADER_LEN + IGMP_MINLEN + datalen;
338 if (sendto(igmp_socket, send_buf, ip->ip_len, 0,
  /src/usr.bin/rump_dhcpclient/
net.c 413 * ip structure and an invalid ip_len (basically udp length).
432 ip->ip_len = udp->uh_ulen;
439 ip->ip_len = htons(sizeof(*ip) + sizeof(*udp) + length);
453 return ntohs(packet.ip.ip_len) -
482 bytes = ntohs(packet.ip.ip_len);
492 packet.ip.ip_len = packet.udp.uh_ulen;
  /src/sys/external/bsd/ipf/netinet/
ip_raudio_pxy.c 289 slen = ip->ip_len;
290 ip->ip_len = htons(fin->fin_hlen + sizeof(*tcp));
340 ip->ip_len = slen;
ip_rcmd_pxy.c 253 slen = ip->ip_len;
254 ip->ip_len = htons(fin->fin_hlen + sizeof(*tcp));
307 ip->ip_len = slen;
ip_fil_netbsd.c 822 ip->ip_len = htons(sizeof(struct tcphdr));
826 ip->ip_len = hlen + sizeof(*tcp2);
835 * Expects ip_len to be in host byte order when called.
860 fnew.fin_plen = ntohs(ip->ip_len);
861 HTONS(ip->ip_len);
1082 ip->ip_len = iclen;
1112 u_short ip_off, ip_len; local in function:ipf_fastroute
1248 ip_len = ntohs(ip->ip_len);
1249 if (ip_len <= ifp->if_mtu)
    [all...]
ip_tftp_pxy.c 321 slen = ip->ip_len;
322 ip->ip_len = htons(fin->fin_hlen + sizeof(udp));
389 ip->ip_len = slen;
  /src/sys/netmpls/
mpls_ttl.c 215 icmplen = uimin(ICMP_EXT_OFFSET, ntohs(oip->ip_len));
218 * Defend against mbuf chains shorter than oip->ip_len - oiplen:
302 nip->ip_len = htons(m->m_len);
349 len = ntohs(iph->ip_len);
  /src/usr.sbin/npf/npftest/libnpftest/
npf_mbuf_subr.c 187 iphdr->ip_len = htons(size);
254 iphdr->ip_len = htons(ntohs(iphdr->ip_len) + addlen);
  /src/regress/sys/net/frag/
ip4_frag_1.c 102 * Note: ip_len and ip_off shall be in host byte order.
107 ip->ip_len = (5 << 2) + addlen;
147 ret = sendto(s, p, ip->ip_len, 0,
178 * Case 1: ip_len of the first fragment and ip_off + hlen of other
  /src/sys/net/npf/
npf_sendpkt.c 145 ip->ip_len = htons(sizeof(struct tcphdr));
187 ip->ip_len = htons(len);
  /src/sys/arch/xen/xen/
xennet_checksum.c 119 iplen = ntohs(iph->ip_len);

Completed in 41 milliseconds

1 2 3 4