vlan.c (403f0727cb35d3ce82166340d792e20c7d5adb30) vlan.c (9c403b6beeeb6cccebb745804820fdccf38125a7)
1/*
2 * INET 802.1Q VLAN
3 * Ethernet-type device handling.
4 *
5 * Authors: Ben Greear <greearb@candelatech.com>
6 * Please send support related email to: netdev@vger.kernel.org
7 * VLAN Home Page: http://www.candelatech.com/~greear/vlan.html
8 *

--- 501 unchanged lines hidden (view full) ---

510 int err;
511 struct vlan_ioctl_args args;
512 struct net_device *dev = NULL;
513
514 if (copy_from_user(&args, arg, sizeof(struct vlan_ioctl_args)))
515 return -EFAULT;
516
517 /* Null terminate this sucker, just in case. */
1/*
2 * INET 802.1Q VLAN
3 * Ethernet-type device handling.
4 *
5 * Authors: Ben Greear <greearb@candelatech.com>
6 * Please send support related email to: netdev@vger.kernel.org
7 * VLAN Home Page: http://www.candelatech.com/~greear/vlan.html
8 *

--- 501 unchanged lines hidden (view full) ---

510 int err;
511 struct vlan_ioctl_args args;
512 struct net_device *dev = NULL;
513
514 if (copy_from_user(&args, arg, sizeof(struct vlan_ioctl_args)))
515 return -EFAULT;
516
517 /* Null terminate this sucker, just in case. */
518 args.device1[23] = 0;
519 args.u.device2[23] = 0;
518 args.device1[sizeof(args.device1) - 1] = 0;
519 args.u.device2[sizeof(args.u.device2) - 1] = 0;
520
521 rtnl_lock();
522
523 switch (args.cmd) {
524 case SET_VLAN_INGRESS_PRIORITY_CMD:
525 case SET_VLAN_EGRESS_PRIORITY_CMD:
526 case SET_VLAN_FLAG_CMD:
527 case ADD_VLAN_CMD:

--- 277 unchanged lines hidden ---
520
521 rtnl_lock();
522
523 switch (args.cmd) {
524 case SET_VLAN_INGRESS_PRIORITY_CMD:
525 case SET_VLAN_EGRESS_PRIORITY_CMD:
526 case SET_VLAN_FLAG_CMD:
527 case ADD_VLAN_CMD:

--- 277 unchanged lines hidden ---