aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/phonet/phonet.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/net/phonet/phonet.h')
-rw-r--r--include/net/phonet/phonet.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/include/net/phonet/phonet.h b/include/net/phonet/phonet.h
index 7b114079a51b..68e509750caa 100644
--- a/include/net/phonet/phonet.h
+++ b/include/net/phonet/phonet.h
@@ -36,6 +36,7 @@
36struct pn_sock { 36struct pn_sock {
37 struct sock sk; 37 struct sock sk;
38 u16 sobject; 38 u16 sobject;
39 u16 dobject;
39 u8 resource; 40 u8 resource;
40}; 41};
41 42
@@ -54,6 +55,11 @@ void pn_sock_hash(struct sock *sk);
54void pn_sock_unhash(struct sock *sk); 55void pn_sock_unhash(struct sock *sk);
55int pn_sock_get_port(struct sock *sk, unsigned short sport); 56int pn_sock_get_port(struct sock *sk, unsigned short sport);
56 57
58struct sock *pn_find_sock_by_res(struct net *net, u8 res);
59int pn_sock_bind_res(struct sock *sock, u8 res);
60int pn_sock_unbind_res(struct sock *sk, u8 res);
61void pn_sock_unbind_all_res(struct sock *sk);
62
57int pn_skb_send(struct sock *sk, struct sk_buff *skb, 63int pn_skb_send(struct sock *sk, struct sk_buff *skb,
58 const struct sockaddr_pn *target); 64 const struct sockaddr_pn *target);
59 65
@@ -102,8 +108,8 @@ struct phonet_protocol {
102 int sock_type; 108 int sock_type;
103}; 109};
104 110
105int phonet_proto_register(int protocol, struct phonet_protocol *pp); 111int phonet_proto_register(unsigned int protocol, struct phonet_protocol *pp);
106void phonet_proto_unregister(int protocol, struct phonet_protocol *pp); 112void phonet_proto_unregister(unsigned int protocol, struct phonet_protocol *pp);
107 113
108int phonet_sysctl_init(void); 114int phonet_sysctl_init(void);
109void phonet_sysctl_exit(void); 115void phonet_sysctl_exit(void);