Lines Matching refs:ua
119 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()
152 tipc_udp_media_addr_set(a, ua); in tipc_udp_msg2addr()