Lines Matching defs:ifc
70 struct ifchange *ifc = (struct ifchange *)dep;
74 if ((ifp = mib_find_if(ifc->ifindex)) == NULL)
85 if (ifc->set & IFC_PROMISC) {
87 if (ifc->promisc)
89 ifc->rb |= IFRB_FLAGS;
91 if (ifc->set & IFC_ADMIN) {
93 if (ifc->admin)
95 ifc->rb |= IFRB_FLAGS;
97 if (ifc->rb & IFRB_FLAGS) {
103 ifc->rb_flags = ifr1.ifr_flags;
110 if (ifc->set & IFC_TRAPS) {
111 ifc->rb |= IFRB_TRAPS;
112 ifc->rb_traps = ifp->trap_enable;
113 ifp->trap_enable = ifc->traps;
118 if (ifc->rb & IFRB_FLAGS) {
120 ifr.ifr_flags = ifc->rb_flags;
127 if (ifc->rb & IFRB_TRAPS)
128 ifp->trap_enable = ifc->rb_traps;
196 struct ifchange *ifc;
229 if ((ifc = (struct ifchange *)snmp_dep_lookup(ctx,
230 &oid_ifTable, &idx, sizeof(*ifc), ifchange_func)) == NULL)
232 ifc->ifindex = ifp->index;
234 if (ifc->set & IFC_ADMIN)
236 ifc->set |= IFC_ADMIN;
237 ifc->admin = (value->v.integer == 1) ? 1 : 0;
371 struct ifchange *ifc;
404 if ((ifc = (struct ifchange *)snmp_dep_lookup(ctx,
405 &oid_ifTable, &idx, sizeof(*ifc), ifchange_func)) == NULL)
407 ifc->ifindex = ifp->index;
414 if (ifc->set & IFC_TRAPS)
416 ifc->set |= IFC_TRAPS;
417 ifc->traps = (value->v.integer == 1) ? 1 : 0;
423 if (ifc->set & IFC_PROMISC)
425 ifc->set |= IFC_PROMISC;
426 ifc->promisc = (value->v.integer == 1) ? 1 : 0;