Lines Matching refs:mpctl

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