- Visual C++源码
- Visual Basic源码
- C++ Builder源码
- Java源码
- Delphi源码
- C/C++源码
- PHP源码
- Perl源码
- Python源码
- Asm源码
- Pascal源码
- Borland C++源码
- Others源码
- SQL源码
- VBScript源码
- JavaScript源码
- ASP/ASPX源码
- C#源码
- Flash/ActionScript源码
- matlab源码
- PowerBuilder源码
- LabView源码
- Flex源码
- MathCAD源码
- VBA源码
- IDL源码
- Lisp/Scheme源码
- VHDL源码
- Objective-C源码
- Fortran源码
- tcl/tk源码
- QT源码
sysctl_net_ipx.c
上传用户:jlfgdled
上传日期:2013-04-10
资源大小:33168k
文件大小:1k
源码类别:
Linux/Unix编程
开发平台:
Unix_Linux
- /* -*- linux-c -*-
- * sysctl_net_ipx.c: sysctl interface to net IPX subsystem.
- *
- * Begun April 1, 1996, Mike Shaver.
- * Added /proc/sys/net/ipx directory entry (empty =) ). [MS]
- * Added /proc/sys/net/ipx/ipx_pprop_broadcasting - acme March 4, 2001
- */
- #include <linux/config.h>
- #include <linux/mm.h>
- #include <linux/sysctl.h>
- #ifndef CONFIG_SYSCTL
- #error This file should not be compiled without CONFIG_SYSCTL defined
- #endif
- /* From af_ipx.c */
- extern int sysctl_ipx_pprop_broadcasting;
- ctl_table ipx_table[] = {
- { NET_IPX_PPROP_BROADCASTING, "ipx_pprop_broadcasting",
- &sysctl_ipx_pprop_broadcasting, sizeof(int), 0644, NULL,
- &proc_dointvec },
- { 0 }
- };
- static ctl_table ipx_dir_table[] = {
- { NET_IPX, "ipx", NULL, 0, 0555, ipx_table },
- { 0 }
- };
- static ctl_table ipx_root_table[] = {
- { CTL_NET, "net", NULL, 0, 0555, ipx_dir_table },
- { 0 }
- };
- static struct ctl_table_header *ipx_table_header;
- void ipx_register_sysctl(void)
- {
- ipx_table_header = register_sysctl_table(ipx_root_table, 1);
- }
- void ipx_unregister_sysctl(void)
- {
- unregister_sysctl_table(ipx_table_header);
- }