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>
This commit is contained in:
committed by
David S. Miller
parent
5f77076d75
commit
87ab4e20b4
@ -47,6 +47,7 @@ static inline struct pn_sock *pn_sk(struct sock *sk)
|
||||
extern const struct proto_ops phonet_dgram_ops;
|
||||
|
||||
struct sock *pn_find_sock_by_sa(const struct sockaddr_pn *sa);
|
||||
void phonet_get_local_port_range(int *min, int *max);
|
||||
void pn_sock_hash(struct sock *sk);
|
||||
void pn_sock_unhash(struct sock *sk);
|
||||
int pn_sock_get_port(struct sock *sk, unsigned short sport);
|
||||
@ -97,6 +98,8 @@ struct phonet_protocol {
|
||||
int phonet_proto_register(int protocol, struct phonet_protocol *pp);
|
||||
void phonet_proto_unregister(int protocol, struct phonet_protocol *pp);
|
||||
|
||||
int phonet_sysctl_init(void);
|
||||
void phonet_sysctl_exit(void);
|
||||
void phonet_netlink_register(void);
|
||||
int isi_register(void);
|
||||
void isi_unregister(void);
|
||||
|
Reference in New Issue
Block a user