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.

77 lines
3.9 KiB

  1. # --- ROCK-COPYRIGHT-NOTE-BEGIN ---
  2. #
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. # Please add additional copyright information _after_ the line containing
  5. # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
  6. # the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
  7. #
  8. # ROCK Linux: rock-src/package/alessandro/vlan/multi-line-string-fix.patch
  9. # ROCK Linux is Copyright (C) 1998 - 2005 Clifford Wolf
  10. #
  11. # This patch file is dual-licensed. It is available under the license the
  12. # patched project is licensed under, as long as it is an OpenSource license
  13. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  14. # of the GNU General Public License as published by the Free Software
  15. # Foundation; either version 2 of the License, or (at your option) any later
  16. # version.
  17. #
  18. # --- ROCK-COPYRIGHT-NOTE-END ---
  19. --- vlan/vconfig.c.orig 2004-03-27 10:52:29.000000000 +0100
  20. +++ vlan/vconfig.c 2004-03-27 10:53:35.000000000 +0100
  21. @@ -37,31 +37,30 @@
  22. static char* usage =
  23. - "
  24. -Usage: add [interface-name] [vlan_id]
  25. - rem [vlan-name]
  26. - set_flag [interface-name] [flag-num] [0 | 1]
  27. - set_egress_map [vlan-name] [skb_priority] [vlan_qos]
  28. - set_ingress_map [vlan-name] [skb_priority] [vlan_qos]
  29. - set_name_type [name-type]
  30. -
  31. -* The [interface-name] is the name of the ethernet card that hosts
  32. - the VLAN you are talking about.
  33. -* The vlan_id is the identifier (0-4095) of the VLAN you are operating on.
  34. -* skb_priority is the priority in the socket buffer (sk_buff).
  35. -* vlan_qos is the 3 bit priority in the VLAN header
  36. -* name-type: VLAN_PLUS_VID (vlan0005), VLAN_PLUS_VID_NO_PAD (vlan5),
  37. - DEV_PLUS_VID (eth0.0005), DEV_PLUS_VID_NO_PAD (eth0.5)
  38. -* bind-type: PER_DEVICE # Allows vlan 5 on eth0 and eth1 to be unique.
  39. - PER_KERNEL # Forces vlan 5 to be unique across all devices.
  40. -* FLAGS: 1 REORDER_HDR When this is set, the VLAN device will move the
  41. - ethernet header around to make it look exactly like a real
  42. - ethernet device. This may help programs such as DHCPd which
  43. - read the raw ethernet packet and make assumptions about the
  44. - location of bytes. If you don't need it, don't turn it on, because
  45. - there will be at least a small performance degradation. Default
  46. - is OFF.
  47. -";
  48. +"\n"
  49. +"Usage: add [interface-name] [vlan_id]\n"
  50. +" rem [vlan-name]\n"
  51. +" set_flag [interface-name] [flag-num] [0 | 1]\n"
  52. +" set_egress_map [vlan-name] [skb_priority] [vlan_qos]\n"
  53. +" set_ingress_map [vlan-name] [skb_priority] [vlan_qos]\n"
  54. +" set_name_type [name-type]\n"
  55. +"\n"
  56. +"* The [interface-name] is the name of the ethernet card that hosts\n"
  57. +" the VLAN you are talking about.\n"
  58. +"* The vlan_id is the identifier (0-4095) of the VLAN you are operating on.\n"
  59. +"* skb_priority is the priority in the socket buffer (sk_buff).\n"
  60. +"* vlan_qos is the 3 bit priority in the VLAN header\n"
  61. +"* name-type: VLAN_PLUS_VID (vlan0005), VLAN_PLUS_VID_NO_PAD (vlan5),\n"
  62. +" DEV_PLUS_VID (eth0.0005), DEV_PLUS_VID_NO_PAD (eth0.5)\n"
  63. +"* bind-type: PER_DEVICE # Allows vlan 5 on eth0 and eth1 to be unique.\n"
  64. +" PER_KERNEL # Forces vlan 5 to be unique across all devices.\n"
  65. +"* FLAGS: 1 REORDER_HDR When this is set, the VLAN device will move the\n"
  66. +" ethernet header around to make it look exactly like a real\n"
  67. +" ethernet device. This may help programs such as DHCPd which\n"
  68. +" read the raw ethernet packet and make assumptions about the\n"
  69. +" location of bytes. If you don't need it, don't turn it on, because\n"
  70. +" there will be at least a small performance degradation. Default\n"
  71. +" is OFF.\n";
  72. void show_usage() {
  73. fprintf(stdout,usage);