Page MenuHomeFreeBSD

D35848.diff
No OneTemporary

D35848.diff

diff --git a/sbin/ifconfig/ifvlan.c b/sbin/ifconfig/ifvlan.c
--- a/sbin/ifconfig/ifvlan.c
+++ b/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, 1:04 PM (21 h, 26 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14716963
Default Alt Text
D35848.diff (677 B)

Event Timeline