Author: np
Date: Thu Apr 11 16:50:58 2013
New Revision: 249368
URL: http://svnweb.freebsd.org/changeset/base/249368

Log:
  Set and display the IP fragment bit correctly when dealing with
  the filter mode.
  
  MFC after:    3 days.

Modified:
  head/tools/tools/cxgbetool/cxgbetool.c

Modified: head/tools/tools/cxgbetool/cxgbetool.c
==============================================================================
--- head/tools/tools/cxgbetool/cxgbetool.c      Thu Apr 11 16:24:36 2013        
(r249367)
+++ head/tools/tools/cxgbetool/cxgbetool.c      Thu Apr 11 16:50:58 2013        
(r249368)
@@ -867,6 +867,9 @@ get_filter_mode(void)
        if (mode & T4_FILTER_IP_DPORT)
                printf("dport ");
 
+       if (mode & T4_FILTER_IP_FRAGMENT)
+               printf("frag ");
+
        if (mode & T4_FILTER_MPS_HIT_TYPE)
                printf("matchtype ");
 
@@ -886,7 +889,7 @@ get_filter_mode(void)
                printf("vlan ");
 
        if (mode & T4_FILTER_VNIC)
-               printf("vnic ");
+               printf("vnic/ovlan ");
 
        if (mode & T4_FILTER_PORT)
                printf("iport ");
@@ -905,6 +908,9 @@ set_filter_mode(int argc, const char *ar
        uint32_t mode = 0;
 
        for (; argc; argc--, argv++) {
+               if (!strcmp(argv[0], "frag"))
+                       mode |= T4_FILTER_IP_FRAGMENT;
+
                if (!strcmp(argv[0], "matchtype"))
                        mode |= T4_FILTER_MPS_HIT_TYPE;
 
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to