summaryrefslogtreecommitdiff
path: root/staging/mz.h
diff options
context:
space:
mode:
authorPetr Machata <petrm@mellanox.com>2019-10-01 16:40:11 +0000
committerTobias Klauser <tklauser@distanz.ch>2019-10-04 10:23:46 +0200
commit5f67447541f2382dfbae354d38a21b0e1482028d (patch)
treeab5599c5380b78d098ba22183c8e3bd2c048120a /staging/mz.h
parent0bdd9e1b61534f099ba2a13f8143632a47bf8c27 (diff)
mausezahn: Support -R to set packet priority
Add a command line option -R to specify SO_PRIORITY socket option. This then sets priority of the generated SKBs, which is handy for testing Qdiscs and other priority-dependent functionality. Signed-off-by: Petr Machata <petrm@mellanox.com> Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'staging/mz.h')
-rw-r--r--staging/mz.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/staging/mz.h b/staging/mz.h
index 6d98ad0..5afe57d 100644
--- a/staging/mz.h
+++ b/staging/mz.h
@@ -340,6 +340,7 @@ struct tx_struct
int packet_mode; // 0 means use LIBNET_LINK_ADV, 1 means LIBNET_RAW4
unsigned int count; // 0 means infinite, 1 is default
unsigned int delay; // Delay in microseconds, 0 means no delay (default)
+ unsigned int prio; // Socket priority, 0 is default
char arg_string[MAX_PAYLOAD_SIZE]; // Argument-string when -t is used
// Ethernet and 802.3 parameters