aboutsummaryrefslogtreecommitdiff
path: root/net/phonet/af_phonet.c
diff options
context:
space:
mode:
authorRemi Denis-Courmont <remi.denis-courmont@nokia.com>2008-09-22 20:08:39 -0700
committerDavid S. Miller <davem@davemloft.net>2008-09-22 20:08:39 -0700
commit87ab4e20b445c6d2d2727ab4f96fa17f7259511e (patch)
tree42ee249e27e293b94f9f0c5a72dc6ef58fee5d38 /net/phonet/af_phonet.c
parent5f77076d75d35c9f5619e1f9d7e7428a627f65e6 (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 'net/phonet/af_phonet.c')
-rw-r--r--net/phonet/af_phonet.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/phonet/af_phonet.c b/net/phonet/af_phonet.c
index 51397ff308b..50dc258d5aa 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();