Lines Matching refs:mp

104 ip_output_simple_v6(mblk_t *mp, ip_xmit_attr_t *ixa)
123 ip6h = (ip6_t *)mp->b_rptr;
129 ASSERT(ixa->ixa_pktlen == msgdsize(mp));
130 if (!ip_hdr_length_nexthdr_v6(mp, ip6h, &ixa->ixa_ip_hdr_length,
135 ip_drop_output("ipIfStatsOutDiscards", mp, NULL);
136 freemsg(mp);
148 dst = ip_get_dst_v6(ip6h, mp, NULL);
159 ip_drop_output("ipIfStatsOutDiscards", mp, NULL);
160 freemsg(mp);
172 error = (ire->ire_sendfn)(ire, mp, ip6h, ixa,
181 ip_drop_output("ire_to_nce", mp, ill);
182 freemsg(mp);
200 ip_drop_output("No nce", mp, ill);
201 freemsg(mp);
292 mp, ill);
293 freemsg(mp);
299 if (!ip_verify_src(mp, ixa, NULL)) {
304 mp, ill);
305 freemsg(mp);
317 mp = ip_output_attach_policy(mp, NULL, ip6h, NULL, ixa);
318 if (mp == NULL) {
347 error = (ire->ire_sendfn)(ire, mp, ip6h, ixa, &dce->dce_ident);
377 ire_send_local_v6(ire_t *ire, mblk_t *mp, void *iph_arg,
398 DTRACE_IP7(send, mblk_t *, mp, conn_t *, NULL, void_ip_t *,
404 ip6_t *, ip6h, mblk_t *, mp);
411 NULL, ill, ip6h, mp, mp, 0, ipst, error);
413 DTRACE_PROBE1(ip6__loopback__out__end, mblk_t *, mp);
414 if (mp == NULL)
423 ip6h = (ip6_t *)mp->b_rptr;
446 ipobs_hook(mp, IPOBS_HOOK_LOCAL, szone, dzone, ill, ipst);
466 ip6_t *, ip6h, mblk_t *, mp);
473 ill, NULL, ip6h, mp, mp, 0, ipst, error);
475 DTRACE_PROBE1(ip6__loopback__in__end, mblk_t *, mp);
476 if (mp == NULL)
485 ip6h = (ip6_t *)mp->b_rptr;
489 DTRACE_IP7(receive, mblk_t *, mp, conn_t *, NULL, void_ip_t *,
513 if (!tsol_get_pkt_label(mp, IPV6_VERSION, &iras)) {
515 ip_drop_input("tsol_get_pkt_label", mp, ill);
516 freemsg(mp);
522 ip6h = (ip6_t *)mp->b_rptr;
525 ip_fanout_v6(mp, ip6h, &iras);
567 ire_send_multicast_v6(ire_t *ire, mblk_t *mp, void *iph_arg,
637 return (ire_send_wire_v6(ire, mp, ip6h, ixa, identp));
644 ire_send_multirt_v6(ire_t *ire, mblk_t *mp, void *iph_arg,
652 return (ire_send_multicast_v6(ire, mp, ip6h, ixa, identp));
654 return (ire_send_wire_v6(ire, mp, ip6h, ixa, identp));
662 ire_send_noroute_v6(ire_t *ire, mblk_t *mp, void *iph_arg,
680 ip_drop_output("ipIfStatsOutNoRoutes RTF_BLACKHOLE", mp, NULL);
681 freemsg(mp);
685 ip_drop_output("ipIfStatsOutNoRoutes RTF_REJECT", mp, NULL);
695 freemsg(mp);
703 icmp_unreachable_v6(mp, ICMP6_DST_UNREACH_NOROUTE, B_FALSE, &iras);
718 ip_output_sw_cksum_v6(mblk_t *mp, ip6_t *ip6h, ip_xmit_attr_t *ixa)
730 DB_CKSUMFLAGS(mp) &= ~HCK_FLAGS;
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);
772 ASSERT(((uchar_t *)cksump) + sizeof (uint16_t) <= mp->b_wptr);
785 cksum = IP_CSUM(mp, ip_hdr_length, cksum);
817 ip_output_cksum_v6(iaflags_t ixaflags, mblk_t *mp, ip6_t *ip6h,
831 return (ip_output_sw_cksum_v6(mp, ip6h, ixa));
847 ASSERT(MBLKL(mp) >= (ip_hdr_length + sizeof (*sctph)));
848 sctph = (sctp_hdr_t *)(mp->b_rptr + ip_hdr_length);
857 sctph->sh_chksum = sctp_cksum(mp, ip_hdr_length);
877 ASSERT(((uchar_t *)cksump) + sizeof (uint16_t) <= mp->b_wptr);
887 DB_CKSUMFLAGS(mp) &= ~HCK_FLAGS;
895 DB_CKSUMFLAGS(mp) |= HCK_FULLCKSUM;
922 DB_CKSUMSTART(mp) = ip_hdr_length;
923 DB_CKSUMSTUFF(mp) = (uint8_t *)cksump - (uint8_t *)ip6h;
924 DB_CKSUMEND(mp) = pktlen;
925 DB_CKSUMFLAGS(mp) |= HCK_PARTIALCKSUM;
929 return (ip_output_sw_cksum_v6(mp, ip6h, ixa));
944 ire_send_wire_v6(ire_t *ire, mblk_t *mp, void *iph_arg,
980 mp = ip_process(IPP_LOCAL_OUT, mp, ill, ill);
981 if (mp == NULL) {
1001 mp, ill);
1002 freemsg(mp);
1005 mblk_setcred(mp, newcr, NOPID);
1028 if (!ip_output_sw_cksum_v6(mp, ip6h, ixa)) {
1030 ip_drop_output("ipIfStatsOutDiscards", mp, ill);
1031 freemsg(mp);
1066 ip_drop_output("ICMP6_PKT_TOO_BIG", mp, ill);
1067 icmp_pkt2big_v6(mp, ixa->ixa_fragsize, B_TRUE,
1097 return (ipsec_out_process(mp, ixa));
1100 mp = ip_fraghdr_add_v6(mp, ident, ixa);
1101 if (mp == NULL) {
1109 return (ip_fragment_v6(mp, ixa->ixa_nce, ixaflags,
1119 if (!ip_output_cksum_v6(ixaflags, mp, ip6h, ixa, ill)) {
1121 ip_drop_output("ipIfStatsOutDiscards", mp, ill);
1122 freemsg(mp);
1126 return ((ixa->ixa_postfragfn)(mp, ixa->ixa_nce, ixaflags,
1140 ip_postfrag_multirt_v6(mblk_t *mp, nce_t *nce, iaflags_t ixaflags,
1145 ip6_t *ip6h = (ip6_t *)mp->b_rptr;
1165 mp1 = copymsg(mp);
1169 ip_drop_output("ipIfStatsOutDiscards", mp, ill);
1200 mp, nce->nce_ill);
1246 mp, ill);
1263 mp, ill1);
1273 mp, ill1);
1278 mp1 = copymsg(mp);
1281 ip_drop_output("ipIfStatsOutDiscards", mp, ill1);
1288 DB_CKSUMSTART(mp1) = DB_CKSUMSTART(mp);
1289 DB_CKSUMSTUFF(mp1) = DB_CKSUMSTUFF(mp);
1290 DB_CKSUMEND(mp1) = DB_CKSUMEND(mp);
1291 DB_CKSUMFLAGS(mp1) = DB_CKSUMFLAGS(mp);
1292 DB_LSOMSS(mp1) = DB_LSOMSS(mp);
1307 err = ip_xmit(mp, nce, ixaflags, pkt_len, xmit_hint, szone, 0,