Lines Matching refs:mpctl

9563  * NOTE: original mpctl is copied for msg's 2..N, since its ctl part is
9568 * should free mpctl.
9571 ip_snmp_get(queue_t *q, mblk_t *mpctl, int level, boolean_t legacy_req)
9584 if (mpctl == NULL || mpctl->b_cont == NULL) {
9598 if ((mpctl = icmp_snmp_get(q, mpctl)) == NULL) {
9604 if ((mpctl = udp_snmp_get(q, mpctl, legacy_req)) == NULL) {
9610 if ((mpctl = tcp_snmp_get(q, mpctl, legacy_req)) == NULL) {
9615 if ((mpctl = ip_snmp_get_mib2_ip_traffic_stats(q, mpctl,
9620 if ((mpctl = ip_snmp_get_mib2_ip6(q, mpctl, ipst,
9625 if ((mpctl = ip_snmp_get_mib2_icmp(q, mpctl, ipst)) == NULL) {
9629 if ((mpctl = ip_snmp_get_mib2_icmp6(q, mpctl, ipst)) == NULL) {
9633 if ((mpctl = ip_snmp_get_mib2_igmp(q, mpctl, ipst)) == NULL) {
9637 if ((mpctl = ip_snmp_get_mib2_multi(q, mpctl, ipst)) == NULL) {
9641 if ((mpctl = ip_snmp_get_mib2_ip_addr(q, mpctl, ipst,
9646 if ((mpctl = ip_snmp_get_mib2_ip6_addr(q, mpctl, ipst,
9651 if ((mpctl = ip_snmp_get_mib2_ip_group_mem(q, mpctl, ipst)) == NULL) {
9655 if ((mpctl = ip_snmp_get_mib2_ip6_group_mem(q, mpctl, ipst)) == NULL) {
9659 if ((mpctl = ip_snmp_get_mib2_ip_group_src(q, mpctl, ipst)) == NULL) {
9663 if ((mpctl = ip_snmp_get_mib2_ip6_group_src(q, mpctl, ipst)) == NULL) {
9667 if ((mpctl = ip_snmp_get_mib2_virt_multi(q, mpctl, ipst)) == NULL) {
9671 if ((mpctl = ip_snmp_get_mib2_multi_rtable(q, mpctl, ipst)) == NULL) {
9675 mpctl = ip_snmp_get_mib2_ip_route_media(q, mpctl, level, ipst);
9676 if (mpctl == NULL)
9679 mpctl = ip_snmp_get_mib2_ip6_route_media(q, mpctl, level, ipst);
9680 if (mpctl == NULL)
9683 if ((mpctl = sctp_snmp_get_mib2(q, mpctl, sctps)) == NULL) {
9686 if ((mpctl = ip_snmp_get_mib2_ip_dce(q, mpctl, ipst)) == NULL) {
9689 freemsg(mpctl);
9695 ip_snmp_get_mib2_ip(queue_t *q, mblk_t *mpctl, mib2_ipIfStatsEntry_t *ipmib,
9706 mp2ctl = copymsg(mpctl);
9709 optp = (struct opthdr *)&mpctl->b_rptr[sizeof (struct T_optmgmt_ack)];
9778 if (!snmp_append_data(mpctl->b_cont, (char *)&old_ip_mib,
9784 optp->len = (t_uscalar_t)msgdsize(mpctl->b_cont);
9787 qreply(q, mpctl);
9793 ip_snmp_get_mib2_ip_traffic_stats(queue_t *q, mblk_t *mpctl, ip_stack_t *ipst,
9807 mp2ctl = copymsg(mpctl);
9809 optp = (struct opthdr *)&mpctl->b_rptr[sizeof (struct T_optmgmt_ack)];
9840 if (!snmp_append_data2(mpctl->b_cont, &mp_tail,
9858 if (!snmp_append_data2(mpctl->b_cont, &mp_tail,
9868 optp->len = (t_uscalar_t)msgdsize(mpctl->b_cont);
9872 qreply(q, mpctl);
9883 ip_snmp_get_mib2_icmp(queue_t *q, mblk_t *mpctl, ip_stack_t *ipst)
9891 mp2ctl = copymsg(mpctl);
9893 optp = (struct opthdr *)&mpctl->b_rptr[sizeof (struct T_optmgmt_ack)];
9896 if (!snmp_append_data(mpctl->b_cont, (char *)&ipst->ips_icmp_mib,
9901 optp->len = (t_uscalar_t)msgdsize(mpctl->b_cont);
9904 qreply(q, mpctl);
9910 ip_snmp_get_mib2_igmp(queue_t *q, mblk_t *mpctl, ip_stack_t *ipst)
9918 mp2ctl = copymsg(mpctl);
9920 optp = (struct opthdr *)&mpctl->b_rptr[sizeof (struct T_optmgmt_ack)];
9923 if (!snmp_append_data(mpctl->b_cont, (char *)&ipst->ips_igmpstat,
9928 optp->len = (t_uscalar_t)msgdsize(mpctl->b_cont);
9931 qreply(q, mpctl);
9937 ip_snmp_get_mib2_multi(queue_t *q, mblk_t *mpctl, ip_stack_t *ipst)
9945 mp2ctl = copymsg(mpctl);
9947 optp = (struct opthdr *)&mpctl->b_rptr[sizeof (struct T_optmgmt_ack)];
9950 if (!ip_mroute_stats(mpctl->b_cont, ipst)) {
9953 optp->len = (t_uscalar_t)msgdsize(mpctl->b_cont);
9956 qreply(q, mpctl);
9962 ip_snmp_get_mib2_ip_addr(queue_t *q, mblk_t *mpctl, ip_stack_t *ipst,
9979 mp2ctl = copymsg(mpctl);
9986 optp = (struct opthdr *)&mpctl->b_rptr[sizeof (struct T_optmgmt_ack)];
10036 if (!snmp_append_data2(mpctl->b_cont, &mp_tail,
10045 optp->len = (t_uscalar_t)msgdsize(mpctl->b_cont);
10048 qreply(q, mpctl);
10054 ip_snmp_get_mib2_ip6_addr(queue_t *q, mblk_t *mpctl, ip_stack_t *ipst,
10070 mp2ctl = copymsg(mpctl);
10078 optp = (struct opthdr *)&mpctl->b_rptr[sizeof (struct T_optmgmt_ack)];
10146 if (!snmp_append_data2(mpctl->b_cont, &mp_tail,
10156 optp->len = (t_uscalar_t)msgdsize(mpctl->b_cont);
10159 qreply(q, mpctl);
10165 ip_snmp_get_mib2_ip_group_mem(queue_t *q, mblk_t *mpctl, ip_stack_t *ipst)
10180 mp2ctl = copymsg(mpctl);
10184 optp = (struct opthdr *)&mpctl->b_rptr[
10225 if (!snmp_append_data2(mpctl->b_cont, &mp_tail,
10237 optp->len = (t_uscalar_t)msgdsize(mpctl->b_cont);
10240 qreply(q, mpctl);
10246 ip_snmp_get_mib2_ip6_group_mem(queue_t *q, mblk_t *mpctl, ip_stack_t *ipst)
10260 mp2ctl = copymsg(mpctl);
10264 optp = (struct opthdr *)&mpctl->b_rptr[sizeof (struct T_optmgmt_ack)];
10288 if (!snmp_append_data2(mpctl->b_cont,
10302 optp->len = (t_uscalar_t)msgdsize(mpctl->b_cont);
10305 qreply(q, mpctl);
10311 ip_snmp_get_mib2_ip_group_src(queue_t *q, mblk_t *mpctl, ip_stack_t *ipst)
10328 mp2ctl = copymsg(mpctl);
10332 optp = (struct opthdr *)&mpctl->b_rptr[
10379 if (snmp_append_data2(mpctl->b_cont, &mp_tail,
10392 optp->len = (t_uscalar_t)msgdsize(mpctl->b_cont);
10395 qreply(q, mpctl);
10401 ip_snmp_get_mib2_ip6_group_src(queue_t *q, mblk_t *mpctl, ip_stack_t *ipst)
10417 mp2ctl = copymsg(mpctl);
10421 optp = (struct opthdr *)&mpctl->b_rptr[sizeof (struct T_optmgmt_ack)];
10448 if (!snmp_append_data2(mpctl->b_cont, &mp_tail,
10463 optp->len = (t_uscalar_t)msgdsize(mpctl->b_cont);
10466 qreply(q, mpctl);
10472 ip_snmp_get_mib2_virt_multi(queue_t *q, mblk_t *mpctl, ip_stack_t *ipst)
10480 mp2ctl = copymsg(mpctl);
10482 optp = (struct opthdr *)&mpctl->b_rptr[sizeof (struct T_optmgmt_ack)];
10485 if (!ip_mroute_vif(mpctl->b_cont, ipst)) {
10488 optp->len = (t_uscalar_t)msgdsize(mpctl->b_cont);
10491 qreply(q, mpctl);
10497 ip_snmp_get_mib2_multi_rtable(queue_t *q, mblk_t *mpctl, ip_stack_t *ipst)
10505 mp2ctl = copymsg(mpctl);
10507 optp = (struct opthdr *)&mpctl->b_rptr[sizeof (struct T_optmgmt_ack)];
10510 if (!ip_mroute_mrt(mpctl->b_cont, ipst)) {
10513 optp->len = (t_uscalar_t)msgdsize(mpctl->b_cont);
10516 qreply(q, mpctl);
10525 ip_snmp_get_mib2_ip_route_media(queue_t *q, mblk_t *mpctl, int level,
10538 * - mpctl is sent upstream as ipRouteEntryTable
10542 mp2ctl = copymsg(mpctl);
10543 mp3ctl = copymsg(mpctl);
10544 mp4ctl = copymsg(mpctl);
10549 freemsg(mpctl);
10555 ird.ird_route.lp_head = mpctl->b_cont;
10570 /* ipRouteEntryTable in mpctl */
10571 optp = (struct opthdr *)&mpctl->b_rptr[sizeof (struct T_optmgmt_ack)];
10577 qreply(q, mpctl);
10610 ip_snmp_get_mib2_ip6_route_media(queue_t *q, mblk_t *mpctl, int level,
10623 * - mpctl is sent upstream as ipv6RouteEntryTable
10627 mp2ctl = copymsg(mpctl);
10628 mp3ctl = copymsg(mpctl);
10629 mp4ctl = copymsg(mpctl);
10634 freemsg(mpctl);
10640 ird.ird_route.lp_head = mpctl->b_cont;
10655 optp = (struct opthdr *)&mpctl->b_rptr[sizeof (struct T_optmgmt_ack)];
10661 qreply(q, mpctl);
10693 ip_snmp_get_mib2_ip6(queue_t *q, mblk_t *mpctl, ip_stack_t *ipst,
10708 mp2ctl = copymsg(mpctl);
10721 optp = (struct opthdr *)&mpctl->b_rptr[sizeof (struct T_optmgmt_ack)];
10761 if (!snmp_append_data2(mpctl->b_cont, &mp_tail,
10799 if (!snmp_append_data2(mpctl->b_cont, &mp_tail,
10813 optp->len = (t_uscalar_t)msgdsize(mpctl->b_cont);
10816 qreply(q, mpctl);
10824 ip_snmp_get_mib2_icmp6(queue_t *q, mblk_t *mpctl, ip_stack_t *ipst)
10834 mp2ctl = copymsg(mpctl);
10838 optp = (struct opthdr *)&mpctl->b_rptr[sizeof (struct T_optmgmt_ack)];
10846 if (!snmp_append_data2(mpctl->b_cont, &mp_tail,
10858 if (!snmp_append_data2(mpctl->b_cont, &mp_tail,
10868 optp->len = (t_uscalar_t)msgdsize(mpctl->b_cont);
10871 qreply(q, mpctl);