Phonet: put sockets in a hash table
Subsystems (3)
PATCH 1/1 Phonet: put sockets in a hash table
From: Rémi Denis-Courmont <[email protected]>
Signed-off-by Rémi Denis-Courmont <[email protected]>
--- include/net/phonet/phonet.h | 1 + net/phonet/af_phonet.c | 1 + net/phonet/socket.c | 79 +++++++++++++++++++++++++++++------------- 3 files changed, 56 insertions(+), 25 deletions(-)
include/net/phonet/phonet.h +1 -0
@@ -46,6 +46,7 @@ static inline struct pn_sock *pn_sk(struct sock *sk)extern const struct proto_ops phonet_dgram_ops; +void pn_sock_init (void );struct sock *pn_find_sock_by_sa (struct net *net,const struct sockaddr_pn *sa);void pn_deliver_sock_broadcast (struct net *net,struct sk_buff *skb);void phonet_get_local_port_range (int *min,int *max);
net/phonet/af_phonet.c +1 -0
@@ -481,6 +481,7 @@ static int __init phonet_init(void)if (err)return err; +pn_sock_init (); err =sock_register (&phonet_proto_family);if (err) { printk(KERN_ALERT
net/phonet/socket.c +54 -25
123 lines not on this page · raw message
Signature · 1 line
1.6.3.3
From: Rémi Denis-Courmont <[email protected]>
Date: Mon, 9 Nov 2009 14:17:01 +0200
Quoted 3 lines
From: Rémi Denis-Courmont <[email protected]>
Signed-off-by Rémi Denis-Courmont <[email protected]>
Applied to net-next-2.6