/freebsd-10.0-release/contrib/ipfilter/lib/ |
H A D | printiphdr.c | 17 ip->ip_v, ip->ip_hl, ntohs(ip->ip_len), ip->ip_tos,
|
H A D | ipft_tx.c | 154 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);
|
H A D | printpacket.c | 37 len = ntohs(ip->ip_len); 75 PRINTF("ip #%d %d(%d) %d", ntohs(ip->ip_id), ntohs(ip->ip_len),
|
/freebsd-10.0-release/sbin/dhclient/ |
H A D | packet.c | 120 ip.ip_len = htons(sizeof(ip) + sizeof(udp) + len); 134 * which is used for unicasts expects the ip_len field to be in host 139 ip.ip_len = ntohs(ip.ip_len); 178 u_int32_t ip_len = (buf[bufix] & 0xf) << 2; local 189 udp = (struct udphdr *)(buf + bufix + ip_len); 193 if (wrapsum(checksum(buf + bufix, ip_len, 0)) != 0) { 204 if (ntohs(ip->ip_len) != buflen) 206 ntohs(ip->ip_len), buflen); 216 data = buf + bufix + ip_len [all...] |
/freebsd-10.0-release/contrib/ipfilter/ipsend/ |
H A D | iptests.c | 152 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 D | ipsend.c | 106 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 D | 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;
|
H A D | resend.c | 52 printf("len %d id %d ", ip->ip_len, ip->ip_id); 114 len = ntohs(ip->ip_len);
|
/freebsd-10.0-release/sys/netinet/ |
H A D | ip_fastfwd.c | 170 uint16_t sum, ip_len, ip_off; local 254 ip_len = ntohs(ip->ip_len); 259 if (m->m_pkthdr.len < ip_len) { 267 if (m->m_pkthdr.len > ip_len) { 269 m->m_len = ip_len; 270 m->m_pkthdr.len = ip_len; 272 m_adj(m, ip_len - m->m_pkthdr.len); 487 ip_len = ntohs(ip->ip_len); [all...] |
H A D | ip_input.c | 395 uint16_t sum, ip_len; local 406 ip_len = ntohs(ip->ip_len); 472 ip_len = ntohs(ip->ip_len); 473 if (ip_len < hlen) { 484 if (m->m_pkthdr.len < ip_len) { 489 if (m->m_pkthdr.len > ip_len) { 491 m->m_len = ip_len; 492 m->m_pkthdr.len = ip_len; [all...] |
H A D | ip_output.c | 132 uint16_t ip_len, ip_off; local 179 ip_len = ntohs(ip->ip_len); 444 n = ip_len / mtu + 1; /* how many fragments ? */ 471 if (ip_len > mtu) { 602 if (ip_len <= mtu || 710 uint16_t ip_len, ip_off; local 712 ip_len = ntohs(ip->ip_len); 787 for (nfrags = 1; off < ip_len; of 867 uint16_t csum, offset, ip_len; local [all...] |
H A D | tcp_lro.c | 169 cs = ip4->ip_len; 171 cs = in_addword(ntohs(ip4->ip_len) - sizeof(*ip4), 253 c = ~ip4->ip_len; 262 ip4->ip_len = p_len; 383 int error, ip_len, l; local 406 ip_len = sizeof(*ip6) + tcp_data_len; 424 ip_len = ntohs(ip4->ip_len); 425 tcp_data_len = ip_len - sizeof(*ip4); 438 l = m->m_pkthdr.len - (ETHER_HDR_LEN + ip_len); [all...] |
/freebsd-10.0-release/sys/ofed/drivers/net/mlx4/ |
H A D | en_frag.c | 94 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-10.0-release/contrib/ipfilter/ |
H A D | ip_msnrpc_pxy.c | 103 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-10.0-release/sys/netinet/libalias/ |
H A D | alias_proxy.c | 323 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 D | alias_ftp.c | 237 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-10.0-release/sbin/natd/ |
H A D | icmp.c | 78 failBytes = failedDgram->ip_len - failHdrLen; 98 ip->ip_len = htons (sizeof (struct ip) + icmpLen);
|
/freebsd-10.0-release/sys/net/ |
H A D | slcompress.c | 325 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-10.0-release/usr.sbin/ppp/ |
H A D | slcompress.c | 333 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-10.0-release/lib/libstand/ |
H A D | udp.c | 92 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-10.0-release/sys/boot/arm/at91/libat91/ |
H A D | emac.h | 76 unsigned short ip_len; member in struct:__anon5954
|
/freebsd-10.0-release/sys/netpfil/pf/ |
H A D | pf_norm.c | 367 u_int16_t ip_len = ntohs(ip->ip_len) - ip->ip_hl * 4; local 368 u_int16_t max = ip_len + off; 419 FR_IP_OFF(frep) + ntohs(frep->fr_ip->ip_len) - frep->fr_ip->ip_hl * 424 precut = FR_IP_OFF(frep) + ntohs(frep->fr_ip->ip_len) - 426 if (precut >= ip_len) 433 ip_len -= precut; 434 ip->ip_len = htons(ip_len); 437 for (; frea != NULL && ip_len 566 int ip_len = ntohs(h->ip_len) - (h->ip_hl << 2); local 876 int ip_len; local [all...] |
/freebsd-10.0-release/sys/contrib/ipfilter/netinet/ |
H A D | ip_fil_freebsd.c | 131 ip->ip_len = htons(ip->ip_len); 139 ip->ip_len = ntohs(ip->ip_len); 431 ip->ip_len = htons(sizeof(struct tcphdr)); 435 ip->ip_len = htons(hlen + sizeof(*tcp2)); 441 * ip_len must be in network byte order when called. 464 fnew.fin_plen = ntohs(ip->ip_len); 687 ip->ip_len = htons(iclen); 846 if (ntohs(ip->ip_len) < [all...] |
/freebsd-10.0-release/contrib/tcpdump/ |
H A D | ip.h | 46 * We declare ip_len and ip_off to be short, rather than u_short 55 u_int16_t ip_len; /* total length */ member in struct:ip
|
/freebsd-10.0-release/contrib/traceroute/ |
H A D | rip_output.c | 46 ip->ip_len = sizeof(struct ip) + len;
|