Lines Matching refs:net

319 	struct net *net = current->nsproxy->net_ns;  in proc_sctp_do_hmac_alg()  local
332 tbl.data = net->sctp.sctp_hmac_alg ? : none; in proc_sctp_do_hmac_alg()
340 net->sctp.sctp_hmac_alg = "md5"; in proc_sctp_do_hmac_alg()
346 net->sctp.sctp_hmac_alg = "sha1"; in proc_sctp_do_hmac_alg()
351 net->sctp.sctp_hmac_alg = NULL; in proc_sctp_do_hmac_alg()
365 struct net *net = current->nsproxy->net_ns; in proc_sctp_do_rto_min() local
377 tbl.data = &net->sctp.rto_min; in proc_sctp_do_rto_min()
384 net->sctp.rto_min = new_value; in proc_sctp_do_rto_min()
394 struct net *net = current->nsproxy->net_ns; in proc_sctp_do_rto_max() local
406 tbl.data = &net->sctp.rto_max; in proc_sctp_do_rto_max()
413 net->sctp.rto_max = new_value; in proc_sctp_do_rto_max()
434 struct net *net = current->nsproxy->net_ns; in proc_sctp_do_auth() local
444 tbl.data = &net->sctp.auth_enable; in proc_sctp_do_auth()
448 struct sock *sk = net->sctp.ctl_sock; in proc_sctp_do_auth()
450 net->sctp.auth_enable = new_value; in proc_sctp_do_auth()
460 int sctp_sysctl_net_register(struct net *net) in sctp_sysctl_net_register() argument
470 table[i].data += (char *)(&net->sctp) - (char *)&init_net.sctp; in sctp_sysctl_net_register()
472 net->sctp.sysctl_header = register_net_sysctl(net, "net/sctp", table); in sctp_sysctl_net_register()
473 if (net->sctp.sysctl_header == NULL) { in sctp_sysctl_net_register()
480 void sctp_sysctl_net_unregister(struct net *net) in sctp_sysctl_net_unregister() argument
484 table = net->sctp.sysctl_header->ctl_table_arg; in sctp_sysctl_net_unregister()
485 unregister_net_sysctl_table(net->sctp.sysctl_header); in sctp_sysctl_net_unregister()