Home | History | Annotate | Download | only in libaltq

Lines Matching defs:ifinfo

55 static int qop_hfsc_enable_hook(struct ifinfo *);
69 static int hfsc_attach(struct ifinfo *);
70 static int hfsc_detach(struct ifinfo *);
71 static int hfsc_clear(struct ifinfo *);
72 static int hfsc_enable(struct ifinfo *);
73 static int hfsc_disable(struct ifinfo *);
177 struct ifinfo *ifinfo;
181 if ((ifinfo = ifname2ifinfo(ifname)) != NULL) {
182 fm2 = ifinfo->bandwidth / 100 * pshare;
277 struct ifinfo *ifinfo = ifname2ifinfo(ifname);
278 struct classinfo *clinfo = clname2clinfo(ifinfo, class_name);
280 if (ifinfo->resv_class != NULL) {
286 ifinfo->resv_class = clinfo;
361 struct ifinfo *ifinfo;
366 if ((ifinfo = ifname2ifinfo(ifname)) == NULL)
370 (parent = clname2clinfo(ifinfo, parent_name)) == NULL)
378 error = qop_hfsc_add_class(NULL, class_name, ifinfo, parent,
391 struct ifinfo *ifinfo;
395 if ((ifinfo = ifname2ifinfo(ifname)) == NULL)
398 if ((clinfo = clname2clinfo(ifinfo, class_name)) == NULL)
412 qop_hfsc_add_if(struct ifinfo **rp, const char *ifname,
415 struct ifinfo *ifinfo = NULL;
423 error = qop_add_if(&ifinfo, ifname, bandwidth,
429 ifinfo->enable_hook = qop_hfsc_enable_hook;
436 ifinfo, NULL, &sc, 0, 0)) != 0) {
440 (void)qop_delete_if(ifinfo);
445 *rp = ifinfo;
451 if (ifinfo != NULL)
452 ifinfo->private = NULL;
461 struct ifinfo *ifinfo, struct classinfo *parent,
469 hfsc_ifinfo = ifinfo->private;
503 if ((error = qop_add_class(&clinfo, class_name, ifinfo, parent,
642 clname2clinfo(clinfo->ifinfo, "root");
710 qop_hfsc_enable_hook(struct ifinfo *ifinfo)
715 hfsc_ifinfo = ifinfo->private;
718 ifinfo->ifname);
722 ifinfo->ifname);
726 LIST_FOREACH(clinfo, &ifinfo->cllist, next) {
991 hfsc_attach(struct ifinfo *ifinfo)
1004 strncpy(attach.iface.hfsc_ifname, ifinfo->ifname, IFNAMSIZ);
1005 attach.bandwidth = ifinfo->bandwidth;
1013 hfsc_detach(struct ifinfo *ifinfo)
1018 strncpy(iface.hfsc_ifname, ifinfo->ifname, IFNAMSIZ);
1031 hfsc_clear(struct ifinfo *ifinfo)
1036 strncpy(iface.hfsc_ifname, ifinfo->ifname, IFNAMSIZ);
1044 hfsc_enable(struct ifinfo *ifinfo)
1049 strncpy(iface.hfsc_ifname, ifinfo->ifname, IFNAMSIZ);
1057 hfsc_disable(struct ifinfo *ifinfo)
1062 strncpy(iface.hfsc_ifname, ifinfo->ifname, IFNAMSIZ);
1078 strncpy(class_add.iface.hfsc_ifname, clinfo->ifinfo->ifname, IFNAMSIZ);
1108 strncpy(class_mod.iface.hfsc_ifname, clinfo->ifinfo->ifname, IFNAMSIZ);
1134 strncpy(class_delete.iface.hfsc_ifname, clinfo->ifinfo->ifname,
1149 strncpy(fltr_add.iface.hfsc_ifname, fltrinfo->clinfo->ifinfo->ifname,
1166 strncpy(fltr_del.iface.hfsc_ifname, fltrinfo->clinfo->ifinfo->ifname,