/net/tipc/ |
D | name_table.c | 93 u32 scope, u32 node, u32 port, in tipc_publ_create() argument 104 publ->scope = scope; in tipc_publ_create() 222 u32 upper, u32 scope, in tipc_service_insert_publ() argument 244 p = tipc_publ_create(type, lower, upper, scope, node, port, key); in tipc_service_insert_publ() 254 p->port, p->node, p->scope, first); in tipc_service_insert_publ() 316 p->node, p->scope, first); in tipc_service_subscribe() 338 u32 scope, u32 node, in tipc_nametbl_insert_publ() argument 345 if (scope > TIPC_NODE_SCOPE || lower > upper) { in tipc_nametbl_insert_publ() 347 type, lower, upper, scope); in tipc_nametbl_insert_publ() 358 scope, node, port, key); in tipc_nametbl_insert_publ() [all …]
|
D | name_table.h | 78 u32 scope; member 111 u32 scope, bool exact, struct list_head *dports); 120 u32 upper, u32 scope, u32 port, 125 u32 lower, u32 upper, u32 scope,
|
D | socket.c | 130 static int tipc_sk_publish(struct tipc_sock *tsk, uint scope, 132 static int tipc_sk_withdraw(struct tipc_sock *tsk, uint scope, 667 res = (addr->scope >= 0) ? in tipc_bind() 668 tipc_sk_publish(tsk, addr->scope, &addr->addr.nameseq) : in tipc_bind() 669 tipc_sk_withdraw(tsk, -addr->scope, &addr->addr.nameseq); in tipc_bind() 709 addr->scope = 0; in tipc_getname() 958 u32 type, inst, scope; in tipc_send_group_anycast() local 967 scope = msg_lookup_scope(hdr); in tipc_send_group_anycast() 976 if (!tipc_nametbl_lookup(net, type, inst, scope, &dsts, in tipc_send_group_anycast() 1112 u32 type, inst, scope, exclude; in tipc_send_group_mcast() local [all …]
|
D | subscr.c | 78 u32 scope, int must) in tipc_sub_report_overlap() argument 93 if (filter & TIPC_SUB_CLUSTER_SCOPE && scope == TIPC_NODE_SCOPE) in tipc_sub_report_overlap() 95 if (filter & TIPC_SUB_NODE_SCOPE && scope != TIPC_NODE_SCOPE) in tipc_sub_report_overlap()
|
D | group.c | 89 u32 scope; member 167 bool global = mreq->scope != TIPC_NODE_SCOPE; in tipc_group_create() 183 grp->scope = mreq->scope; in tipc_group_create() 363 int *scope) in tipc_group_self() argument 368 *scope = grp->scope; in tipc_group_self() 752 if (grp->scope == TIPC_NODE_SCOPE && node != tipc_own_addr(grp->net)) in tipc_group_proto_rcv() 940 if (grp->scope == TIPC_NODE_SCOPE) in tipc_group_fill_sock_diag() 944 if (grp->scope == TIPC_CLUSTER_SCOPE) in tipc_group_fill_sock_diag()
|
D | name_distr.c | 93 if (publ->scope == TIPC_NODE_SCOPE) { in tipc_named_publish() 123 if (publ->scope == TIPC_NODE_SCOPE) in tipc_named_withdraw()
|
D | subscr.h | 79 u32 scope, int must);
|
D | group.h | 54 int *scope);
|
D | topsrv.c | 535 saddr.scope = TIPC_NODE_SCOPE; in tipc_topsrv_create_listener()
|
/net/sctp/ |
D | bind_addr.c | 34 union sctp_addr *addr, enum sctp_scope scope, 45 enum sctp_scope scope, gfp_t gfp, in sctp_bind_addr_copy() argument 56 error = sctp_copy_one_addr(net, dest, &addr->a, scope, in sctp_bind_addr_copy() 66 if (list_empty(&dest->address_list) && (SCTP_SCOPE_GLOBAL == scope)) { in sctp_bind_addr_copy() 460 union sctp_addr *addr, enum sctp_scope scope, in sctp_copy_one_addr() argument 466 error = sctp_copy_local_addr_list(net, dest, scope, gfp, flags); in sctp_copy_one_addr() 467 } else if (sctp_in_scope(net, addr, scope)) { in sctp_copy_one_addr() 506 enum sctp_scope scope) in sctp_in_scope() argument 528 if (addr_scope <= scope) in sctp_in_scope() 532 if (addr_scope <= scope || SCTP_SCOPE_PRIVATE == addr_scope) in sctp_in_scope() [all …]
|
D | associola.c | 55 enum sctp_scope scope, gfp_t gfp) in sctp_association_init() argument 284 enum sctp_scope scope, gfp_t gfp) in sctp_association_new() argument 292 if (!sctp_association_init(asoc, ep, sk, scope, gfp)) in sctp_association_new() 1568 enum sctp_scope scope, gfp_t gfp) in sctp_assoc_set_bind_addr_from_ep() argument 1587 scope, gfp, flags); in sctp_assoc_set_bind_addr_from_ep()
|
D | ipv6.c | 239 enum sctp_scope scope; in sctp_v6_get_dst() local 287 scope = sctp_scope(daddr); in sctp_v6_get_dst() 331 scope > sctp_scope(&laddr->a)) in sctp_v6_get_dst() 1083 .scope = sctp_v6_scope,
|
D | sm_make_chunk.c | 1588 enum sctp_scope scope; in sctp_make_temp_asoc() local 1592 scope = sctp_scope(sctp_source(chunk)); in sctp_make_temp_asoc() 1593 asoc = sctp_association_new(ep, ep->base.sk, scope, gfp); in sctp_make_temp_asoc() 1710 enum sctp_scope scope; in sctp_unpack_cookie() local 1822 scope = sctp_scope(sctp_source(chunk)); in sctp_unpack_cookie() 1823 retval = sctp_association_new(ep, ep->base.sk, scope, gfp); in sctp_unpack_cookie() 2511 enum sctp_scope scope; in sctp_process_param() local 2536 scope = sctp_scope(peer_addr); in sctp_process_param() 2537 if (sctp_in_scope(net, &addr, scope)) in sctp_process_param()
|
D | protocol.c | 133 enum sctp_scope scope, gfp_t gfp, int copy_flags) in sctp_copy_local_addr_list() argument 143 if (!sctp_in_scope(net, &addr->a, scope)) in sctp_copy_local_addr_list() 1094 .scope = sctp_v4_scope,
|
D | socket.c | 1086 enum sctp_scope scope; in sctp_connect_new_asoc() local 1103 scope = sctp_scope(daddr); in sctp_connect_new_asoc() 1104 asoc = sctp_association_new(ep, sk, scope, GFP_KERNEL); in sctp_connect_new_asoc() 1108 err = sctp_assoc_set_bind_addr_from_ep(asoc, scope, GFP_KERNEL); in sctp_connect_new_asoc()
|
/net/netfilter/ |
D | nf_nat_redirect.c | 83 static bool nf_nat_redirect_ipv6_usable(const struct inet6_ifaddr *ifa, unsigned int scope) in nf_nat_redirect_ipv6_usable() argument 93 if (scope) { in nf_nat_redirect_ipv6_usable() 96 if (!(scope & ifa_scope)) in nf_nat_redirect_ipv6_usable() 112 unsigned int scope = ipv6_addr_scope(&ipv6_hdr(skb)->daddr); in nf_nat_redirect_ipv6() local 122 if (!nf_nat_redirect_ipv6_usable(ifa, scope)) in nf_nat_redirect_ipv6()
|
/net/ipv4/ |
D | fib_semantics.c | 100 .scope = RT_SCOPE_NOWHERE, 104 .scope = RT_SCOPE_UNIVERSE, 108 .scope = RT_SCOPE_HOST, 112 .scope = RT_SCOPE_LINK, 116 .scope = RT_SCOPE_LINK, 120 .scope = RT_SCOPE_UNIVERSE, 124 .scope = RT_SCOPE_UNIVERSE, 128 .scope = RT_SCOPE_UNIVERSE, 132 .scope = RT_SCOPE_UNIVERSE, 136 .scope = RT_SCOPE_UNIVERSE, [all …]
|
D | devinet.c | 1286 int scope) in in_dev_select_addr() argument 1294 ifa->ifa_scope <= scope) in in_dev_select_addr() 1301 __be32 inet_select_addr(const struct net_device *dev, __be32 dst, int scope) in inet_select_addr() argument 1321 if (min(ifa->ifa_scope, localnet_scope) > scope) in inet_select_addr() 1344 addr = in_dev_select_addr(in_dev, scope); in inet_select_addr() 1361 addr = in_dev_select_addr(in_dev, scope); in inet_select_addr() 1372 __be32 local, int scope) in confirm_addr_indev() argument 1387 min_scope <= scope) { in confirm_addr_indev() 1402 if (min_scope <= scope) { in confirm_addr_indev() 1424 __be32 dst, __be32 local, int scope) in inet_confirm_addr() argument [all …]
|
D | fib_frontend.c | 287 int scope; in fib_compute_spec_dst() local 298 scope = RT_SCOPE_UNIVERSE; in fib_compute_spec_dst() 306 .flowi4_scope = scope, in fib_compute_spec_dst() 312 scope = RT_SCOPE_LINK; in fib_compute_spec_dst() 315 return inet_select_addr(dev, ip_hdr(skb)->saddr, scope); in fib_compute_spec_dst() 1367 frn->scope = res.scope; in nl_fib_lookup()
|
D | fib_lookup.h | 54 u8 scope; member
|
D | arp.c | 396 int scope; in arp_ignore() local 403 scope = RT_SCOPE_HOST; in arp_ignore() 409 scope = RT_SCOPE_HOST; in arp_ignore() 413 scope = RT_SCOPE_LINK; in arp_ignore() 426 return !inet_confirm_addr(net, in_dev, sip, tip, scope); in arp_ignore()
|
D | nexthop.c | 623 static int nexthop_check_scope(struct nexthop *nh, u8 scope, in nexthop_check_scope() argument 629 if (scope == RT_SCOPE_HOST && nhi->fib_nhc.nhc_gw_family) { in nexthop_check_scope() 635 if (nhi->fib_nhc.nhc_flags & RTNH_F_ONLINK && scope >= RT_SCOPE_LINK) { in nexthop_check_scope() 647 int fib_check_nexthop(struct nexthop *nh, u8 scope, in fib_check_nexthop() argument 655 if (scope == RT_SCOPE_HOST) { in fib_check_nexthop() 663 err = nexthop_check_scope(nhg->nh_entries[0].nh, scope, extack); in fib_check_nexthop() 665 err = nexthop_check_scope(nh, scope, extack); in fib_check_nexthop()
|
/net/ipv6/ |
D | addrconf_core.c | 20 #define IPV6_ADDR_SCOPE_TYPE(scope) ((scope) << 16) argument 22 static inline unsigned int ipv6_addr_scope2type(unsigned int scope) in ipv6_addr_scope2type() argument 24 switch (scope) { in ipv6_addr_scope2type() 35 return IPV6_ADDR_SCOPE_TYPE(scope); in ipv6_addr_scope2type()
|
D | addrconf.c | 1130 ifa->scope = cfg->scope; in ipv6_add_addr() 1434 cfg.scope = ipv6_addr_scope(cfg.pfx); in ipv6_create_tempaddr() 1493 int scope; member 1590 if (ret >= dst->scope) in ipv6_get_saddr_eval() 1781 dst.scope = __ipv6_addr_src_scope(dst_type); in ipv6_dev_get_saddr() 1809 dst.scope <= IPV6_ADDR_SCOPE_LINKLOCAL || in ipv6_dev_get_saddr() 1870 if (ifp->scope > IFA_LINK) in __ipv6_get_lladdr() 1872 if (ifp->scope == IFA_LINK && in __ipv6_get_lladdr() 1959 !(ifp->scope&(IFA_LINK|IFA_HOST) || strict))) { in ipv6_chk_addr_and_flags() 2030 !(ifp->scope&(IFA_LINK|IFA_HOST) || strict)) { in ipv6_get_ifaddr() [all …]
|
/net/x25/ |
D | Kconfig | 9 X.25 is a set of standardized network protocols, similar in scope to
|