summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorae <ae@FreeBSD.org>2011-03-31 16:30:14 +0000
committerae <ae@FreeBSD.org>2011-03-31 16:30:14 +0000
commitfb3f0c3e38fd3b49bdd67c2c6440bd741f875fbe (patch)
tree9bde033543d0e3e59ebc54df1aacba1aaa89efa6
parentf19e4d3eda530abfc8bd12478bf6c2d358bb8e63 (diff)
downloadFreeBSD-src-fb3f0c3e38fd3b49bdd67c2c6440bd741f875fbe.zip
FreeBSD-src-fb3f0c3e38fd3b49bdd67c2c6440bd741f875fbe.tar.gz
Fill up src_port and dst_port variables for SCTP over IPv4.
PR: kern/153415 MFC after: 1 week
-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 43b2d11..c4adff5 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;
OpenPOWER on IntegriCloud