aboutsummaryrefslogtreecommitdiffstats
path: root/net/phonet/af_phonet.c
diff options
context:
space:
mode:
authorRemi Denis-Courmont <remi.denis-courmont@nokia.com>2008-09-22 23:08:39 -0400
committerDavid S. Miller <davem@davemloft.net>2008-09-22 23:08:39 -0400
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 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)
350 phonet_device_init(); 350 phonet_device_init();
351 dev_add_pack(&phonet_packet_type); 351 dev_add_pack(&phonet_packet_type);
352 phonet_netlink_register(); 352 phonet_netlink_register();
353 phonet_sysctl_init();
353 354
354 err = isi_register(); 355 err = isi_register();
355 if (err) 356 if (err)
@@ -357,6 +358,7 @@ static int __init phonet_init(void)
357 return 0; 358 return 0;
358 359
359err: 360err:
361 phonet_sysctl_exit();
360 sock_unregister(AF_PHONET); 362 sock_unregister(AF_PHONET);
361 dev_remove_pack(&phonet_packet_type); 363 dev_remove_pack(&phonet_packet_type);
362 phonet_device_exit(); 364 phonet_device_exit();
@@ -366,6 +368,7 @@ err:
366static void __exit phonet_exit(void) 368static void __exit phonet_exit(void)
367{ 369{
368 isi_unregister(); 370 isi_unregister();
371 phonet_sysctl_exit();
369 sock_unregister(AF_PHONET); 372 sock_unregister(AF_PHONET);
370 dev_remove_pack(&phonet_packet_type); 373 dev_remove_pack(&phonet_packet_type);
371 phonet_device_exit(); 374 phonet_device_exit();