svn commit: r220415 - stable/8/sys/netinet/ipfw

Andrey V. Elsukov ae at FreeBSD.org
Thu Apr 7 11:13:51 UTC 2011


Author: ae
Date: Thu Apr  7 11:13:50 2011
New Revision: 220415
URL: http://svn.freebsd.org/changeset/base/220415

Log:
  MFC r220211:
    Fill up src_port and dst_port variables for SCTP over IPv4.
  
    PR:		kern/153415

Modified:
  stable/8/sys/netinet/ipfw/ip_fw2.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)

Modified: stable/8/sys/netinet/ipfw/ip_fw2.c
==============================================================================
--- stable/8/sys/netinet/ipfw/ip_fw2.c	Thu Apr  7 08:32:53 2011	(r220414)
+++ stable/8/sys/netinet/ipfw/ip_fw2.c	Thu Apr  7 11:13:50 2011	(r220415)
@@ -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;


More information about the svn-src-all mailing list