mirror of
https://dev.iopsys.eu/bbf/icwmp.git
synced 2026-03-11 03:28:31 +01:00
fix get bridge name issue
This commit is contained in:
parent
af5c0bd9ed
commit
c101da26fd
1 changed files with 3 additions and 3 deletions
|
|
@ -423,9 +423,9 @@ int set_marking_bridge_key_sub(char *refparam, struct dmctx *ctx, char *value)
|
|||
dmstrappendend(p);
|
||||
remove_substring(ifname, iface);
|
||||
}
|
||||
else
|
||||
else {
|
||||
remove_substring(ifname, baseifname);
|
||||
|
||||
}
|
||||
dmuci_set_value_by_section(s, "ifname", ifname);
|
||||
}
|
||||
uci_foreach_option_eq("network", "interface", "bridge_instance", value, s)
|
||||
|
|
@ -706,7 +706,7 @@ int get_bridge_key(char *refparam, struct dmctx *ctx, char **value)
|
|||
int get_bridge_name(char *refparam, struct dmctx *ctx, char **value)
|
||||
{
|
||||
struct args_layer2 *args = (struct args_layer2 *)ctx->args;
|
||||
section_name(args->layer2section);
|
||||
*value = dmstrdup(section_name(args->layer2section));
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue