diff options
author | Remi Denis-Courmont <remi.denis-courmont@nokia.com> | 2008-09-22 20:08:39 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-09-22 20:08:39 -0700 |
commit | 87ab4e20b445c6d2d2727ab4f96fa17f7259511e (patch) | |
tree | 42ee249e27e293b94f9f0c5a72dc6ef58fee5d38 /net/phonet/af_phonet.c | |
parent | 5f77076d75d35c9f5619e1f9d7e7428a627f65e6 (diff) | |
download | linux-stable-87ab4e20b445c6d2d2727ab4f96fa17f7259511e.tar.gz linux-stable-87ab4e20b445c6d2d2727ab4f96fa17f7259511e.tar.bz2 linux-stable-87ab4e20b445c6d2d2727ab4f96fa17f7259511e.zip |
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 'net/phonet/af_phonet.c')
-rw-r--r-- | net/phonet/af_phonet.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/phonet/af_phonet.c b/net/phonet/af_phonet.c index 51397ff308bd..50dc258d5aa2 100644 --- a/net/phonet/af_phonet.c +++ b/net/phonet/af_phonet.c @@ -350,6 +350,7 @@ static int __init phonet_init(void) phonet_device_init(); dev_add_pack(&phonet_packet_type); phonet_netlink_register(); + phonet_sysctl_init(); err = isi_register(); if (err) @@ -357,6 +358,7 @@ static int __init phonet_init(void) return 0; err: + phonet_sysctl_exit(); sock_unregister(AF_PHONET); dev_remove_pack(&phonet_packet_type); phonet_device_exit(); @@ -366,6 +368,7 @@ err: static void __exit phonet_exit(void) { isi_unregister(); + phonet_sysctl_exit(); sock_unregister(AF_PHONET); dev_remove_pack(&phonet_packet_type); phonet_device_exit(); |