Fixes RAdv proto w.r.t. templates.
Thanks Alexander V. Chernikov for this.
This commit is contained in:
parent
60fd666b79
commit
2779d50a24
2 changed files with 2 additions and 2 deletions
|
@ -31,7 +31,7 @@ CF_ADDTO(proto, radv_proto '}')
|
||||||
|
|
||||||
radv_proto_start: proto_start RADV
|
radv_proto_start: proto_start RADV
|
||||||
{
|
{
|
||||||
this_proto = proto_config_new(&proto_radv, sizeof(struct radv_config));
|
this_proto = proto_config_new(&proto_radv, sizeof(struct radv_config), $1);
|
||||||
init_list(&RADV_CFG->patt_list);
|
init_list(&RADV_CFG->patt_list);
|
||||||
init_list(&RADV_CFG->pref_list);
|
init_list(&RADV_CFG->pref_list);
|
||||||
};
|
};
|
||||||
|
|
|
@ -328,7 +328,7 @@ radv_copy_config(struct proto_config *dest, struct proto_config *src)
|
||||||
init_list(&d->patt_list);
|
init_list(&d->patt_list);
|
||||||
|
|
||||||
/* We copy pref_list, shallow copy suffices */
|
/* We copy pref_list, shallow copy suffices */
|
||||||
cfg_copy_list(&d->iface_list, &s->iface_list, sizeof(struct iface_patt));
|
cfg_copy_list(&d->pref_list, &s->pref_list, sizeof(struct radv_prefix_config));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue