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

1 2 3 4 5

  /src/external/bsd/wpa/dist/src/ap/
dhcp_snoop.c 42 u16 ip_len; local
49 ip_len = ntohs(b->iph.ip_len);
50 if (ip_len > (unsigned int) (len - ETH_HLEN))
57 end = (const u8 *) b + ip_len;
  /src/sys/netinet/
in_offload.c 110 ip->ip_len = htons(iphlen + thlen + mss);
202 uint16_t ip_len; local
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
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
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);
  /src/external/bsd/ipf/dist/ipsend/
iptests.c 155 ip->ip_len = sizeof(*ip) + ntohs(u->uh_ulen);
156 len = ip->ip_len;
167 printf("1.1. sending packets with ip_hl < ip_len\n");
183 printf("1.2. sending packets with ip_hl > ip_len\n");
233 i = ip->ip_len + 1;
234 printf("1.5.0 ip_len < packet size (size++, long packets)\n");
235 for (; i < (ip->ip_len * 2); i++) {
245 printf("1.5.1 ip_len < packet size (ip_len-, short packets)\n");
248 ip->ip_len = i
    [all...]
ipsend.c 107 ip->ip_len += sizeof(*ic);
216 ip->ip_len = sizeof(*ip);
274 ip->ip_len += sizeof(tcphdr_t);
285 ip->ip_len += sizeof(udphdr_t);
378 ip->ip_len += olen;
388 bcopy(ip + 1, p + hlen, ip->ip_len - hlen);
434 udpcksum(ip, udp, ip->ip_len - (IP_HL(ip) << 2));
ip.c 130 iplen = ip->ip_len;
131 ip->ip_len = htons(iplen);
207 iplen = ntohs(ip->ip_len) - hlen;
222 ip->ip_len = htons(ts);
261 iplen = ip->ip_len;
290 ip2->ip_len = htons(thlen);
291 ip->ip_len = hlen + thlen;
322 ip->ip_len = (IP_HL(ip) << 2) + thlen;
resend.c 52 printf("len %d id %d ", ip->ip_len, ip->ip_id);
114 len = ntohs(ip->ip_len);
  /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
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
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
868 int ip_len; local
    [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/external/bsd/ipf/dist/lib/
ipft_tx.c 152 mb->mb_len = ntohs(ip->ip_len);
216 ip->ip_len = sizeof(ip_t);
221 ip->ip_len += sizeof(struct tcphdr);
225 ip->ip_len += sizeof(struct udphdr);
229 ip->ip_len += ICMPERR_IPICMPHLEN;
325 ip->ip_len += olen;
334 ip->ip_len = htons(ip->ip_len);
printpacket.c 37 len = ntohs(ip->ip_len);
75 PRINTF("ip #%d %d(%d) %d", ntohs(ip->ip_id), 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/external/bsd/tcpdump/dist/
ip.h 44 * We declare ip_len and ip_off to be short, rather than u_short
53 nd_uint16_t 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/external/bsd/ipf/dist/iplang/
iplang_y.y 707 aip->ah_ip->ip_len += sz;
735 aip->ah_ip->ip_len += inc;
875 ip->ip_len = sizeof(ip_t);
939 ip->ip_len += inc;
989 inc_anipheaders(len - ip->ip_len);
990 ip->ip_len = len;
1311 ip->ip_len = htons(ip->ip_len);
1312 for (i = ntohs(ip->ip_len), j = 0; i; i--, j++, s++) {
1352 ip->ip_len = ntohs(ip->ip_len)
    [all...]
  /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;
  /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);

Completed in 67 milliseconds

1 2 3 4 5