aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey V. Elsukov <ae@FreeBSD.org>2011-03-31 16:30:14 +0000
committerAndrey V. Elsukov <ae@FreeBSD.org>2011-03-31 16:30:14 +0000
commita5620cc6c540632b82d6c863fca830dc4ddb6928 (patch)
tree9bde033543d0e3e59ebc54df1aacba1aaa89efa6
parent14e2cd0a00150ada84a88344e34e5eccbba7014e (diff)
Notes
-rw-r--r--sys/netinet/ipfw/ip_fw2.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/netinet/ipfw/ip_fw2.c b/sys/netinet/ipfw/ip_fw2.c
index 43b2d1114295..c4adff507581 100644
--- a/sys/netinet/ipfw/ip_fw2.c
+++ b/sys/netinet/ipfw/ip_fw2.c
@@ -1123,6 +1123,12 @@ do { \
args->f_id._flags = TCP(ulp)->th_flags;
break;
+ case IPPROTO_SCTP:
+ PULLUP_TO(hlen, ulp, struct sctphdr);
+ src_port = SCTP(ulp)->src_port;
+ dst_port = SCTP(ulp)->dest_port;
+ break;
+
case IPPROTO_UDP:
PULLUP_TO(hlen, ulp, struct udphdr);
dst_port = UDP(ulp)->uh_dport;