If we don't have any of the pcap_datalink_XXX_to_YYY routines,
[obnox/wireshark/wip.git] / randpkt.c
index 84bbd2dee1362889d4962ded3064206063b51e87..6a275c22db19f92e27dcfb8709adef72ae3a38a3 100644 (file)
--- a/randpkt.c
+++ b/randpkt.c
@@ -455,7 +455,7 @@ main(int argc, char **argv)
        int                     produce_max_bytes = 5000;
        pkt_example             *example;
 
-       while ((opt = getopt(argc, argv, "b:c:t:")) != -1) {
+       while ((opt = getopt(argc, argv, "b:c:ht:")) != -1) {
                switch (opt) {
                        case 'b':       /* max bytes */
                                produce_max_bytes = atoi(optarg);
@@ -474,6 +474,7 @@ main(int argc, char **argv)
                                produce_type = parse_type(optarg);
                                break;
 
+                       case 'h':
                        default:
                                usage();
                                break;