[Snort-users] Real TOS patch

Martin Roesch roesch at ...421...
Sun Jan 7 01:54:24 EST 2001


That last one got a little screwed up in the cut and paste, use this one...

     -Marty

--- sp_ip_tos_check_old.c       Sun Jan  7 01:49:46 2001
+++ sp_ip_tos_check.c   Sun Jan  7 01:50:09 2001
@@ -134,7 +134,7 @@
         return 0; /* if error occured while ip header
                    * was processed, return 0 automagically.
                */
-    if(((IpTosData *)otn->ds_list[PLUGIN_IP_TOS_CHECK])->ip_tos ==
ntohs(p->iph->ip_tos))
+    if(((IpTosData *)otn->ds_list[PLUGIN_IP_TOS_CHECK])->ip_tos ==
p->iph->ip_tos)
     {
         /* call the next function in the function list recursively */
         return fp_list->next->OptTestFunc(p, otn, fp_list->next);

-- 
Martin Roesch
roesch at ...421...
http://www.snort.org




More information about the Snort-users mailing list