Fill up src_port and dst_port variables for SCTP over IPv4.

PR:		kern/153415
MFC after:	1 week
This commit is contained in:
Andrey V. Elsukov 2011-03-31 16:30:14 +00:00
parent 14e2cd0a00
commit a5620cc6c5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=220211

View File

@ -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;