Home
last modified time | relevance | path

Searched refs:ip_len (Results 1 – 25 of 39) sorted by relevance

12

/illumos-gate/usr/src/boot/lib/libstand/
H A Dip.c113 ip->ip_len = htons(len); in sendip()
252 if (n < ntohs(ip->ip_len)) { in readipv4()
256 (int)n, ntohs(ip->ip_len)); in readipv4()
279 ip->ip_len = htons(sizeof(*ip)); in readipv4()
283 n = (n > (ntohs(ip->ip_len) - sizeof(*ip))) ? in readipv4()
284 ntohs(ip->ip_len) - sizeof(*ip) : n; in readipv4()
356 n += ntohs(ipq->ipq_hdr->ip_len) - (ipq->ipq_hdr->ip_hl << 2); in readipv4()
373 ipr->ip_hdr->ip_len = htons(n); in readipv4()
384 len = ntohs(ipq->ipq_hdr->ip_len) - hlen; in readipv4()
/illumos-gate/usr/src/uts/common/io/myri10ge/drv/
H A Dmyri10ge_lro.c84 ip->ip_len = htons(lro->len - ETHERNET_HEADER_SIZE); in myri10ge_lro_flush()
139 int hlen, ip_len, tcp_hdr_len, tcp_data_len; in myri10ge_lro_rx() local
189 ip_len = ntohs(ip->ip_len); in myri10ge_lro_rx()
190 tcp_data_len = ip_len - (tcp->th_off << 2) - sizeof (*ip); in myri10ge_lro_rx()
196 trim = tot_len - (ip_len + ETHERNET_HEADER_SIZE); in myri10ge_lro_rx()
217 hlen = ip_len + ETHERNET_HEADER_SIZE - tcp_data_len; in myri10ge_lro_rx()
/illumos-gate/usr/src/cmd/ipf/lib/common/
H A Dipft_tx.c226 ip->ip_len = sizeof(ip_t);
231 ip->ip_len += sizeof(struct tcphdr);
235 ip->ip_len += sizeof(struct udphdr);
239 ip->ip_len += ICMPERR_IPICMPHLEN;
329 ip->ip_len = htons(ip->ip_len);
H A Dipft_td.c141 ip->ip_len = sizeof(ip_t);
152 ip->ip_len += atoi(s);
170 slen = IP_HL(ip) + extra + ip->ip_len;
H A Dprintpacket.c28 len = ntohs(ip->ip_len);
53 printf("ip %d(%d) %d", ntohs(ip->ip_len), IP_HL(ip) << 2, ip->ip_p);
H A Dipft_ef.c101 ip->ip_len += atoi(s);
121 ip->ip_len = atoi(len);
/illumos-gate/usr/src/uts/common/io/ppp/spppcomp/
H A Dvjcompress.c355 if (ip->ip_len != cs->cs_ip.ip_len && in vj_compress_tcp()
356 ntohs(cs->cs_ip.ip_len) == thlen) { in vj_compress_tcp()
375 deltaS == ntohs(cs->cs_ip.ip_len) - thlen) { in vj_compress_tcp()
388 if (deltaS == ntohs(cs->cs_ip.ip_len) - thlen) { in vj_compress_tcp()
596 i = ntohs(cs->cs_ip.ip_len) - cs->cs_hlen; in vj_uncompress_tcp()
610 tmp = ntohl(th->th_seq) + ntohs(cs->cs_ip.ip_len) - cs->cs_hlen; in vj_uncompress_tcp()
662 cs->cs_ip.ip_len = htons(total_len); in vj_uncompress_tcp()
/illumos-gate/usr/src/uts/common/inet/ipf/netinet/
H A Dip_irc_pxy.c343 if ((inc + ip->ip_len) > 65535)
383 sum1 = ip->ip_len;
384 sum2 = ip->ip_len + inc;
394 ip->ip_len += inc;
H A Dip_rcmd_pxy.c190 slen = ip->ip_len;
191 ip->ip_len = fin->fin_hlen + sizeof(*tcp);
229 ip->ip_len = slen;
H A Dip_raudio_pxy.c310 slen = ip->ip_len;
311 ip->ip_len = fin->fin_hlen + sizeof(*tcp);
352 ip->ip_len = slen;
H A Dip_ftp_pxy.c311 if ((inc + ip->ip_len) > 65535) {
337 ip->ip_len += inc;
364 slen = ip->ip_len;
365 ip->ip_len = fin->fin_hlen + sizeof(*tcp2);
404 ip->ip_len = slen;
670 if ((inc + ip->ip_len) > 65535) {
696 ip->ip_len += inc;
721 slen = ip->ip_len;
722 ip->ip_len = fin->fin_hlen + sizeof(*tcp2);
767 ip->ip_len = slen;
/illumos-gate/usr/src/uts/common/inet/ipf/
H A Dip_fil_solaris.c1455 ip->ip_len = htons(ip->ip_len);
1457 ip->ip_len = ntohs(ip->ip_len);
1460 fnew.fin_plen = ip->ip_len;
1604 ip->ip_len = (u_short)sz;
1622 icmp->icmp_ip.ip_len = htons(icmp->icmp_ip.ip_len);
2175 __iplen = (u_short)ip->ip_len,
2178 ip->ip_len = htons(__iplen);
2424 swap = ntohs(ip->ip_len); in ipf_hook()
2425 ip->ip_len = swap; in ipf_hook()
2451 swap = ntohs(ip->ip_len); in ipf_hook()
[all …]
H A Dip_auth.c331 bo = ip->ip_len;
332 ip->ip_len = htons(bo);
344 ip->ip_len = htons(ip->ip_len);
H A Dip_proxy.c593 s1 = LONG_SUM(ip->ip_len - adjlen);
594 s2 = LONG_SUM(ip->ip_len);
740 nlen = ip->ip_len;
/illumos-gate/usr/src/uts/common/io/nxge/
H A Dnxge_send.c1318 ntohs(oiph->ip_len), pktlen, in nxge_do_softlso()
1322 ntohs(oiph->ip_len) - iphlen)); in nxge_do_softlso()
1329 ntohs(oiph->ip_len), pktlen, ehlen, in nxge_do_softlso()
1339 ntohs(oiph->ip_len), pktlen, ehlen, in nxge_do_softlso()
1345 if (!(ntohs(oiph->ip_len) == pktlen - ehlen)) { in nxge_do_softlso()
1349 ntohs(oiph->ip_len), pktlen, ehlen, in nxge_do_softlso()
1408 ntohs(oiph->ip_len) - (int)MBLKL(mp), in nxge_do_softlso()
1593 niph->ip_len = htons(mss + iphlen + tcphlen); in nxge_do_softlso()
1644 niph->ip_len = htons(mss + iphlen + tcphlen); in nxge_do_softlso()
1685 niph->ip_len = htons(msgsize(nmp->b_cont) + iphlen + tcphlen); in nxge_do_softlso()
[all …]
/illumos-gate/usr/src/stand/lib/inet/
H A Dipv4.c301 iph->ip_len = htons(total_len); in frag_load()
624 trans_len = ntohs(iph->ip_len); in make_trans_datagram()
732 iplen = ntohs(iphp->ip_len); in ipv4_input()
1004 iphp->ip_len = htons(ogp->igm_mp->b_wptr - ogp->igm_mp->b_rptr + in ipv4_output()
1101 printf("ipv4_tcp_output: dump IP packet(%d)\n", iph->ip_len); in ipv4_tcp_output()
1102 hexdump((char *)pkt->b_rptr, iph->ip_len); in ipv4_tcp_output()
H A Dicmp4.c64 icmp_len = ntohs(iphp->ip_len) - iphlen; in icmp4()
/illumos-gate/usr/src/uts/common/netinet/
H A Dip_var.h71 short ip_len; member
H A Dip.h49 ushort_t ip_len; /* total length */ member
/illumos-gate/usr/src/cmd/ipf/tools/
H A Dipftest.c223 ip->ip_len = ntohs(ip->ip_len);
272 ip->ip_len = htons(ip->ip_len);
H A Dip_fil.c555 write(fd, (char *)ip, ntohs(ip->ip_len));
778 ip->ip_len = htons((u_short)ip->ip_len);
/illumos-gate/usr/src/boot/include/netinet/
H A Dip.h59 u_short ip_len; /* total length */ member
/illumos-gate/usr/src/uts/common/io/sfxge/
H A Dsfxge_tcp.c132 size = ntohs(iphp->ip_len); in sfxge_pkthdr_parse()
/illumos-gate/usr/src/uts/common/io/mac/plugins/
H A Dmac_ipv4.c169 iphp->ip_len = 0; in mac_ipv4_header()
/illumos-gate/usr/src/stand/lib/tcp/
H A Dtcp.c1807 len = ntohs(iph->ip_len); in tcp_verify_cksum()
4919 tcp->tcp_ipha->ip_len = htons(len); in tcp_wput_data()
4939 tcp->tcp_ipha->ip_len = htons(len); in tcp_wput_data()
5085 uint32_t ip_len; in tcp_wput_data() local
5097 ip_len = ntohs(((struct ip *)rptr)->ip_len) + in tcp_wput_data()
5099 ((struct ip *)rptr)->ip_len = htons(ip_len); in tcp_wput_data()
5555 iph->ip_len = htons(tcp_hdr_len); in tcp_xmit_ctl()
5568 iph->ip_len = htons(tcp_hdr_len - in tcp_xmit_ctl()
5702 ((struct ip *)rptr)->ip_len = htons(tcp_hdr_len); in tcp_ack_mp()
6193 iph->ip_len = htons(len); in tcp_xmit_early_reset()
[all …]

12