diff options
Diffstat (limited to 'include/net/sctp')
-rw-r--r-- | include/net/sctp/sctp.h | 4 | ||||
-rw-r--r-- | include/net/sctp/structs.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/include/net/sctp/sctp.h b/include/net/sctp/sctp.h index 7c0504034583..87b119f74c4a 100644 --- a/include/net/sctp/sctp.h +++ b/include/net/sctp/sctp.h | |||
@@ -638,9 +638,9 @@ static inline int sctp_phashfn(struct net *net, __u16 lport) | |||
638 | } | 638 | } |
639 | 639 | ||
640 | /* This is the hash function for the endpoint hash table. */ | 640 | /* This is the hash function for the endpoint hash table. */ |
641 | static inline int sctp_ep_hashfn(__u16 lport) | 641 | static inline int sctp_ep_hashfn(struct net *net, __u16 lport) |
642 | { | 642 | { |
643 | return lport & (sctp_ep_hashsize - 1); | 643 | return (net_hash_mix(net) + lport) & (sctp_ep_hashsize - 1); |
644 | } | 644 | } |
645 | 645 | ||
646 | /* This is the hash function for the association hash table. */ | 646 | /* This is the hash function for the association hash table. */ |
diff --git a/include/net/sctp/structs.h b/include/net/sctp/structs.h index c089bb12af77..9f9de558541f 100644 --- a/include/net/sctp/structs.h +++ b/include/net/sctp/structs.h | |||
@@ -1426,7 +1426,7 @@ struct sctp_association *sctp_endpoint_lookup_assoc( | |||
1426 | int sctp_endpoint_is_peeled_off(struct sctp_endpoint *, | 1426 | int sctp_endpoint_is_peeled_off(struct sctp_endpoint *, |
1427 | const union sctp_addr *); | 1427 | const union sctp_addr *); |
1428 | struct sctp_endpoint *sctp_endpoint_is_match(struct sctp_endpoint *, | 1428 | struct sctp_endpoint *sctp_endpoint_is_match(struct sctp_endpoint *, |
1429 | const union sctp_addr *); | 1429 | struct net *, const union sctp_addr *); |
1430 | int sctp_has_association(const union sctp_addr *laddr, | 1430 | int sctp_has_association(const union sctp_addr *laddr, |
1431 | const union sctp_addr *paddr); | 1431 | const union sctp_addr *paddr); |
1432 | 1432 | ||