mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

58 lines
3.0 KiB

  1. --- vlan/vconfig.c.orig 2004-03-27 10:52:29.000000000 +0100
  2. +++ vlan/vconfig.c 2004-03-27 10:53:35.000000000 +0100
  3. @@ -37,31 +37,30 @@
  4. static char* usage =
  5. - "
  6. -Usage: add [interface-name] [vlan_id]
  7. - rem [vlan-name]
  8. - set_flag [interface-name] [flag-num] [0 | 1]
  9. - set_egress_map [vlan-name] [skb_priority] [vlan_qos]
  10. - set_ingress_map [vlan-name] [skb_priority] [vlan_qos]
  11. - set_name_type [name-type]
  12. -
  13. -* The [interface-name] is the name of the ethernet card that hosts
  14. - the VLAN you are talking about.
  15. -* The vlan_id is the identifier (0-4095) of the VLAN you are operating on.
  16. -* skb_priority is the priority in the socket buffer (sk_buff).
  17. -* vlan_qos is the 3 bit priority in the VLAN header
  18. -* name-type: VLAN_PLUS_VID (vlan0005), VLAN_PLUS_VID_NO_PAD (vlan5),
  19. - DEV_PLUS_VID (eth0.0005), DEV_PLUS_VID_NO_PAD (eth0.5)
  20. -* bind-type: PER_DEVICE # Allows vlan 5 on eth0 and eth1 to be unique.
  21. - PER_KERNEL # Forces vlan 5 to be unique across all devices.
  22. -* FLAGS: 1 REORDER_HDR When this is set, the VLAN device will move the
  23. - ethernet header around to make it look exactly like a real
  24. - ethernet device. This may help programs such as DHCPd which
  25. - read the raw ethernet packet and make assumptions about the
  26. - location of bytes. If you don't need it, don't turn it on, because
  27. - there will be at least a small performance degradation. Default
  28. - is OFF.
  29. -";
  30. +"\n"
  31. +"Usage: add [interface-name] [vlan_id]\n"
  32. +" rem [vlan-name]\n"
  33. +" set_flag [interface-name] [flag-num] [0 | 1]\n"
  34. +" set_egress_map [vlan-name] [skb_priority] [vlan_qos]\n"
  35. +" set_ingress_map [vlan-name] [skb_priority] [vlan_qos]\n"
  36. +" set_name_type [name-type]\n"
  37. +"\n"
  38. +"* The [interface-name] is the name of the ethernet card that hosts\n"
  39. +" the VLAN you are talking about.\n"
  40. +"* The vlan_id is the identifier (0-4095) of the VLAN you are operating on.\n"
  41. +"* skb_priority is the priority in the socket buffer (sk_buff).\n"
  42. +"* vlan_qos is the 3 bit priority in the VLAN header\n"
  43. +"* name-type: VLAN_PLUS_VID (vlan0005), VLAN_PLUS_VID_NO_PAD (vlan5),\n"
  44. +" DEV_PLUS_VID (eth0.0005), DEV_PLUS_VID_NO_PAD (eth0.5)\n"
  45. +"* bind-type: PER_DEVICE # Allows vlan 5 on eth0 and eth1 to be unique.\n"
  46. +" PER_KERNEL # Forces vlan 5 to be unique across all devices.\n"
  47. +"* FLAGS: 1 REORDER_HDR When this is set, the VLAN device will move the\n"
  48. +" ethernet header around to make it look exactly like a real\n"
  49. +" ethernet device. This may help programs such as DHCPd which\n"
  50. +" read the raw ethernet packet and make assumptions about the\n"
  51. +" location of bytes. If you don't need it, don't turn it on, because\n"
  52. +" there will be at least a small performance degradation. Default\n"
  53. +" is OFF.\n";
  54. void show_usage() {
  55. fprintf(stdout,usage);