mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 15:27:29 +00:00
[RAW]: Add raw_hashinfo member on struct proto.
Sorry for the patch sequence confusion :| but I found that the similar thing can be done for raw sockets easily too late. Expand the proto.h union with the raw_hashinfo member and use it in raw_prot and rawv6_prot. This allows to drop the protocol specific versions of hash and unhash callbacks. Signed-off-by: Pavel Emelyanov <xemul@openvz.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
6ba5a3c52d
commit
fc8717baa8
4 changed files with 15 additions and 29 deletions
|
@ -53,7 +53,7 @@ int raw_seq_open(struct inode *ino, struct file *file,
|
|||
|
||||
#endif
|
||||
|
||||
void raw_hash_sk(struct sock *sk, struct raw_hashinfo *h);
|
||||
void raw_unhash_sk(struct sock *sk, struct raw_hashinfo *h);
|
||||
void raw_hash_sk(struct sock *sk);
|
||||
void raw_unhash_sk(struct sock *sk);
|
||||
|
||||
#endif /* _RAW_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue