Home | History | Annotate | Download | only in libaltq

Lines Matching defs:ifinfo

58 static struct ifinfo *cdnr_ifname2ifinfo(const char *);
59 static int cdnr_attach(struct ifinfo *);
60 static int cdnr_detach(struct ifinfo *);
61 static int cdnr_enable(struct ifinfo *);
62 static int cdnr_disable(struct ifinfo *);
93 struct ifinfo *ifinfo;
96 if ((ifinfo = cdnr_ifname2ifinfo(ifname)) == NULL)
99 if ((clinfo = clname2clinfo(ifinfo, cdnr_name)) == NULL)
105 static struct ifinfo *
108 struct ifinfo *ifinfo;
114 if ((ifinfo = input_ifname2ifinfo(ifname)) != NULL)
115 return (ifinfo);
122 if ((ifinfo = ifname2ifinfo(ifname)) == NULL)
127 if (qop_add_if(&ifinfo, input_ifname, 0, &cdnr_qdisc, NULL) != 0) {
133 return (ifinfo);
140 struct ifinfo *ifinfo;
144 if ((ifinfo = cdnr_ifname2ifinfo(ifname)) == NULL)
147 if ((error = qop_cdnr_add_element(&clinfo, cdnr_name, ifinfo,
168 struct ifinfo *ifinfo;
172 if ((ifinfo = cdnr_ifname2ifinfo(ifname)) == NULL)
177 if ((error = qop_cdnr_add_tbmeter(&clinfo, cdnr_name, ifinfo,
200 struct ifinfo *ifinfo;
204 if ((ifinfo = cdnr_ifname2ifinfo(ifname)) == NULL)
210 if ((error = qop_cdnr_add_trtcm(&clinfo, cdnr_name, ifinfo,
234 struct ifinfo *ifinfo;
238 if ((ifinfo = cdnr_ifname2ifinfo(ifname)) == NULL)
247 if ((error = qop_cdnr_add_tswtcm(&clinfo, cdnr_name, ifinfo,
266 struct ifinfo *ifinfo;
269 if ((ifinfo = cdnr_ifname2ifinfo(ifname)) == NULL)
272 if ((clinfo = clname2clinfo(ifinfo, cdnr_name)) == NULL)
298 struct ifinfo *ifinfo, struct classinfo **childlist,
307 if ((root = get_rootclass(ifinfo)) == NULL) {
309 ifinfo, NULL, NULL)) != 0) {
312 qoperror(error), ifinfo->ifname);
321 ifinfo, root, cdnr_private)) != 0)
364 if ((root = get_rootclass(clinfo->ifinfo)) == NULL) {
404 struct ifinfo *ifinfo, struct tc_action *action)
411 clinfo = clhandle2clinfo(ifinfo, action->tca_handle);
441 if ((error = qop_add_cdnr(&clinfo, cdnr_name, ifinfo, clist,
457 struct ifinfo *ifinfo,
468 clist[n] = clhandle2clinfo(ifinfo, in_action->tca_handle);
474 clist[n] = clhandle2clinfo(ifinfo, out_action->tca_handle);
489 if ((error = qop_add_cdnr(&clinfo, cdnr_name, ifinfo, clist,
517 struct ifinfo *ifinfo,
530 clist[n] = clhandle2clinfo(ifinfo, green_action->tca_handle);
536 clist[n] = clhandle2clinfo(ifinfo, yellow_action->tca_handle);
542 clist[n] = clhandle2clinfo(ifinfo, yellow_action->tca_handle);
560 if ((error = qop_add_cdnr(&clinfo, cdnr_name, ifinfo, clist,
592 struct ifinfo *ifinfo, const u_int32_t cmtd_rate,
604 clist[n] = clhandle2clinfo(ifinfo, green_action->tca_handle);
610 clist[n] = clhandle2clinfo(ifinfo, yellow_action->tca_handle);
616 clist[n] = clhandle2clinfo(ifinfo, yellow_action->tca_handle);
634 if ((error = qop_add_cdnr(&clinfo, cdnr_name, ifinfo, clist,
667 cdnr_attach(struct ifinfo *ifinfo)
680 strncpy(iface.cdnr_ifname, ifinfo->ifname+1, IFNAMSIZ);
691 cdnr_detach(struct ifinfo *ifinfo)
696 strncpy(iface.cdnr_ifname, ifinfo->ifname+1, IFNAMSIZ);
709 cdnr_enable(struct ifinfo *ifinfo)
714 strncpy(iface.cdnr_ifname, ifinfo->ifname+1, IFNAMSIZ);
722 cdnr_disable(struct ifinfo *ifinfo)
727 strncpy(iface.cdnr_ifname, ifinfo->ifname+1, IFNAMSIZ);
755 clinfo->ifinfo->ifname+1, IFNAMSIZ);
767 clinfo->ifinfo->ifname+1, IFNAMSIZ);
781 clinfo->ifinfo->ifname+1, IFNAMSIZ);
798 clinfo->ifinfo->ifname+1, IFNAMSIZ);
832 clinfo->ifinfo->ifname+1, IFNAMSIZ);
842 clinfo->ifinfo->ifname+1, IFNAMSIZ);
856 clinfo->ifinfo->ifname+1, IFNAMSIZ);
880 strncpy(element_delete.iface.cdnr_ifname, clinfo->ifinfo->ifname+1,
896 fltrinfo->clinfo->ifinfo->ifname+1, IFNAMSIZ);
913 fltrinfo->clinfo->ifinfo->ifname+1, IFNAMSIZ);