Commit 646f6d4e authored by Hideaki Yoshifuji's avatar Hideaki Yoshifuji

[IPSEC]: Add SCTP to xfrm_flowi_{sport,dport}()

Signed-off-by: default avatarHIDEAKI Yoshifuji <yoshfuji@linux-ipv6.org>
Signed-off-by: default avatarDavid S. Miller <davem@redhat.com>
parent 6bdde52c
......@@ -428,6 +428,7 @@ u16 xfrm_flowi_sport(struct flowi *fl)
switch(fl->proto) {
case IPPROTO_TCP:
case IPPROTO_UDP:
case IPPROTO_SCTP:
port = fl->fl_ip_sport;
break;
case IPPROTO_ICMP:
......@@ -447,6 +448,7 @@ u16 xfrm_flowi_dport(struct flowi *fl)
switch(fl->proto) {
case IPPROTO_TCP:
case IPPROTO_UDP:
case IPPROTO_SCTP:
port = fl->fl_ip_dport;
break;
case IPPROTO_ICMP:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment