[Oisf-devel] [PATCH 7/9] Add SCTP to packet validation

Eric Leblond eric at regit.org
Mon Feb 28 16:44:33 UTC 2011


Validation util was missing a test on sctph which can not be null
for SCTP packets.
---
 src/util-validate.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/util-validate.h b/src/util-validate.h
index c93cb8b..670f3ac 100644
--- a/src/util-validate.h
+++ b/src/util-validate.h
@@ -45,6 +45,8 @@
                 BUG_ON((p)->udph == NULL);              \
             } else if ((p)->proto == IPPROTO_ICMP) {    \
                 BUG_ON((p)->icmpv4h == NULL);           \
+            } else if ((p)->proto == IPPROTO_SCTP) {    \
+                BUG_ON((p)->sctph == NULL);           \
             } else if ((p)->proto == IPPROTO_ICMPV6) {  \
                 BUG_ON((p)->icmpv6h == NULL);           \
             }                                           \
-- 
1.7.1




More information about the Oisf-devel mailing list