Page MenuHomeFreeBSD

D35848.id108308.diff
No OneTemporary

D35848.id108308.diff

Index: sbin/ifconfig/ifvlan.c
===================================================================
--- sbin/ifconfig/ifvlan.c
+++ sbin/ifconfig/ifvlan.c
@@ -204,8 +204,11 @@
if (params.vlr_tag != ul)
errx(1, "value for vlan out of range");
- if (getvlan(s, &ifr, &vreq) != -1)
+ if (getvlan(s, &ifr, &vreq) != -1) {
+ vreq.vlr_tag = params.vlr_tag;
+ memcpy(&params, &vreq, sizeof(params));
vlan_set(s, &ifr);
+ }
}
static
@@ -233,8 +236,11 @@
} else
errx(1, "invalid value for vlanproto");
- if (getvlan(s, &ifr, &vreq) != -1)
+ if (getvlan(s, &ifr, &vreq) != -1) {
+ vreq.vlr_proto = params.vlr_proto;
+ memcpy(&params, &vreq, sizeof(params));
vlan_set(s, &ifr);
+ }
}
static

File Metadata

Mime Type
text/plain
Expires
Tue, Nov 19, 3:29 PM (21 h, 32 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14719007
Default Alt Text
D35848.id108308.diff (709 B)

Event Timeline