Searched refs:ip_len (Results 1 - 25 of 140) sorted by last modified time

123456

/freebsd-11-stable/sys/contrib/ipfilter/netinet/
H A Dip_state.c2775 * oip->ip_len.
2777 savelen = oip->ip_len;
2778 oip->ip_len = htons(len);
2803 * Put old values of ip_len back as we don't know
2806 oip->ip_len = savelen;
H A Dip_nat.c5221 s1 = ip->ip_len;
5222 ip->ip_len = ntohs(ip->ip_len);
5223 ip->ip_len += fin->fin_plen;
5224 ip->ip_len = htons(ip->ip_len);
5225 s2 += ntohs(ip->ip_len);
5668 sum1 = ntohs(ip->ip_len);
5669 ip->ip_len = ntohs(ip->ip_len);
[all...]
H A Dip_irc_pxy.c375 ip->ip_len = htons(fin->fin_plen);
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...]
H A Dip_compat.h711 #define IPMINLEN(i, h) ((i)->ip_len >= (IP_HL(i) * 4 + sizeof(struct h)))
H A Dip_auth.c517 bo = ip->ip_len;
518 ip->ip_len = htons(bo);
H A Dfil.c2052 fin->fin_plen = ntohs(ip->ip_len);
3391 /* Expects ip_len and ip_off to be in network byte order when called. */
H A Dip_tftp_pxy.c339 slen = ip->ip_len;
340 ip->ip_len = htons(fin->fin_hlen + sizeof(udp));
407 ip->ip_len = slen;
H A Dip_rpcb_pxy.c830 fin->fin_ip->ip_len = htons(fin->fin_plen);
1471 fin->fin_ip->ip_len = htons(fin->fin_plen);
H A Dip_rcmd_pxy.c267 slen = ip->ip_len;
268 ip->ip_len = htons(fin->fin_hlen + sizeof(*tcp));
321 ip->ip_len = slen;
H A Dip_raudio_pxy.c290 slen = ip->ip_len;
291 ip->ip_len = htons(fin->fin_hlen + sizeof(*tcp));
341 ip->ip_len = slen;
H A Dip_ftp_pxy.c421 printf("ipf_p_ftp_port:inc(%d) + ip->ip_len > 65535\n",
442 ip->ip_len = htons(fin->fin_plen);
896 printf("ipf_p_ftp_pasv:inc(%d) + ip->ip_len > 65535\n",
989 ip->ip_len = htons(fin->fin_plen);
1868 printf("ipf_p_ftp_eprt4:inc(%d) + ip->ip_len > 65535\n",
1886 ip->ip_len = htons(fin->fin_plen);
2157 printf("ipf_p_ftp_eprt6:inc(%d) + ip->ip_len > 65535\n",
/freebsd-11-stable/tests/sys/netgraph/
H A Dbridge.c73 .ip.ip_len = 32,
/freebsd-11-stable/sys/netinet/
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 Dtcp_output.c1420 ip->ip_len = htons(m->m_pkthdr.len);
/freebsd-11-stable/sys/netgraph/
H A Dng_checksum.c324 plen = ntohs(ip4->ip_len);
H A Dng_nat.c815 if (m->m_pkthdr.len < ipofs + ntohs(ip->ip_len))
849 m->m_pkthdr.len = m->m_len = ntohs(ip->ip_len) + ipofs;
879 uint16_t ip_len = ntohs(ip->ip_len); local
884 ip_len - (ip->ip_hl << 2)));
/freebsd-11-stable/sys/dev/oce/
H A Doce_if.c1539 ip4_hdr->ip_len = htons(cqe2->coalesced_size - sizeof(struct ether_header));
/freebsd-11-stable/sys/netinet/libalias/
H A Dalias_db.c2066 AddSeq(struct alias_link *lnk, int delta, u_int ip_hl, u_short ip_len, argument
2080 tlen = ntohs(ip_len);
/freebsd-11-stable/contrib/ipfilter/tools/
H A Dipmon.c1170 plen = ntohs(ip->ip_len);
1267 i = ntohs(ipc->ip_len);
1269 * XXX - try to guess endian of ip_len in ICMP
1273 i = ipc->ip_len;
H A Dipftest.c667 len = ntohs(ip->ip_len);
/freebsd-11-stable/contrib/ipfilter/lib/
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/contrib/ipfilter/ipsend/
H A Dresend.c47 printf("len %d id %d ", ip->ip_len, ip->ip_id);
109 len = ntohs(ip->ip_len);
H A Diptest.c83 ip->ip_len = sizeof(*ip);
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));

Completed in 256 milliseconds

123456