diff options
author | Pavel Emelyanov <xemul@openvz.org> | 2008-03-22 19:56:51 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-03-22 19:56:51 -0400 |
commit | fc8717baa8f52dd8d1b90df9008300ef3ec794ed (patch) | |
tree | 149c5e1c8db5bcf2af47caeb732f900bc722875f /include | |
parent | 6ba5a3c52da00015e739469e3b00cd6d0d4c5c67 (diff) |
[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>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/raw.h | 4 | ||||
-rw-r--r-- | include/net/sock.h | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/include/net/raw.h b/include/net/raw.h index 1828f81fe374..6c14a656357a 100644 --- a/include/net/raw.h +++ b/include/net/raw.h | |||
@@ -53,7 +53,7 @@ int raw_seq_open(struct inode *ino, struct file *file, | |||
53 | 53 | ||
54 | #endif | 54 | #endif |
55 | 55 | ||
56 | void raw_hash_sk(struct sock *sk, struct raw_hashinfo *h); | 56 | void raw_hash_sk(struct sock *sk); |
57 | void raw_unhash_sk(struct sock *sk, struct raw_hashinfo *h); | 57 | void raw_unhash_sk(struct sock *sk); |
58 | 58 | ||
59 | #endif /* _RAW_H */ | 59 | #endif /* _RAW_H */ |
diff --git a/include/net/sock.h b/include/net/sock.h index c3175c400b79..b433b1ed203d 100644 --- a/include/net/sock.h +++ b/include/net/sock.h | |||
@@ -504,6 +504,7 @@ extern int sk_wait_data(struct sock *sk, long *timeo); | |||
504 | struct request_sock_ops; | 504 | struct request_sock_ops; |
505 | struct timewait_sock_ops; | 505 | struct timewait_sock_ops; |
506 | struct inet_hashinfo; | 506 | struct inet_hashinfo; |
507 | struct raw_hashinfo; | ||
507 | 508 | ||
508 | /* Networking protocol blocks we attach to sockets. | 509 | /* Networking protocol blocks we attach to sockets. |
509 | * socket layer -> transport layer interface | 510 | * socket layer -> transport layer interface |
@@ -589,6 +590,7 @@ struct proto { | |||
589 | union { | 590 | union { |
590 | struct inet_hashinfo *hashinfo; | 591 | struct inet_hashinfo *hashinfo; |
591 | struct hlist_head *udp_hash; | 592 | struct hlist_head *udp_hash; |
593 | struct raw_hashinfo *raw_hash; | ||
592 | } h; | 594 | } h; |
593 | 595 | ||
594 | struct module *owner; | 596 | struct module *owner; |