diff options
Diffstat (limited to 'include/net/phonet/phonet.h')
-rw-r--r-- | include/net/phonet/phonet.h | 10 |
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 @@ | |||
36 | struct pn_sock { | 36 | struct 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); | |||
54 | void pn_sock_unhash(struct sock *sk); | 55 | void pn_sock_unhash(struct sock *sk); |
55 | int pn_sock_get_port(struct sock *sk, unsigned short sport); | 56 | int pn_sock_get_port(struct sock *sk, unsigned short sport); |
56 | 57 | ||
58 | struct sock *pn_find_sock_by_res(struct net *net, u8 res); | ||
59 | int pn_sock_bind_res(struct sock *sock, u8 res); | ||
60 | int pn_sock_unbind_res(struct sock *sk, u8 res); | ||
61 | void pn_sock_unbind_all_res(struct sock *sk); | ||
62 | |||
57 | int pn_skb_send(struct sock *sk, struct sk_buff *skb, | 63 | int 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 | ||
105 | int phonet_proto_register(int protocol, struct phonet_protocol *pp); | 111 | int phonet_proto_register(unsigned int protocol, struct phonet_protocol *pp); |
106 | void phonet_proto_unregister(int protocol, struct phonet_protocol *pp); | 112 | void phonet_proto_unregister(unsigned int protocol, struct phonet_protocol *pp); |
107 | 113 | ||
108 | int phonet_sysctl_init(void); | 114 | int phonet_sysctl_init(void); |
109 | void phonet_sysctl_exit(void); | 115 | void phonet_sysctl_exit(void); |