]> rtime.felk.cvut.cz Git - lisovros/iproute2_canprio.git/blobdiff - tc/em_cmp.c
Add reference to tc-codel(8) to the SEE ALSO section
[lisovros/iproute2_canprio.git] / tc / em_cmp.c
index b8f9b467bc9f8ca5f09dce223f6d1d7de1d8110a..3e6d00e5d65eb77096cfac04c538b115c06589bb 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * em_cmp.c            Simle coparison Ematch
+ * em_cmp.c            Simple comparison Ematch
  *
  *             This program is free software; you can distribute it and/or
  *             modify it under the terms of the GNU General Public License
@@ -18,7 +18,6 @@
 #include <netinet/in.h>
 #include <arpa/inet.h>
 #include <string.h>
-#include <dlfcn.h>
 #include <errno.h>
 
 #include "m_ematch.h"
@@ -32,7 +31,7 @@ static void cmp_print_usage(FILE *fd)
            "Usage: cmp(ALIGN at OFFSET [ ATTRS ] { eq | lt | gt } VALUE)\n" \
            "where: ALIGN  := { u8 | u16 | u32 }\n" \
            "       ATTRS  := [ layer LAYER ] [ mask MASK ] [ trans ]\n" \
-           "       LAYER  := { link | header | next-header | 0..%d }\n" \
+           "       LAYER  := { link | network | transport | 0..%d }\n" \
            "\n" \
            "Example: cmp(u16 at 3 layer 2 mask 0xff00 gt 20)\n",
            TCF_LAYER_MAX);
@@ -156,7 +155,7 @@ static int cmp_print_eopt(FILE *fd, struct tcf_ematch_hdr *hdr, void *data,
                fprintf(fd, "u8 ");
        else if (cmp->align == TCF_EM_ALIGN_U16)
                fprintf(fd, "u16 ");
-       else if (cmp->align == TCF_EM_ALIGN_U16)
+       else if (cmp->align == TCF_EM_ALIGN_U32)
                fprintf(fd, "u32 ");
 
        fprintf(fd, "at %d layer %d ", cmp->off, cmp->layer);