diff options
author | Remi Denis-Courmont <remi.denis-courmont@nokia.com> | 2008-09-22 23:08:39 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-09-22 23:08:39 -0400 |
commit | 87ab4e20b445c6d2d2727ab4f96fa17f7259511e (patch) | |
tree | 42ee249e27e293b94f9f0c5a72dc6ef58fee5d38 /include/net/phonet | |
parent | 5f77076d75d35c9f5619e1f9d7e7428a627f65e6 (diff) |
Phonet: proc interface for port range
Phonet endpoints are bound to individual ports.
This provides a /proc/sys/net/phonet (or sysctl) interface for
selecting the range of automatically allocated ports (much like the
ip_local_port_range with IPv4).
Signed-off-by: Remi Denis-Courmont <remi.denis-courmont@nokia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/phonet')
-rw-r--r-- | include/net/phonet/phonet.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/net/phonet/phonet.h b/include/net/phonet/phonet.h index d3957d3be0fd..1c6f7e7d5fea 100644 --- a/include/net/phonet/phonet.h +++ b/include/net/phonet/phonet.h | |||
@@ -47,6 +47,7 @@ static inline struct pn_sock *pn_sk(struct sock *sk) | |||
47 | extern const struct proto_ops phonet_dgram_ops; | 47 | extern const struct proto_ops phonet_dgram_ops; |
48 | 48 | ||
49 | struct sock *pn_find_sock_by_sa(const struct sockaddr_pn *sa); | 49 | struct sock *pn_find_sock_by_sa(const struct sockaddr_pn *sa); |
50 | void phonet_get_local_port_range(int *min, int *max); | ||
50 | void pn_sock_hash(struct sock *sk); | 51 | void pn_sock_hash(struct sock *sk); |
51 | void pn_sock_unhash(struct sock *sk); | 52 | void pn_sock_unhash(struct sock *sk); |
52 | int pn_sock_get_port(struct sock *sk, unsigned short sport); | 53 | int pn_sock_get_port(struct sock *sk, unsigned short sport); |
@@ -97,6 +98,8 @@ struct phonet_protocol { | |||
97 | int phonet_proto_register(int protocol, struct phonet_protocol *pp); | 98 | int phonet_proto_register(int protocol, struct phonet_protocol *pp); |
98 | void phonet_proto_unregister(int protocol, struct phonet_protocol *pp); | 99 | void phonet_proto_unregister(int protocol, struct phonet_protocol *pp); |
99 | 100 | ||
101 | int phonet_sysctl_init(void); | ||
102 | void phonet_sysctl_exit(void); | ||
100 | void phonet_netlink_register(void); | 103 | void phonet_netlink_register(void); |
101 | int isi_register(void); | 104 | int isi_register(void); |
102 | void isi_unregister(void); | 105 | void isi_unregister(void); |