Fill up src_port and dst_port variables for SCTP over IPv4.

PR:		kern/153415
MFC after:	1 week
This commit is contained in:
ae 2011-03-31 16:30:14 +00:00
parent f19e4d3eda
commit fb3f0c3e38

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;