diff options
| author | Xin Long <[email protected]> | 2022-11-16 20:01:19 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2022-11-18 11:42:54 +0000 |
| commit | 33e93ed2209d5971043bed41dd194bc583b57ef3 (patch) | |
| tree | bb7b342faa29a94845cb6e3c6dc5d3398175e66e /net/sctp/protocol.c | |
| parent | sctp: check sk_bound_dev_if when matching ep in get_port (diff) | |
| download | kernel-33e93ed2209d5971043bed41dd194bc583b57ef3.tar.gz kernel-33e93ed2209d5971043bed41dd194bc583b57ef3.zip | |
sctp: add skb_sdif in struct sctp_af
Add skb_sdif function in struct sctp_af to get the enslaved device
for both ipv4 and ipv6 when adding SCTP VRF support in sctp_rcv in
the next patch.
Signed-off-by: Xin Long <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/sctp/protocol.c')
| -rw-r--r-- | net/sctp/protocol.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/net/sctp/protocol.c b/net/sctp/protocol.c index dbfe7d1000c2..a18cf0471a8d 100644 --- a/net/sctp/protocol.c +++ b/net/sctp/protocol.c @@ -567,6 +567,11 @@ static int sctp_v4_skb_iif(const struct sk_buff *skb) return inet_iif(skb); } +static int sctp_v4_skb_sdif(const struct sk_buff *skb) +{ + return inet_sdif(skb); +} + /* Was this packet marked by Explicit Congestion Notification? */ static int sctp_v4_is_ce(const struct sk_buff *skb) { @@ -1185,6 +1190,7 @@ static struct sctp_af sctp_af_inet = { .available = sctp_v4_available, .scope = sctp_v4_scope, .skb_iif = sctp_v4_skb_iif, + .skb_sdif = sctp_v4_skb_sdif, .is_ce = sctp_v4_is_ce, .seq_dump_addr = sctp_v4_seq_dump_addr, .ecn_capable = sctp_v4_ecn_capable, |
