• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/src/router/busybox-1.x/networking/

Lines Matching refs:currif

664 	struct interface_defn_t *currif = NULL;
728 currif = xzalloc(sizeof(struct interface_defn_t));
746 currif->iface = xstrdup(iface_name);
748 currif->address_family = get_address_family(addr_fams, address_family_name);
749 if (!currif->address_family) {
754 currif->method = get_method(currif->address_family, method_name);
755 if (!currif->method) {
762 if ((strcmp(tmp->iface, currif->iface) == 0) &&
763 (tmp->address_family == currif->address_family)) {
768 llist_add_to_end(&(defn->ifaces), (char*)currif);
770 debug_noise("iface %s %s %s\n", currif->iface, address_family_name, method_name);
800 for (i = 0; i < currif->n_options; i++) {
801 if (strcmp(currif->option[i].name, firstword) == 0) {
808 if (currif->n_options >= currif->max_options) {
811 currif->max_options = currif->max_options + 10;
812 opt = xrealloc(currif->option, sizeof(*opt) * currif->max_options);
813 currif->option = opt;
815 currif->option[currif->n_options].name = xstrdup(firstword);
816 currif->option[currif->n_options].value = xstrdup(buf_ptr);
817 if (!currif->option[currif->n_options].name) {
821 if (!currif->option[currif->n_options].value) {
825 debug_noise("\t%s=%s\n", currif->option[currif->n_options].name,
826 currif->option[currif->n_options].value);
827 currif->n_options++;
1179 struct interface_defn_t *currif;
1238 currif = (struct interface_defn_t *) iface_list->data;
1239 if (strcmp(liface, currif->iface) == 0) {
1240 char *oldiface = currif->iface;
1243 currif->iface = iface;
1245 debug_noise("\nConfiguring interface %s (%s)\n", liface, currif->address_family->name);
1248 cmds_ret = cmds(currif);
1251 liface, currif->address_family->name);
1257 currif->iface = oldiface;