Lines Matching refs:mp1
1421 mblk_t *mp1;
1423 mp1 = copymsg(mp);
1425 if (!mp1) {
1429 mp = mp1;
1483 mblk_t *mp1;
1485 mp1 = copymsg(mp);
1487 if (!mp1) {
1491 mp = mp1;
1544 mblk_t *mp1;
1546 mp1 = copymsg(mp);
1548 if (!mp1) {
1552 mp = mp1;
1624 mblk_t *mp1;
1626 mp1 = copymsg(mp);
1627 if (mp1 == NULL) {
1634 mp = mp1;
2783 mblk_t *mp1;
2874 mp1 = allocb(sizeof (icmp_ipha) + len, BPRI_MED);
2875 if (mp1 == NULL) {
2880 mp1->b_cont = mp;
2881 mp = mp1;
2893 mp1->b_wptr = (uchar_t *)ipha + (sizeof (icmp_ipha) + len);
3062 mblk_t *mp1;
3120 mp1 = copymsg(mp);
3121 if (mp1 != NULL) {
3122 icmp_send_redirect(mp1, nhop, ira);
3897 mblk_t *mp1;
3904 mp1 = dupb(mp0);
3905 if (mp1) {
3907 mp1->b_wptr = mp1->b_rptr + len;
3908 mp0->b_rptr = mp1->b_wptr;
3917 freemsg(mp1);
3923 return (mp1);
3927 for (mp2 = mp1 = mp0; (mp2 = mp2->b_cont) != 0 && len; mp1 = mp2) {
3933 mp1->b_cont = dupb(mp2);
3934 mp1 = mp1->b_cont;
3935 if (!mp1) {
3947 mp1->b_wptr = mp1->b_rptr + len;
3948 mp2->b_rptr = mp1->b_wptr;
3982 mp1->b_cont = NULL;
5015 mblk_t *mp1;
5071 if (((mp1 = dupmsg(mp)) == NULL) &&
5072 ((mp1 = copymsg(mp)) == NULL)) {
5083 ip_fanout_proto_conn(connp, mp1, (ipha_t *)mp1->b_rptr, NULL,
5315 mblk_t *mp1;
5334 if (((mp1 = dupmsg(mp)) == NULL) &&
5335 ((mp1 = copymsg(mp)) == NULL)) {
5346 ip_fanout_udp_conn(connp, mp1, (ipha_t *)mp1->b_rptr,
5429 mblk_t *mp1;
5449 if (((mp1 = dupmsg(mp)) == NULL) &&
5450 ((mp1 = copymsg(mp)) == NULL)) {
5461 ip_fanout_udp_conn(connp, mp1, (ipha_t *)mp1->b_rptr,
6677 mblk_t *mp1;
6696 for (mp1 = ipf->ipf_mp->b_cont; mp1; mp1 = mp1->b_cont) {
6697 IP_REASS_SET_START(mp1, offset);
6702 offset += mp1->b_wptr - mp1->b_rptr;
6703 IP_REASS_SET_END(mp1, offset);
6822 mp1 = ipf->ipf_mp->b_cont;
6823 offset = IP_REASS_START(mp1);
6838 mp->b_cont = mp1;
6841 if (end < IP_REASS_END(mp1)) {
6849 if ((mp1->b_cont &&
6850 IP_REASS_END(mp1) !=
6851 IP_REASS_START(mp1->b_cont) &&
6852 end >= IP_REASS_START(mp1->b_cont)) ||
6856 /* Clip out mp1. */
6857 if ((mp->b_cont = mp1->b_cont) == NULL) {
6859 * After clipping out mp1, this guy
6864 IP_REASS_SET_START(mp1, 0);
6865 IP_REASS_SET_END(mp1, 0);
6867 ipf->ipf_count -= mp1->b_datap->db_lim -
6868 mp1->b_datap->db_base;
6869 freeb(mp1);
6872 mp1 = mp->b_cont;
6873 if (!mp1)
6875 offset = IP_REASS_START(mp1);
6884 for (; mp1; mp1 = mp1->b_cont) {
6885 offset = IP_REASS_END(mp1);
6912 if (!mp1->b_cont) {
6917 mp1->b_cont = mp;
6925 if (start >= IP_REASS_START(mp1->b_cont))
6930 mp->b_cont = mp1->b_cont;
6931 mp1->b_cont = mp;
6932 mp1 = mp->b_cont;
6933 offset = IP_REASS_START(mp1);
6938 if (end < IP_REASS_END(mp1)) {
6951 if ((mp1->b_cont &&
6952 IP_REASS_END(mp1)
6953 != IP_REASS_START(mp1->b_cont) &&
6955 IP_REASS_START(mp1->b_cont)) ||
6960 /* Clip out mp1. */
6961 if ((mp->b_cont = mp1->b_cont) ==
6964 * After clipping out mp1,
6970 IP_REASS_SET_START(mp1, 0);
6971 IP_REASS_SET_END(mp1, 0);
6974 mp1->b_datap->db_lim -
6975 mp1->b_datap->db_base;
6976 freeb(mp1);
6979 mp1 = mp->b_cont;
6980 if (!mp1)
6982 offset = IP_REASS_START(mp1);
6997 for (mp1 = ipf->ipf_mp->b_cont; mp1; mp1 = mp1->b_cont) {
6998 IP_REASS_SET_START(mp1, 0);
6999 IP_REASS_SET_END(mp1, 0);
7030 mblk_t *mp1;
7064 mblk_t *mp1 = mp->b_cont;
7075 (mp1 == NULL || mp1->b_cont == NULL) &&
7087 mp, mp1, len, adj);
7210 mp1 = allocb(sizeof (*ipf), BPRI_MED);
7211 if (mp1 == NULL) {
7221 mp1->b_cont = mp;
7224 ipf = (ipf_t *)mp1->b_rptr;
7225 ipf->ipf_mp = mp1;
7238 ipf->ipf_count = MBLKSIZE(mp1);
7404 mp1 = ipf->ipf_mp;
7416 mp = mp1->b_cont;
7418 freeb(mp1);
7545 mblk_t *mp1 = mp->b_cont;
7552 mp = mp1;
8040 mblk_t *mp1;
8050 mp1 = copymsg(mp);
8051 if (mp1 == NULL) {
8059 DB_CKSUMFLAGS(mp1) = DB_CKSUMFLAGS(mp);
8060 DB_CKSUMSTART(mp1) = DB_CKSUMSTART(mp);
8061 DB_CKSUMSTUFF(mp1) = DB_CKSUMSTUFF(mp);
8062 DB_CKSUMEND(mp1) = DB_CKSUMEND(mp);
8063 DB_CKSUM16(mp1) = DB_CKSUM16(mp);
8066 return (mp1);
8200 mblk_t *mp1 = NULL;
8286 mp1 = ipsq_pending_mp_get(ipsq, &connp);
8287 if (mp1 != NULL) {
8310 mp1 = ipsq_pending_mp_get(ipsq, &connp);
8311 if (mp1 != NULL) {
8358 * Note the error for IOCTL completion (mp1 is set when
8369 if (mp1 != NULL) {
8425 mp1 = ipsq_pending_mp_get(ipsq, &connp);
8426 if (mp1 == NULL) {
8431 * mp1 was added by ill_dl_up(). if that is a result of
8469 success = ipsq_pending_mp_add(connp, ipif, q, mp1, 0);
8479 mp1 = ipsq_pending_mp_get(ipsq, &connp);
8493 err = ill_up_ipifs(ill, q, mp1);
8512 err = ipif_up(ipif, q, mp1);
8777 mp1 = ipsq_pending_mp_get(ipsq, &connp);
8778 if (mp1 != NULL) {
8854 if (mp1 == NULL)
8859 * ipsq_pending_mp_get() has removed the mblk (mp1). Otherwise,
8899 ip_ioctl_finish(q, mp1, err, NO_COPYOUT, ipsq);
8901 ip_ioctl_finish(q, mp1, err, COPYOUT, ipsq);
8905 ip_ioctl_finish(q, mp1, err, COPYOUT, ipsq);
8909 ip_ioctl_finish(q, mp1, err, NO_COPYOUT, ipsq);
12075 mblk_t *mp1;
12085 if ((mp1 = nce->nce_fp_mp) != NULL) {
12086 hlen = MBLKL(mp1);
12093 bcopy(mp1->b_rptr, rptr, hlen);
12101 mp1 = copyb(mp1);
12102 if (mp1 == NULL) {
12110 mp1->b_band = priority;
12111 mp1->b_cont = mp;
12112 DB_CKSUMSTART(mp1) = DB_CKSUMSTART(mp);
12113 DB_CKSUMSTUFF(mp1) = DB_CKSUMSTUFF(mp);
12114 DB_CKSUMEND(mp1) = DB_CKSUMEND(mp);
12115 DB_CKSUMFLAGS(mp1) = DB_CKSUMFLAGS(mp);
12116 DB_LSOMSS(mp1) = DB_LSOMSS(mp);
12117 DTRACE_PROBE1(ip__xmit__copyb, (mblk_t *), mp1);
12125 return (mp1);
12127 mp1 = copyb(nce->nce_dlur_mp);
12129 if (mp1 == NULL) {
12137 mp1->b_cont = mp;
12139 mp1->b_band = priority;
12140 ((dl_unitdata_req_t *)(mp1->b_rptr))->dl_priority.dl_max =
12143 return (mp1);
12497 mblk_t *mp1;
12506 /* Existence of mp1 verified in ip_wput_nondata */
12507 mp1 = mp->b_cont->b_cont;
12524 ifr = (struct ifreq *)mp1->b_rptr;
12528 lifr = (struct lifreq *)mp1->b_rptr;
12535 q, mp, ipip, mp1->b_rptr);
12767 mblk_t *mp1;
12826 if (!(mp1 = mp->b_cont) || !(mp1 = mp1->b_cont)) {