Lines Matching full:context
85 void get_addresses(struct net_context *context, in get_addresses() argument
89 if (IS_ENABLED(CONFIG_NET_IPV6) && context->local.family == AF_INET6) { in get_addresses()
92 net_sin6_ptr(&context->local)->sin6_addr), in get_addresses()
93 ntohs(net_sin6_ptr(&context->local)->sin6_port)); in get_addresses()
96 &net_sin6(&context->remote)->sin6_addr), in get_addresses()
97 ntohs(net_sin6(&context->remote)->sin6_port)); in get_addresses()
99 } else if (IS_ENABLED(CONFIG_NET_IPV4) && context->local.family == AF_INET) { in get_addresses()
102 net_sin_ptr(&context->local)->sin_addr), in get_addresses()
103 ntohs(net_sin_ptr(&context->local)->sin_port)); in get_addresses()
107 net_sin(&context->remote)->sin_family == AF_INET6 && in get_addresses()
108 net_ipv6_addr_is_v4_mapped(&net_sin6(&context->remote)->sin6_addr)) { in get_addresses()
111 &net_sin6(&context->remote)->sin6_addr), in get_addresses()
112 ntohs(net_sin6(&context->remote)->sin6_port)); in get_addresses()
116 &net_sin(&context->remote)->sin_addr), in get_addresses()
117 ntohs(net_sin(&context->remote)->sin_port)); in get_addresses()
120 } else if (context->local.family == AF_UNSPEC) { in get_addresses()
122 } else if (context->local.family == AF_PACKET) { in get_addresses()
124 } else if (context->local.family == AF_CAN) { in get_addresses()
128 context->local.family); in get_addresses()