20 #include <linux/types.h>
23 #include <linux/module.h>
24 #include <linux/sysctl.h>
25 #include <linux/stddef.h>
28 #include <linux/ctype.h>
29 #include <linux/string.h>
30 #include <linux/net.h>
43 void *
buffer,
size_t *lenp, loff_t *ppos)
58 void *
buffer,
size_t *lenp, loff_t *ppos)
76 void *
buffer,
size_t *lenp, loff_t *ppos)
100 int proc_lasat_ip(
ctl_table *table,
int write,
101 void *buffer,
size_t *lenp, loff_t *ppos)
108 if (!table->
data || !table->
maxlen || !*lenp ||
117 while (len < *lenp) {
120 if (c == 0 || c ==
'\n')
124 if (len >=
sizeof(ipbuf)-1)
125 len =
sizeof(ipbuf) - 1;
132 *(
unsigned int *)(table->
data) =
ip;
135 ip = *(
unsigned int *)(table->
data);
148 if (
put_user(
'\n', ((
char *) buffer) + len))
161 void *buffer,
size_t *lenp, loff_t *ppos)
183 .maxlen =
sizeof(
int),
188 .procname =
"bus-hz",
190 .maxlen =
sizeof(
int),
197 .maxlen =
sizeof(
int),
204 .maxlen =
sizeof(
int),
210 .procname =
"ipaddr",
212 .maxlen =
sizeof(
int),
217 .procname =
"netmask",
219 .maxlen =
sizeof(
int),
225 .procname =
"passwd_hash",
233 .procname =
"boot-service",
235 .maxlen =
sizeof(
int),
243 .maxlen =
sizeof(
int),
249 .procname =
"namestr",
256 .procname =
"typestr",
274 static int __init lasat_register_sysctl(
void)
280 if (!lasat_table_header) {