Lines Matching refs:sctp
114 af->copy_addrlist(&net->sctp.local_addr_list, dev); in sctp_get_local_addr_list()
126 list_for_each_safe(pos, temp, &net->sctp.local_addr_list) { in sctp_free_local_addr_list()
142 list_for_each_entry_rcu(addr, &net->sctp.local_addr_list, list) { in sctp_copy_local_addr_list()
634 struct net *net = from_timer(net, t, sctp.addr_wq_timer); in sctp_addr_wq_timeout_handler()
638 spin_lock_bh(&net->sctp.addr_wq_lock); in sctp_addr_wq_timeout_handler()
640 list_for_each_entry_safe(addrw, temp, &net->sctp.addr_waitq, list) { in sctp_addr_wq_timeout_handler()
642 "entry:%p\n", __func__, &net->sctp.addr_waitq, &addrw->a.sa, in sctp_addr_wq_timeout_handler()
666 mod_timer(&net->sctp.addr_wq_timer, timeo_val); in sctp_addr_wq_timeout_handler()
671 list_for_each_entry(sp, &net->sctp.auto_asconf_splist, auto_asconf_list) { in sctp_addr_wq_timeout_handler()
689 spin_unlock_bh(&net->sctp.addr_wq_lock); in sctp_addr_wq_timeout_handler()
697 spin_lock_bh(&net->sctp.addr_wq_lock); in sctp_free_addr_wq()
698 timer_delete(&net->sctp.addr_wq_timer); in sctp_free_addr_wq()
699 list_for_each_entry_safe(addrw, temp, &net->sctp.addr_waitq, list) { in sctp_free_addr_wq()
703 spin_unlock_bh(&net->sctp.addr_wq_lock); in sctp_free_addr_wq()
714 list_for_each_entry(addrw, &net->sctp.addr_waitq, list) { in sctp_addr_wq_lookup()
741 spin_lock_bh(&net->sctp.addr_wq_lock); in sctp_addr_wq_mgmt()
750 if (list_empty(&net->sctp.auto_asconf_splist) && in sctp_addr_wq_mgmt()
751 list_empty(&net->sctp.addr_waitq)) { in sctp_addr_wq_mgmt()
752 spin_unlock_bh(&net->sctp.addr_wq_lock); in sctp_addr_wq_mgmt()
762 &net->sctp.addr_waitq); in sctp_addr_wq_mgmt()
767 spin_unlock_bh(&net->sctp.addr_wq_lock); in sctp_addr_wq_mgmt()
774 spin_unlock_bh(&net->sctp.addr_wq_lock); in sctp_addr_wq_mgmt()
778 list_add_tail(&addrw->list, &net->sctp.addr_waitq); in sctp_addr_wq_mgmt()
781 __func__, addrw->state, &addrw->a.sa, &net->sctp.addr_waitq); in sctp_addr_wq_mgmt()
783 if (!timer_pending(&net->sctp.addr_wq_timer)) { in sctp_addr_wq_mgmt()
786 mod_timer(&net->sctp.addr_wq_timer, timeo_val); in sctp_addr_wq_mgmt()
788 spin_unlock_bh(&net->sctp.addr_wq_lock); in sctp_addr_wq_mgmt()
813 spin_lock_bh(&net->sctp.local_addr_lock); in sctp_inetaddr_event()
814 list_add_tail_rcu(&addr->list, &net->sctp.local_addr_list); in sctp_inetaddr_event()
816 spin_unlock_bh(&net->sctp.local_addr_lock); in sctp_inetaddr_event()
820 spin_lock_bh(&net->sctp.local_addr_lock); in sctp_inetaddr_event()
822 &net->sctp.local_addr_list, list) { in sctp_inetaddr_event()
833 spin_unlock_bh(&net->sctp.local_addr_lock); in sctp_inetaddr_event()
854 err = inet_ctl_sock_create(&net->sctp.ctl_sock, family, in sctp_ctl_sock_init()
859 err = inet_ctl_sock_create(&net->sctp.ctl_sock, AF_INET, in sctp_ctl_sock_init()
888 udp_conf.local_udp_port = htons(net->sctp.udp_port); in sctp_udp_sock_start()
899 net->sctp.udp4_sock = sock->sk; in sctp_udp_sock_start()
906 udp_conf.local_udp_port = htons(net->sctp.udp_port); in sctp_udp_sock_start()
912 udp_tunnel_sock_release(net->sctp.udp4_sock->sk_socket); in sctp_udp_sock_start()
913 net->sctp.udp4_sock = NULL; in sctp_udp_sock_start()
921 net->sctp.udp6_sock = sock->sk; in sctp_udp_sock_start()
929 if (net->sctp.udp4_sock) { in sctp_udp_sock_stop()
930 udp_tunnel_sock_release(net->sctp.udp4_sock->sk_socket); in sctp_udp_sock_stop()
931 net->sctp.udp4_sock = NULL; in sctp_udp_sock_stop()
933 if (net->sctp.udp6_sock) { in sctp_udp_sock_stop()
934 udp_tunnel_sock_release(net->sctp.udp6_sock->sk_socket); in sctp_udp_sock_stop()
935 net->sctp.udp6_sock = NULL; in sctp_udp_sock_stop()
1248 net->sctp.sctp_statistics = alloc_percpu(struct sctp_mib); in init_sctp_mibs()
1249 if (!net->sctp.sctp_statistics) in init_sctp_mibs()
1256 free_percpu(net->sctp.sctp_statistics); in cleanup_sctp_mibs()
1320 net->sctp.rto_initial = SCTP_RTO_INITIAL; in sctp_defaults_init()
1322 net->sctp.rto_min = SCTP_RTO_MIN; in sctp_defaults_init()
1324 net->sctp.rto_max = SCTP_RTO_MAX; in sctp_defaults_init()
1326 net->sctp.rto_alpha = SCTP_RTO_ALPHA; in sctp_defaults_init()
1328 net->sctp.rto_beta = SCTP_RTO_BETA; in sctp_defaults_init()
1331 net->sctp.valid_cookie_life = SCTP_DEFAULT_COOKIE_LIFE; in sctp_defaults_init()
1334 net->sctp.cookie_preserve_enable = 1; in sctp_defaults_init()
1338 net->sctp.sctp_hmac_alg = "md5"; in sctp_defaults_init()
1340 net->sctp.sctp_hmac_alg = "sha1"; in sctp_defaults_init()
1342 net->sctp.sctp_hmac_alg = NULL; in sctp_defaults_init()
1346 net->sctp.max_burst = SCTP_DEFAULT_MAX_BURST; in sctp_defaults_init()
1349 net->sctp.ps_retrans = SCTP_PS_RETRANS_MAX; in sctp_defaults_init()
1352 net->sctp.pf_enable = 1; in sctp_defaults_init()
1355 net->sctp.pf_expose = SCTP_PF_EXPOSE_UNSET; in sctp_defaults_init()
1361 net->sctp.max_retrans_association = 10; in sctp_defaults_init()
1362 net->sctp.max_retrans_path = 5; in sctp_defaults_init()
1363 net->sctp.max_retrans_init = 8; in sctp_defaults_init()
1366 net->sctp.sndbuf_policy = 0; in sctp_defaults_init()
1369 net->sctp.rcvbuf_policy = 0; in sctp_defaults_init()
1372 net->sctp.hb_interval = SCTP_DEFAULT_TIMEOUT_HEARTBEAT; in sctp_defaults_init()
1375 net->sctp.sack_timeout = SCTP_DEFAULT_TIMEOUT_SACK; in sctp_defaults_init()
1378 net->sctp.addip_enable = 0; in sctp_defaults_init()
1379 net->sctp.addip_noauth = 0; in sctp_defaults_init()
1380 net->sctp.default_auto_asconf = 0; in sctp_defaults_init()
1383 net->sctp.prsctp_enable = 1; in sctp_defaults_init()
1386 net->sctp.reconf_enable = 0; in sctp_defaults_init()
1389 net->sctp.auth_enable = 0; in sctp_defaults_init()
1392 net->sctp.ecn_enable = 1; in sctp_defaults_init()
1395 net->sctp.udp_port = 0; in sctp_defaults_init()
1398 net->sctp.encap_port = 0; in sctp_defaults_init()
1401 net->sctp.scope_policy = SCTP_SCOPE_POLICY_ENABLE; in sctp_defaults_init()
1404 net->sctp.rwnd_upd_shift = SCTP_DEFAULT_RWND_SHIFT; in sctp_defaults_init()
1407 net->sctp.max_autoclose = INT_MAX / HZ; in sctp_defaults_init()
1410 net->sctp.l3mdev_accept = 1; in sctp_defaults_init()
1432 INIT_LIST_HEAD(&net->sctp.local_addr_list); in sctp_defaults_init()
1433 spin_lock_init(&net->sctp.local_addr_lock); in sctp_defaults_init()
1437 INIT_LIST_HEAD(&net->sctp.addr_waitq); in sctp_defaults_init()
1438 INIT_LIST_HEAD(&net->sctp.auto_asconf_splist); in sctp_defaults_init()
1439 spin_lock_init(&net->sctp.addr_wq_lock); in sctp_defaults_init()
1440 net->sctp.addr_wq_timer.expires = 0; in sctp_defaults_init()
1441 timer_setup(&net->sctp.addr_wq_timer, sctp_addr_wq_timeout_handler, 0); in sctp_defaults_init()
1463 net->sctp.proc_net_sctp = NULL; in sctp_defaults_exit()
1489 inet_ctl_sock_destroy(net->sctp.ctl_sock); in sctp_ctrlsock_exit()