Skip to contentSkip to conversation

Phonet: put sockets in a hash table

PATCH Applied Rémi Denis-Courmont 2 participants 2 messages Nov 9, 2009 – Nov 11, 2009

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Phonet: put sockets in a hash table

From: 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
index fdb05fa..7b11407 100644
@@ -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
index 3bd1be6..8d3a55b 100644
@@ -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