Lines Matching refs:mpctl
9606 ip_snmp_get(queue_t *q, mblk_t *mpctl, int level, boolean_t legacy_req) in ip_snmp_get() argument
9619 if (mpctl == NULL || mpctl->b_cont == NULL) { in ip_snmp_get()
9633 if ((mpctl = icmp_snmp_get(q, mpctl)) == NULL) { in ip_snmp_get()
9639 if ((mpctl = udp_snmp_get(q, mpctl, legacy_req)) == NULL) { in ip_snmp_get()
9645 if ((mpctl = tcp_snmp_get(q, mpctl, legacy_req)) == NULL) { in ip_snmp_get()
9650 if ((mpctl = ip_snmp_get_mib2_ip_traffic_stats(q, mpctl, in ip_snmp_get()
9655 if ((mpctl = ip_snmp_get_mib2_ip6(q, mpctl, ipst, in ip_snmp_get()
9660 if ((mpctl = ip_snmp_get_mib2_icmp(q, mpctl, ipst)) == NULL) { in ip_snmp_get()
9664 if ((mpctl = ip_snmp_get_mib2_icmp6(q, mpctl, ipst)) == NULL) { in ip_snmp_get()
9668 if ((mpctl = ip_snmp_get_mib2_igmp(q, mpctl, ipst)) == NULL) { in ip_snmp_get()
9672 if ((mpctl = ip_snmp_get_mib2_multi(q, mpctl, ipst)) == NULL) { in ip_snmp_get()
9676 if ((mpctl = ip_snmp_get_mib2_ip_addr(q, mpctl, ipst, in ip_snmp_get()
9681 if ((mpctl = ip_snmp_get_mib2_ip6_addr(q, mpctl, ipst, in ip_snmp_get()
9686 if ((mpctl = ip_snmp_get_mib2_ip_group_mem(q, mpctl, ipst)) == NULL) { in ip_snmp_get()
9690 if ((mpctl = ip_snmp_get_mib2_ip6_group_mem(q, mpctl, ipst)) == NULL) { in ip_snmp_get()
9694 if ((mpctl = ip_snmp_get_mib2_ip_group_src(q, mpctl, ipst)) == NULL) { in ip_snmp_get()
9698 if ((mpctl = ip_snmp_get_mib2_ip6_group_src(q, mpctl, ipst)) == NULL) { in ip_snmp_get()
9702 if ((mpctl = ip_snmp_get_mib2_virt_multi(q, mpctl, ipst)) == NULL) { in ip_snmp_get()
9706 if ((mpctl = ip_snmp_get_mib2_multi_rtable(q, mpctl, ipst)) == NULL) { in ip_snmp_get()
9710 mpctl = ip_snmp_get_mib2_ip_route_media(q, mpctl, level, ipst); in ip_snmp_get()
9711 if (mpctl == NULL) in ip_snmp_get()
9714 mpctl = ip_snmp_get_mib2_ip6_route_media(q, mpctl, level, ipst); in ip_snmp_get()
9715 if (mpctl == NULL) in ip_snmp_get()
9718 if ((mpctl = sctp_snmp_get_mib2(q, mpctl, sctps)) == NULL) { in ip_snmp_get()
9721 if ((mpctl = ip_snmp_get_mib2_ip_dce(q, mpctl, ipst)) == NULL) { in ip_snmp_get()
9724 freemsg(mpctl); in ip_snmp_get()
9730 ip_snmp_get_mib2_ip(queue_t *q, mblk_t *mpctl, mib2_ipIfStatsEntry_t *ipmib, in ip_snmp_get_mib2_ip() argument
9741 mp2ctl = copymsg(mpctl); in ip_snmp_get_mib2_ip()
9744 optp = (struct opthdr *)&mpctl->b_rptr[sizeof (struct T_optmgmt_ack)]; in ip_snmp_get_mib2_ip()
9813 if (!snmp_append_data(mpctl->b_cont, (char *)&old_ip_mib, in ip_snmp_get_mib2_ip()
9819 optp->len = (t_uscalar_t)msgdsize(mpctl->b_cont); in ip_snmp_get_mib2_ip()
9822 qreply(q, mpctl); in ip_snmp_get_mib2_ip()
9828 ip_snmp_get_mib2_ip_traffic_stats(queue_t *q, mblk_t *mpctl, ip_stack_t *ipst, in ip_snmp_get_mib2_ip_traffic_stats() argument
9842 mp2ctl = copymsg(mpctl); in ip_snmp_get_mib2_ip_traffic_stats()
9844 optp = (struct opthdr *)&mpctl->b_rptr[sizeof (struct T_optmgmt_ack)]; in ip_snmp_get_mib2_ip_traffic_stats()
9875 if (!snmp_append_data2(mpctl->b_cont, &mp_tail, in ip_snmp_get_mib2_ip_traffic_stats()
9893 if (!snmp_append_data2(mpctl->b_cont, &mp_tail, in ip_snmp_get_mib2_ip_traffic_stats()
9903 optp->len = (t_uscalar_t)msgdsize(mpctl->b_cont); in ip_snmp_get_mib2_ip_traffic_stats()
9907 qreply(q, mpctl); in ip_snmp_get_mib2_ip_traffic_stats()
9918 ip_snmp_get_mib2_icmp(queue_t *q, mblk_t *mpctl, ip_stack_t *ipst) in ip_snmp_get_mib2_icmp() argument
9926 mp2ctl = copymsg(mpctl); in ip_snmp_get_mib2_icmp()
9928 optp = (struct opthdr *)&mpctl->b_rptr[sizeof (struct T_optmgmt_ack)]; in ip_snmp_get_mib2_icmp()
9931 if (!snmp_append_data(mpctl->b_cont, (char *)&ipst->ips_icmp_mib, in ip_snmp_get_mib2_icmp()
9936 optp->len = (t_uscalar_t)msgdsize(mpctl->b_cont); in ip_snmp_get_mib2_icmp()
9939 qreply(q, mpctl); in ip_snmp_get_mib2_icmp()
9945 ip_snmp_get_mib2_igmp(queue_t *q, mblk_t *mpctl, ip_stack_t *ipst) in ip_snmp_get_mib2_igmp() argument
9953 mp2ctl = copymsg(mpctl); in ip_snmp_get_mib2_igmp()
9955 optp = (struct opthdr *)&mpctl->b_rptr[sizeof (struct T_optmgmt_ack)]; in ip_snmp_get_mib2_igmp()
9958 if (!snmp_append_data(mpctl->b_cont, (char *)&ipst->ips_igmpstat, in ip_snmp_get_mib2_igmp()
9963 optp->len = (t_uscalar_t)msgdsize(mpctl->b_cont); in ip_snmp_get_mib2_igmp()
9966 qreply(q, mpctl); in ip_snmp_get_mib2_igmp()
9972 ip_snmp_get_mib2_multi(queue_t *q, mblk_t *mpctl, ip_stack_t *ipst) in ip_snmp_get_mib2_multi() argument
9980 mp2ctl = copymsg(mpctl); in ip_snmp_get_mib2_multi()
9982 optp = (struct opthdr *)&mpctl->b_rptr[sizeof (struct T_optmgmt_ack)]; in ip_snmp_get_mib2_multi()
9985 if (!ip_mroute_stats(mpctl->b_cont, ipst)) { in ip_snmp_get_mib2_multi()
9988 optp->len = (t_uscalar_t)msgdsize(mpctl->b_cont); in ip_snmp_get_mib2_multi()
9991 qreply(q, mpctl); in ip_snmp_get_mib2_multi()
9997 ip_snmp_get_mib2_ip_addr(queue_t *q, mblk_t *mpctl, ip_stack_t *ipst, in ip_snmp_get_mib2_ip_addr() argument
10014 mp2ctl = copymsg(mpctl); in ip_snmp_get_mib2_ip_addr()
10021 optp = (struct opthdr *)&mpctl->b_rptr[sizeof (struct T_optmgmt_ack)]; in ip_snmp_get_mib2_ip_addr()
10071 if (!snmp_append_data2(mpctl->b_cont, &mp_tail, in ip_snmp_get_mib2_ip_addr()
10080 optp->len = (t_uscalar_t)msgdsize(mpctl->b_cont); in ip_snmp_get_mib2_ip_addr()
10083 qreply(q, mpctl); in ip_snmp_get_mib2_ip_addr()
10089 ip_snmp_get_mib2_ip6_addr(queue_t *q, mblk_t *mpctl, ip_stack_t *ipst, in ip_snmp_get_mib2_ip6_addr() argument
10105 mp2ctl = copymsg(mpctl); in ip_snmp_get_mib2_ip6_addr()
10113 optp = (struct opthdr *)&mpctl->b_rptr[sizeof (struct T_optmgmt_ack)]; in ip_snmp_get_mib2_ip6_addr()
10181 if (!snmp_append_data2(mpctl->b_cont, &mp_tail, in ip_snmp_get_mib2_ip6_addr()
10191 optp->len = (t_uscalar_t)msgdsize(mpctl->b_cont); in ip_snmp_get_mib2_ip6_addr()
10194 qreply(q, mpctl); in ip_snmp_get_mib2_ip6_addr()
10200 ip_snmp_get_mib2_ip_group_mem(queue_t *q, mblk_t *mpctl, ip_stack_t *ipst) in ip_snmp_get_mib2_ip_group_mem() argument
10215 mp2ctl = copymsg(mpctl); in ip_snmp_get_mib2_ip_group_mem()
10219 optp = (struct opthdr *)&mpctl->b_rptr[ in ip_snmp_get_mib2_ip_group_mem()
10260 if (!snmp_append_data2(mpctl->b_cont, &mp_tail, in ip_snmp_get_mib2_ip_group_mem()
10272 optp->len = (t_uscalar_t)msgdsize(mpctl->b_cont); in ip_snmp_get_mib2_ip_group_mem()
10275 qreply(q, mpctl); in ip_snmp_get_mib2_ip_group_mem()
10281 ip_snmp_get_mib2_ip6_group_mem(queue_t *q, mblk_t *mpctl, ip_stack_t *ipst) in ip_snmp_get_mib2_ip6_group_mem() argument
10295 mp2ctl = copymsg(mpctl); in ip_snmp_get_mib2_ip6_group_mem()
10299 optp = (struct opthdr *)&mpctl->b_rptr[sizeof (struct T_optmgmt_ack)]; in ip_snmp_get_mib2_ip6_group_mem()
10323 if (!snmp_append_data2(mpctl->b_cont, in ip_snmp_get_mib2_ip6_group_mem()
10337 optp->len = (t_uscalar_t)msgdsize(mpctl->b_cont); in ip_snmp_get_mib2_ip6_group_mem()
10340 qreply(q, mpctl); in ip_snmp_get_mib2_ip6_group_mem()
10346 ip_snmp_get_mib2_ip_group_src(queue_t *q, mblk_t *mpctl, ip_stack_t *ipst) in ip_snmp_get_mib2_ip_group_src() argument
10363 mp2ctl = copymsg(mpctl); in ip_snmp_get_mib2_ip_group_src()
10367 optp = (struct opthdr *)&mpctl->b_rptr[ in ip_snmp_get_mib2_ip_group_src()
10414 if (snmp_append_data2(mpctl->b_cont, &mp_tail, in ip_snmp_get_mib2_ip_group_src()
10427 optp->len = (t_uscalar_t)msgdsize(mpctl->b_cont); in ip_snmp_get_mib2_ip_group_src()
10430 qreply(q, mpctl); in ip_snmp_get_mib2_ip_group_src()
10436 ip_snmp_get_mib2_ip6_group_src(queue_t *q, mblk_t *mpctl, ip_stack_t *ipst) in ip_snmp_get_mib2_ip6_group_src() argument
10452 mp2ctl = copymsg(mpctl); in ip_snmp_get_mib2_ip6_group_src()
10456 optp = (struct opthdr *)&mpctl->b_rptr[sizeof (struct T_optmgmt_ack)]; in ip_snmp_get_mib2_ip6_group_src()
10483 if (!snmp_append_data2(mpctl->b_cont, &mp_tail, in ip_snmp_get_mib2_ip6_group_src()
10498 optp->len = (t_uscalar_t)msgdsize(mpctl->b_cont); in ip_snmp_get_mib2_ip6_group_src()
10501 qreply(q, mpctl); in ip_snmp_get_mib2_ip6_group_src()
10507 ip_snmp_get_mib2_virt_multi(queue_t *q, mblk_t *mpctl, ip_stack_t *ipst) in ip_snmp_get_mib2_virt_multi() argument
10515 mp2ctl = copymsg(mpctl); in ip_snmp_get_mib2_virt_multi()
10517 optp = (struct opthdr *)&mpctl->b_rptr[sizeof (struct T_optmgmt_ack)]; in ip_snmp_get_mib2_virt_multi()
10520 if (!ip_mroute_vif(mpctl->b_cont, ipst)) { in ip_snmp_get_mib2_virt_multi()
10523 optp->len = (t_uscalar_t)msgdsize(mpctl->b_cont); in ip_snmp_get_mib2_virt_multi()
10526 qreply(q, mpctl); in ip_snmp_get_mib2_virt_multi()
10532 ip_snmp_get_mib2_multi_rtable(queue_t *q, mblk_t *mpctl, ip_stack_t *ipst) in ip_snmp_get_mib2_multi_rtable() argument
10540 mp2ctl = copymsg(mpctl); in ip_snmp_get_mib2_multi_rtable()
10542 optp = (struct opthdr *)&mpctl->b_rptr[sizeof (struct T_optmgmt_ack)]; in ip_snmp_get_mib2_multi_rtable()
10545 if (!ip_mroute_mrt(mpctl->b_cont, ipst)) { in ip_snmp_get_mib2_multi_rtable()
10548 optp->len = (t_uscalar_t)msgdsize(mpctl->b_cont); in ip_snmp_get_mib2_multi_rtable()
10551 qreply(q, mpctl); in ip_snmp_get_mib2_multi_rtable()
10560 ip_snmp_get_mib2_ip_route_media(queue_t *q, mblk_t *mpctl, int level, in ip_snmp_get_mib2_ip_route_media() argument
10577 mp2ctl = copymsg(mpctl); in ip_snmp_get_mib2_ip_route_media()
10578 mp3ctl = copymsg(mpctl); in ip_snmp_get_mib2_ip_route_media()
10579 mp4ctl = copymsg(mpctl); in ip_snmp_get_mib2_ip_route_media()
10584 freemsg(mpctl); in ip_snmp_get_mib2_ip_route_media()
10590 ird.ird_route.lp_head = mpctl->b_cont; in ip_snmp_get_mib2_ip_route_media()
10606 optp = (struct opthdr *)&mpctl->b_rptr[sizeof (struct T_optmgmt_ack)]; in ip_snmp_get_mib2_ip_route_media()
10612 qreply(q, mpctl); in ip_snmp_get_mib2_ip_route_media()
10645 ip_snmp_get_mib2_ip6_route_media(queue_t *q, mblk_t *mpctl, int level, in ip_snmp_get_mib2_ip6_route_media() argument
10662 mp2ctl = copymsg(mpctl); in ip_snmp_get_mib2_ip6_route_media()
10663 mp3ctl = copymsg(mpctl); in ip_snmp_get_mib2_ip6_route_media()
10664 mp4ctl = copymsg(mpctl); in ip_snmp_get_mib2_ip6_route_media()
10669 freemsg(mpctl); in ip_snmp_get_mib2_ip6_route_media()
10675 ird.ird_route.lp_head = mpctl->b_cont; in ip_snmp_get_mib2_ip6_route_media()
10690 optp = (struct opthdr *)&mpctl->b_rptr[sizeof (struct T_optmgmt_ack)]; in ip_snmp_get_mib2_ip6_route_media()
10696 qreply(q, mpctl); in ip_snmp_get_mib2_ip6_route_media()
10728 ip_snmp_get_mib2_ip6(queue_t *q, mblk_t *mpctl, ip_stack_t *ipst, in ip_snmp_get_mib2_ip6() argument
10743 mp2ctl = copymsg(mpctl); in ip_snmp_get_mib2_ip6()
10756 optp = (struct opthdr *)&mpctl->b_rptr[sizeof (struct T_optmgmt_ack)]; in ip_snmp_get_mib2_ip6()
10796 if (!snmp_append_data2(mpctl->b_cont, &mp_tail, in ip_snmp_get_mib2_ip6()
10834 if (!snmp_append_data2(mpctl->b_cont, &mp_tail, in ip_snmp_get_mib2_ip6()
10848 optp->len = (t_uscalar_t)msgdsize(mpctl->b_cont); in ip_snmp_get_mib2_ip6()
10851 qreply(q, mpctl); in ip_snmp_get_mib2_ip6()
10859 ip_snmp_get_mib2_icmp6(queue_t *q, mblk_t *mpctl, ip_stack_t *ipst) in ip_snmp_get_mib2_icmp6() argument
10869 mp2ctl = copymsg(mpctl); in ip_snmp_get_mib2_icmp6()
10873 optp = (struct opthdr *)&mpctl->b_rptr[sizeof (struct T_optmgmt_ack)]; in ip_snmp_get_mib2_icmp6()
10881 if (!snmp_append_data2(mpctl->b_cont, &mp_tail, in ip_snmp_get_mib2_icmp6()
10893 if (!snmp_append_data2(mpctl->b_cont, &mp_tail, in ip_snmp_get_mib2_icmp6()
10903 optp->len = (t_uscalar_t)msgdsize(mpctl->b_cont); in ip_snmp_get_mib2_icmp6()
10906 qreply(q, mpctl); in ip_snmp_get_mib2_icmp6()