123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131 |
- flag = {
- name = enet-dmac;
- arg-type = string;
- max = 1;
- descrip = "Override destination ethernet MAC addresses";
- doc = <<- EOText
- Takes a pair of comma deliminated ethernet MAC addresses which
- will replace the destination MAC address of outbound packets.
- The first MAC address will be used for the server to client traffic
- and the optional second MAC address will be used for the client
- to server traffic.
- Example:
- @example
- --enet-dmac=00:12:13:14:15:16,00:22:33:44:55:66
- @end example
- EOText;
- };
- flag = {
- name = enet-smac;
- arg-type = string;
- max = 1;
- descrip = "Override source ethernet MAC addresses";
- doc = <<- EOText
- Takes a pair of comma deliminated ethernet MAC addresses which
- will replace the source MAC address of outbound packets.
- The first MAC address will be used for the server to client traffic
- and the optional second MAC address will be used for the client
- to server traffic.
- Example:
- @example
- --enet-smac=00:12:13:14:15:16,00:22:33:44:55:66
- @end example
- EOText;
- };
- flag = {
- name = enet-subsmac;
- arg-type = string;
- max = 9999;
- stack-arg;
- descrip = "Substitute MAC addresses";
- doc = <<- EOText
- Allows you to rewrite ethernet MAC addresses of packets. It takes
- comma delimited pair or MACs address and rewrites all occurrences of
- the first MAC with the value of the second MAC.
- Example:
- @example
- --enet-subsmac=00:12:13:14:15:16,00:22:33:44:55:66
- @end example
- EOText;
- };
- flag = {
- name = enet-mac-seed;
- arg-type = number;
- max = 1;
- flags-cant = enet-smac;
- flags-cant = enet-dmac;
- flags-cant = enet-subsmac;
- descrip = "Randomize MAC addresses";
- doc = <<- EOText
- Allows you to randomize ethernet MAC addresses of packets, mostly
- like what @var{--seed} option does for IPv4/IPv6 addresses.
- EOText;
- };
- flag = {
- name = enet-mac-seed-keep-bytes;
- arg-type = number;
- arg-range = "1->6";
- flags-must = enet-mac-seed;
- max = 1;
- descrip = "Randomize MAC addresses";
- doc = <<- EOText
- Keep some bytes untouched when usinging @var{--enet-mac-seed} option.
- EOText;
- };
- /* rewrite 802.1q vlan tags */
- flag = {
- name = enet-vlan;
- max = 1;
- descrip = "Specify ethernet 802.1q VLAN tag mode";
- arg-type = string;
- doc = <<- EOText
- Allows you to rewrite ethernet frames to add a 802.1q header to standard 802.3
- ethernet headers or remove the 802.1q VLAN tag information.
- @table @bullet
- @item
- @var{add}
- Rewrites the existing 802.3 ethernet header as an 802.1q VLAN header
- @item
- @var{del}
- Rewrites the existing 802.1q VLAN header as an 802.3 ethernet header
- EOText;
- };
- flag = {
- name = enet-vlan-tag;
- max = 1;
- descrip = "Specify the new ethernet 802.1q VLAN tag value";
- arg-type = number;
- flags-must = enet-vlan;
- arg-range = "0->4095"; /* VID's are 12bit unsigned int's */
- doc = "";
- };
- flag = {
- name = enet-vlan-cfi;
- max = 1;
- descrip = "Specify the ethernet 802.1q VLAN CFI value";
- arg-type = number;
- flags-must = enet-vlan;
- arg-range = "0->1"; /* one bit */
- doc = "";
- };
- flag = {
- name = enet-vlan-pri;
- max = 1;
- descrip = "Specify the ethernet 802.1q VLAN priority";
- flags-must = enet-vlan;
- arg-type = number;
- arg-range = "0->7"; /* one byte */
- doc = "";
- };
|