Searched refs:ip_hdr_length (Results 1 - 11 of 11) sorted by relevance

/opensolaris-onvv-gate/usr/src/uts/common/inet/ip/
H A Dip6_input.c1201 int ip_hdr_length; local
1209 ip_hdr_length = ira->ira_ip_hdr_length;
1210 if ((mp->b_wptr - mp->b_rptr) < (ip_hdr_length + ICMP6_MINLEN)) {
1211 if (ira->ira_pktlen < (ip_hdr_length + ICMP6_MINLEN)) {
1217 ip6h = ip_pullup(mp, ip_hdr_length + ICMP6_MINLEN, ira);
1224 icmp6 = (icmp6_t *)(&mp->b_rptr[ip_hdr_length]);
1628 ip_fanout_tx_v6(mblk_t *mp, ip6_t *ip6h, uint8_t protocol, uint_t ip_hdr_length, argument
1651 up = (uint16_t *)((uchar_t *)ip6h + ip_hdr_length);
1657 ASSERT(((uchar_t *)ip6h) + ip_hdr_length +4 <= mp->b_wptr);
1739 uint16_t ip_hdr_length local
1801 uint16_t ip_hdr_length = ira->ira_ip_hdr_length; local
1833 uint16_t ip_hdr_length = ira->ira_ip_hdr_length; local
1993 uint_t ip_hdr_length; local
[all...]
H A Dip6_output.c725 uint16_t ip_hdr_length = ixa->ixa_ip_hdr_length; local
736 cksump = IPH_TCPH_CHECKSUMP(ip6h, ip_hdr_length);
739 cksump = IPH_UDPH_CHECKSUMP(ip6h, ip_hdr_length);
744 ASSERT(MBLKL(mp) >= (ip_hdr_length + sizeof (*sctph)));
745 sctph = (sctp_hdr_t *)(mp->b_rptr + ip_hdr_length);
754 sctph->sh_chksum = sctp_cksum(mp, ip_hdr_length);
761 cksump = (uint16_t *)(((uint8_t *)ip6h) + ip_hdr_length +
765 cksump = IPH_ICMPV6_CHECKSUMP(ip6h, ip_hdr_length);
785 cksum = IP_CSUM(mp, ip_hdr_length, cksum);
825 uint16_t ip_hdr_length local
[all...]
H A Dip_input.c2011 uint_t ip_hdr_length, ip_recv_attr_t *ira)
2033 up = (uint16_t *)((uchar_t *)ipha + ip_hdr_length);
2039 ASSERT(((uchar_t *)ipha) + ip_hdr_length +4 <= mp->b_wptr);
2120 uint16_t ip_hdr_length = ira->ira_ip_hdr_length; local
2126 ulp_len = ira->ira_pktlen - ip_hdr_length;
2137 udpha = (udpha_t *)((uchar_t *)ipha + ip_hdr_length);
2166 uint16_t ip_hdr_length = ira->ira_ip_hdr_length; local
2173 cksum = IP_CSUM(mp, ip_hdr_length, cksum);
2197 uint16_t ip_hdr_length = ira->ira_ip_hdr_length; local
2207 udpha = (udpha_t *)((uchar_t *)ipha + ip_hdr_length);
2010 ip_fanout_tx_v4(mblk_t *mp, ipha_t *ipha, uint8_t protocol, uint_t ip_hdr_length, ip_recv_attr_t *ira) argument
2343 uint_t ip_hdr_length; local
[all...]
H A Dconn_opt.c2190 uint_t ip_hdr_length; local
2197 ip_hdr_length = ip_total_hdrs_len_v4(ipp);
2199 if (ip_hdr_length > IP_MAX_HDR_LENGTH) {
2204 ip_hdr_length = ip_total_hdrs_len_v6(ipp);
2206 ixa->ixa_ip_hdr_length = ip_hdr_length;
2207 hdrs_len = ip_hdr_length + ulp_hdr_length + extra;
2228 connp->conn_ht_ulp = hdrs + ip_hdr_length;
2236 ip_build_hdrs_v4(hdrs, ip_hdr_length, ipp, connp->conn_proto);
2254 ip_build_hdrs_v6(hdrs, ip_hdr_length, ipp, connp->conn_proto,
2260 ip_hdr_length, conn
2296 uint_t ip_hdr_length; local
[all...]
H A Dip_output.c1620 uint16_t ip_hdr_length = ixa->ixa_ip_hdr_length; local
1631 cksump = IPH_TCPH_CHECKSUMP(ipha, ip_hdr_length);
1634 cksump = IPH_UDPH_CHECKSUMP(ipha, ip_hdr_length);
1639 ASSERT(MBLKL(mp) >= (ip_hdr_length + sizeof (*sctph)));
1640 sctph = (sctp_hdr_t *)(mp->b_rptr + ip_hdr_length);
1649 sctph->sh_chksum = sctp_cksum(mp, ip_hdr_length);
1667 cksum = IP_CSUM(mp, ip_hdr_length, cksum);
1708 uint16_t ip_hdr_length = ixa->ixa_ip_hdr_length; local
1720 cksump = IPH_TCPH_CHECKSUMP(ipha, ip_hdr_length);
1723 cksump = IPH_UDPH_CHECKSUMP(ipha, ip_hdr_length);
[all...]
H A Dicmp.c2541 int ip_hdr_length; local
2574 ip_hdr_length = ira->ira_ip_hdr_length;
2575 ASSERT(MBLKL(mp) >= ip_hdr_length); /* IP did a pullup */
2604 mp1 = allocb(ip_hdr_length, BPRI_MED);
2611 bcopy(rptr, mp1->b_rptr, ip_hdr_length);
2612 mp->b_rptr = rptr + ip_hdr_length;
2616 mp1->b_wptr = rptr + ip_hdr_length;
2619 len -= ip_hdr_length;
2726 type = mp->b_rptr[ip_hdr_length];
2728 ASSERT(mp->b_rptr + ip_hdr_length <
2998 int ip_hdr_length; local
3957 uint_t ip_hdr_length; local
[all...]
H A Dip6.c201 int ip_hdr_length; /* Outer header length */ local
223 ip_hdr_length = ira->ira_ip_hdr_length;
224 if ((mp->b_wptr - mp->b_rptr) < (ip_hdr_length + ICMP6_MINLEN)) {
225 if (ira->ira_pktlen < (ip_hdr_length + ICMP6_MINLEN)) {
231 ip6h = ip_pullup(mp, ip_hdr_length + ICMP6_MINLEN, ira);
239 icmp6 = (icmp6_t *)(&mp->b_rptr[ip_hdr_length]);
294 icmp6 = (icmp6_t *)(&mp->b_rptr[ip_hdr_length]);
403 icmp6 = (icmp6_t *)(&mp->b_rptr[ip_hdr_length]);
435 uint_t ip_hdr_length = ira->ira_ip_hdr_length; local
445 if (ip_hdr_length !
[all...]
H A Dipsecah.c3181 int ip_hdr_length; local
3259 ip_hdr_length = IP_SIMPLE_HDR_LENGTH;
3266 ip_hdr_length += option_length;
3349 ((ah_t *)((uint8_t *)ipha + ip_hdr_length))->ah_nexthdr =
3351 if (!ah_finish_up(((ah_t *)((uint8_t *)ipha + ip_hdr_length)),
3352 (outbound ? NULL : ((ah_t *)((uint8_t *)oipha + ip_hdr_length))),
3362 phdr_mp->b_wptr = ((uchar_t *)ipha + ip_hdr_length +
3367 *length_to_skip = ip_hdr_length;
3369 *length_to_skip = ip_hdr_length + sizeof (ah_t) + ah_align_sz;
H A Dip.c1330 int ip_hdr_length; /* Outer header length */ local
1346 ip_hdr_length = ira->ira_ip_hdr_length;
1347 if ((mp->b_wptr - mp->b_rptr) < (ip_hdr_length + ICMPH_SIZE)) {
1348 if (ira->ira_pktlen < (ip_hdr_length + ICMPH_SIZE)) {
1355 ipha = ip_pullup(mp, ip_hdr_length + ICMPH_SIZE, ira);
1364 icmph = (icmph_t *)&mp->b_rptr[ip_hdr_length];
1428 icmph = (icmph_t *)&mp->b_rptr[ip_hdr_length];
1462 len_needed = ip_hdr_length + ICMPH_SIZE +
1475 icmph = (icmph_t *)&mp->b_rptr[ip_hdr_length];
1490 icmph = (icmph_t *)&mp->b_rptr[ip_hdr_length];
1672 uint_t ip_hdr_length = ira->ira_ip_hdr_length; local
[all...]
/opensolaris-onvv-gate/usr/src/uts/common/inet/sctp/
H A Dsctp_common.c918 uint_t ip_hdr_length; local
934 ip_hdr_length = ip_total_hdrs_len_v4(ipp);
937 if (ip_hdr_length > IP_MAX_HDR_LENGTH) {
941 hdrs_len = ip_hdr_length + ulp_hdr_length;
958 sctp->sctp_ip_hdr_len = ip_hdr_length;
960 sctph = (sctp_hdr_t *)(hdrs + ip_hdr_length);
972 ip_build_hdrs_v4(hdrs, ip_hdr_length, ipp, connp->conn_proto);
980 ip_hdr_length = ip_total_hdrs_len_v6(ipp);
981 hdrs_len = ip_hdr_length + ulp_hdr_length;
998 sctp->sctp_ip_hdr6_len = ip_hdr_length;
[all...]
/opensolaris-onvv-gate/usr/src/uts/common/inet/udp/
H A Dudp.c3183 uint_t ip_hdr_length; local
3221 ip_hdr_length = (uint_t)(connp->conn_ht_ulp - connp->conn_ht_iphc);
3223 ixa->ixa_ip_hdr_length = ip_hdr_length;
3224 udpha = (udpha_t *)(iph + ip_hdr_length);
3234 cksum = pktlen - ip_hdr_length;

Completed in 216 milliseconds