Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102902632
D35848.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
677 B
Referenced Files
None
Subscribers
None
D35848.diff
View Options
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(¶ms, &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(¶ms, &vreq, sizeof(params));
vlan_set(s, &ifr);
+ }
}
static
File Metadata
Details
Attached
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)
Attached To
Mode
D35848: ifconfig: fix vlan/vlanproto reconfiguration
Attached
Detach File
Event Timeline
Log In to Comment