Home
last modified time | relevance | path

Searched refs:ua (Results 1 – 10 of 10) sorted by relevance

/net/tipc/
Dname_table.c229 static struct publication *tipc_publ_create(struct tipc_uaddr *ua, in tipc_publ_create() argument
238 p->sr = ua->sr; in tipc_publ_create()
240 p->scope = ua->scope; in tipc_publ_create()
258 struct tipc_uaddr *ua) in tipc_service_create() argument
271 service->type = ua->sr.type; in tipc_service_create()
275 hd = &nt->services[hash(ua->sr.type)]; in tipc_service_create()
283 struct tipc_uaddr *ua) in tipc_service_find_range() argument
287 service_range_foreach_match(sr, sc, ua->sr.lower, ua->sr.upper) { in tipc_service_find_range()
289 if (sr->lower == ua->sr.lower && sr->upper == ua->sr.upper) in tipc_service_find_range()
462 struct tipc_uaddr *ua) in tipc_service_find() argument
[all …]
Daddr.h64 static inline void tipc_uaddr(struct tipc_uaddr *ua, u32 atype, u32 scope, in tipc_uaddr() argument
67 ua->family = AF_TIPC; in tipc_uaddr()
68 ua->addrtype = atype; in tipc_uaddr()
69 ua->scope = scope; in tipc_uaddr()
70 ua->sr.type = type; in tipc_uaddr()
71 ua->sr.lower = lower; in tipc_uaddr()
72 ua->sr.upper = upper; in tipc_uaddr()
75 static inline bool tipc_uaddr_valid(struct tipc_uaddr *ua, int len) in tipc_uaddr_valid() argument
81 atype = ua->addrtype; in tipc_uaddr_valid()
82 if (ua->family != AF_TIPC) in tipc_uaddr_valid()
[all …]
Dname_table.h115 bool tipc_nametbl_lookup_anycast(struct net *net, struct tipc_uaddr *ua,
117 void tipc_nametbl_lookup_mcast_sockets(struct net *net, struct tipc_uaddr *ua,
119 void tipc_nametbl_lookup_mcast_nodes(struct net *net, struct tipc_uaddr *ua,
121 bool tipc_nametbl_lookup_group(struct net *net, struct tipc_uaddr *ua,
125 struct tipc_uaddr *ua);
126 struct publication *tipc_nametbl_publish(struct net *net, struct tipc_uaddr *ua,
128 void tipc_nametbl_withdraw(struct net *net, struct tipc_uaddr *ua,
131 struct tipc_uaddr *ua,
135 struct tipc_uaddr *ua,
Dsocket.c152 static int tipc_sk_publish(struct tipc_sock *tsk, struct tipc_uaddr *ua);
153 static int tipc_sk_withdraw(struct tipc_sock *tsk, struct tipc_uaddr *ua);
678 struct tipc_uaddr *ua = (struct tipc_uaddr *)skaddr; in __tipc_bind() local
685 if (ua->addrtype == TIPC_SERVICE_ADDR) { in __tipc_bind()
686 ua->addrtype = TIPC_SERVICE_RANGE; in __tipc_bind()
687 ua->sr.upper = ua->sr.lower; in __tipc_bind()
689 if (ua->scope < 0) { in __tipc_bind()
691 ua->scope = -ua->scope; in __tipc_bind()
694 if (ua->scope != TIPC_NODE_SCOPE) in __tipc_bind()
695 ua->scope = TIPC_CLUSTER_SCOPE; in __tipc_bind()
[all …]
Dname_distr.c247 struct tipc_uaddr ua; in tipc_publ_purge() local
249 tipc_uaddr(&ua, TIPC_SERVICE_RANGE, p->scope, p->sr.type, in tipc_publ_purge()
252 _p = tipc_nametbl_remove_publ(net, &ua, &p->sk, p->key); in tipc_publ_purge()
292 struct tipc_uaddr ua; in tipc_update_nametbl() local
295 tipc_uaddr(&ua, TIPC_SERVICE_RANGE, TIPC_CLUSTER_SCOPE, in tipc_update_nametbl()
301 p = tipc_nametbl_insert_publ(net, &ua, &sk, key); in tipc_update_nametbl()
307 p = tipc_nametbl_remove_publ(net, &ua, &sk, key); in tipc_update_nametbl()
314 ua.sr.type, ua.sr.lower, node); in tipc_update_nametbl()
Dudp_media.c119 struct udp_media_addr *ua) in tipc_udp_media_addr_set() argument
123 memcpy(addr->value, ua, sizeof(struct udp_media_addr)); in tipc_udp_media_addr_set()
125 if (tipc_udp_is_mcast_addr(ua)) in tipc_udp_media_addr_set()
132 struct udp_media_addr *ua = (struct udp_media_addr *)&a->value; in tipc_udp_addr2str() local
134 if (ntohs(ua->proto) == ETH_P_IP) in tipc_udp_addr2str()
135 snprintf(buf, size, "%pI4:%u", &ua->ipv4, ntohs(ua->port)); in tipc_udp_addr2str()
136 else if (ntohs(ua->proto) == ETH_P_IPV6) in tipc_udp_addr2str()
137 snprintf(buf, size, "%pI6:%u", &ua->ipv6, ntohs(ua->port)); in tipc_udp_addr2str()
147 struct udp_media_addr *ua; in tipc_udp_msg2addr() local
149 ua = (struct udp_media_addr *) (msg + TIPC_MEDIA_ADDR_OFFSET); in tipc_udp_msg2addr()
[all …]
Dnet.c130 struct tipc_uaddr ua; in tipc_net_finalize() local
132 tipc_uaddr(&ua, TIPC_SERVICE_RANGE, TIPC_CLUSTER_SCOPE, in tipc_net_finalize()
141 tipc_nametbl_publish(net, &ua, &sk, addr); in tipc_net_finalize()
Dmsg.c704 struct tipc_uaddr ua; in tipc_msg_lookup_dest() local
718 tipc_uaddr(&ua, TIPC_SERVICE_RANGE, scope, in tipc_msg_lookup_dest()
721 if (!tipc_nametbl_lookup_anycast(net, &ua, &sk)) in tipc_msg_lookup_dest()
Dnode.c405 struct tipc_uaddr ua; in tipc_node_write_unlock() local
413 tipc_uaddr(&ua, TIPC_SERVICE_RANGE, TIPC_NODE_SCOPE, in tipc_node_write_unlock()
434 tipc_nametbl_publish(net, &ua, &sk, sk.ref); in tipc_node_write_unlock()
438 tipc_nametbl_withdraw(net, &ua, &sk, sk.ref); in tipc_node_write_unlock()
/net/xfrm/
Dxfrm_user.c2528 struct xfrm_user_acquire *ua = nlmsg_data(nlh); in xfrm_add_acquire() local
2537 err = verify_newpolicy_info(&ua->policy); in xfrm_add_acquire()
2545 xp = xfrm_policy_construct(net, &ua->policy, attrs, &err); in xfrm_add_acquire()
2549 memcpy(&x->id, &ua->id, sizeof(ua->id)); in xfrm_add_acquire()
2550 memcpy(&x->props.saddr, &ua->saddr, sizeof(ua->saddr)); in xfrm_add_acquire()
2551 memcpy(&x->sel, &ua->sel, sizeof(ua->sel)); in xfrm_add_acquire()
2562 t->aalgos = ua->aalgos; in xfrm_add_acquire()
2563 t->ealgos = ua->ealgos; in xfrm_add_acquire()
2564 t->calgos = ua->calgos; in xfrm_add_acquire()
3235 struct xfrm_user_acquire *ua; in build_acquire() local
[all …]