Added the code for xid matching. (The code is not yet enabled)
[ipfw.git] / dummynet / ip_fw_pfil.c
index 9d65e7f..bc1f011 100644 (file)
@@ -122,7 +122,7 @@ again:
        args.m = *m0;
        args.inp = inp;
        ipfw = ipfw_chk(&args);
-       *m0 = args.m;
+       *m0 = args.m;   /* args.m can be modified by ipfw_chk */
        tee = 0;
 
        KASSERT(*m0 != NULL || ipfw == IP_FW_DENY, ("%s: m0 is NULL",
@@ -151,6 +151,7 @@ again:
                goto drop;
                break;                  /* not reached */
 
+       /* here packets come after the ipfw classification */
        case IP_FW_DUMMYNET:
                if (ip_dn_io_ptr == NULL)
                        goto drop;
@@ -248,7 +249,7 @@ again:
        args.oif = ifp;
        args.inp = inp;
        ipfw = ipfw_chk(&args);
-       *m0 = args.m;
+       *m0 = args.m;   /* args.m can be modified by ipfw_chk */
        tee = 0;
 
        KASSERT(*m0 != NULL || ipfw == IP_FW_DENY, ("%s: m0 is NULL",