Home
last modified time | relevance | path

Searched refs:iphlen (Results 1 – 9 of 9) sorted by relevance

/illumos-gate/usr/src/stand/lib/inet/
H A Dipv4.c160 fragment[i].iphlen = iphlen; in frag_add()
235 fragment[last_frag].iphlen; in frag_chk()
269 first_iph_len = fragment[i].iphlen; in frag_load()
292 fragment[i].iphlen), in frag_load()
613 fragment[first_frag].iphlen); in make_trans_datagram()
692 uint16_t iphlen, iplen, ip_id; in ipv4_input() local
725 iphlen = iphp->ip_hl << 2; in ipv4_input()
726 if (iphlen < sizeof (struct ip)) { in ipv4_input()
770 icmp4(igp, iphp, iphlen, ipsrc); in ipv4_input()
789 igp->igm_mp->b_rptr += iphlen; in ipv4_input()
[all …]
H A Dicmp4.c57 icmp4(struct inetgram *igp, struct ip *iphp, uint16_t iphlen, in icmp4() argument
64 icmp_len = ntohs(iphp->ip_len) - iphlen; in icmp4()
73 icmphp = (struct icmp *)(igp->igm_mp->b_rptr + iphlen); in icmp4()
H A Dipv4_impl.h53 int16_t iphlen; /* Len of IP header */ member
/illumos-gate/usr/src/uts/common/io/nxge/
H A Dnxge_send.c1240 int ehlen, iphlen, tcphlen; in nxge_do_softlso() local
1277 iphlen = oiph->ip_hl * 4; in nxge_do_softlso()
1278 otcph = (struct tcphdr *)(mp->b_rptr + ehlen + iphlen); in nxge_do_softlso()
1281 l4_len = pktlen - ehlen - iphlen; in nxge_do_softlso()
1297 ntohs(oiph->ip_len) - iphlen)); in nxge_do_softlso()
1330 otcph = (struct tcphdr *)(mp->b_rptr + ehlen + iphlen); in nxge_do_softlso()
1336 hdrlen = ehlen + iphlen + tcphlen; in nxge_do_softlso()
1353 pktlen, hdrlen, ehlen, iphlen, tcphlen, in nxge_do_softlso()
1568 niph->ip_len = htons(mss + iphlen + tcphlen); in nxge_do_softlso()
1619 niph->ip_len = htons(mss + iphlen + tcphlen); in nxge_do_softlso()
[all …]
/illumos-gate/usr/src/uts/common/io/ppp/spppcomp/
H A Dspppcomp.c1524 uint_t iphlen; in spppcomp_inpkt() local
1540 &cp->cp_vj, &iphdr, &iphlen); in spppcomp_inpkt()
1542 if (vjlen < 0 || iphlen == 0) { in spppcomp_inpkt()
1563 np = allocb(iphlen + PPP_HDRLEN, BPRI_MED); in spppcomp_inpkt()
1577 bcopy((caddr_t)iphdr, (caddr_t)dp + PPP_HDRLEN, iphlen); in spppcomp_inpkt()
1578 np->b_wptr = dp + iphlen + PPP_HDRLEN; in spppcomp_inpkt()
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.mpathd/
H A Dmpd_probe.c374 int iphlen; in in_data() local
426 iphlen = ip->ip_hl << 2; in in_data()
427 if (len < iphlen + ICMP_MINLEN) { in in_data()
439 len -= iphlen; in in_data()
441 reply = (struct pr_icmp *)((char *)in_packet + iphlen); in in_data()
/illumos-gate/usr/src/uts/common/inet/ip/
H A Digmp.c315 int iphlen, igmplen, mblklen; in igmp_input() local
329 iphlen = ira->ira_ip_hdr_length; in igmp_input()
330 if (mblklen < 1 || mblklen < iphlen) { in igmp_input()
334 igmplen = ira->ira_pktlen - iphlen; in igmp_input()
339 if (MBLKL(mp) < (igmplen + iphlen)) { in igmp_input()
358 igmpa = (igmpa_t *)(&mp->b_rptr[iphlen]); in igmp_input()
H A Dip_mroute.c2337 int iplen, pimlen, iphlen; in pim_input() local
2357 iphlen = IPH_HDR_LENGTH(ip); in pim_input()
2358 pimlen = ntohs(iplen) - iphlen; in pim_input()
2378 pimp = (struct pim *)((caddr_t)ip + iphlen); in pim_input()
2460 mp_copy->b_rptr += iphlen + sizeof (pim_t) + sizeof (*reghdr); in pim_input()
2462 ira->ira_pktlen -= iphlen + sizeof (pim_t) + sizeof (*reghdr); in pim_input()
/illumos-gate/usr/src/uts/common/io/sfe/
H A Dsfe_util.c229 uint_t iphlen; in gem_dump_packet() local
312 iphlen = (p[0] & 0xf) * 4; in gem_dump_packet()
322 offset += iphlen; in gem_dump_packet()
325 tcplen = iplen - iphlen; in gem_dump_packet()