Lines Matching defs:net
56 #include <net/ip.h>
57 #include <net/icmp.h>
58 #include <net/route.h>
59 #include <net/ipv6.h>
60 #include <net/inet_common.h>
61 #include <net/busy_poll.h>
66 #include <net/sock.h>
67 #include <net/sctp/sctp.h>
68 #include <net/sctp/sm.h>
69 #include <net/sctp/stream_sched.h>
364 struct net *net = sock_net(&sp->inet.sk);
366 if (net->sctp.default_auto_asconf) {
367 spin_lock_bh(&net->sctp.addr_wq_lock);
368 list_add_tail(&sp->auto_asconf_list, &net->sctp.auto_asconf_splist);
369 spin_unlock_bh(&net->sctp.addr_wq_lock);
377 struct net *net = sock_net(sk);
416 if (snum && inet_port_requires_bind_service(net, snum) &&
417 !ns_capable(net->user_ns, CAP_NET_BIND_SERVICE))
482 retval = sctp_primitive_ASCONF(asoc->base.net, asoc, chunk);
1073 struct net *net = sock_net(sk);
1084 if (inet_port_requires_bind_service(net, ep->base.bind_addr.port) &&
1085 !ns_capable(net->user_ns, CAP_NET_BIND_SERVICE))
1484 struct net *net = sock_net(sk);
1525 sctp_primitive_ABORT(net, asoc, chunk);
1527 sctp_primitive_SHUTDOWN(net, asoc, NULL);
1538 * the net layers still may.
1542 spin_lock_bh(&net->sctp.addr_wq_lock);
1552 spin_unlock_bh(&net->sctp.addr_wq_lock);
1756 struct net *net = sock_net(sk);
1767 sctp_primitive_SHUTDOWN(net, asoc, NULL);
1780 sctp_primitive_ABORT(net, asoc, chunk);
1796 struct net *net = sock_net(sk);
1840 err = sctp_primitive_ASSOCIATE(net, asoc, NULL);
1872 err = sctp_primitive_SEND(net, asoc, datamsg);
2272 struct net *net = sock_net(sk);
2281 if (sp->autoclose > net->sctp.max_autoclose)
2282 sp->autoclose = net->sctp.max_autoclose;
2436 error = sctp_primitive_REQUESTHEARTBEAT(trans->asoc->base.net,
4950 struct net *net = sock_net(sk);
4981 sp->max_burst = net->sctp.max_burst;
4983 sp->sctp_hmac_alg = net->sctp.sctp_hmac_alg;
4991 sp->initmsg.sinit_max_attempts = net->sctp.max_retrans_init;
4992 sp->initmsg.sinit_max_init_timeo = net->sctp.rto_max;
4997 sp->rtoinfo.srto_initial = net->sctp.rto_initial;
4998 sp->rtoinfo.srto_max = net->sctp.rto_max;
4999 sp->rtoinfo.srto_min = net->sctp.rto_min;
5004 sp->assocparams.sasoc_asocmaxrxt = net->sctp.max_retrans_association;
5008 sp->assocparams.sasoc_cookie_life = net->sctp.valid_cookie_life;
5018 sp->hbinterval = net->sctp.hb_interval;
5019 sp->udp_port = htons(net->sctp.udp_port);
5020 sp->encap_port = htons(net->sctp.encap_port);
5021 sp->pathmaxrxt = net->sctp.max_retrans_path;
5022 sp->pf_retrans = net->sctp.pf_retrans;
5023 sp->ps_retrans = net->sctp.ps_retrans;
5024 sp->pf_expose = net->sctp.pf_expose;
5026 sp->sackdelay = net->sctp.sack_timeout;
5065 sp->probe_interval = net->sctp.probe_interval;
5082 sock_prot_inuse_add(net, sk->sk_prot, 1);
5146 struct net *net = sock_net(sk);
5159 sctp_primitive_SHUTDOWN(net, asoc, NULL);
5264 struct sctp_transport *sctp_transport_get_next(struct net *net,
5280 if (net_eq(t->asoc->base.net, net) &&
5290 struct sctp_transport *sctp_transport_get_idx(struct net *net,
5299 while ((t = sctp_transport_get_next(net, iter)) && !IS_ERR(t)) {
5330 int sctp_transport_lookup_process(sctp_callback_t cb, struct net *net,
5339 transport = sctp_addrs_lookup_transport(net, laddr, paddr, dif, dif);
5360 struct net *net, int *pos, void *p)
5371 tsp = sctp_transport_get_idx(net, &hti, *pos + 1);
5372 for (; !IS_ERR_OR_NULL(tsp); tsp = sctp_transport_get_next(net, &hti)) {
6197 struct net *net = sock_net(sk);
6200 list_for_each_entry_rcu(addr, &net->sctp.local_addr_list, list) {
8332 struct sctp_bind_hashbucket *head, struct net *, unsigned short snum);
8339 struct net *net = sock_net(sk);
8362 if (inet_is_local_reserved_port(net, rover))
8364 index = sctp_phashfn(net, rover);
8369 net_eq(net, pp->net))
8394 head = &sctp_port_hashtable[sctp_phashfn(net, snum)];
8397 if ((pp->port == snum) && net_eq(pp->net, net))
8456 if (!pp && !(pp = sctp_bucket_create(head, net, snum)))
8702 struct sctp_bind_hashbucket *head, struct net *net, unsigned short snum)
8712 pp->net = net;
9560 * that net->sctp.auth_enable has been changed to 0 by users and