Lines Matching refs:opt_in
2110 struct tcp_ao_getsockopt opt_in, opt_out; in tcp_ao_copy_mkts_to_user() local
2128 memset(&opt_in, 0, sizeof(struct tcp_ao_getsockopt)); in tcp_ao_copy_mkts_to_user()
2129 err = copy_struct_from_sockptr(&opt_in, sizeof(opt_in), in tcp_ao_copy_mkts_to_user()
2134 if (opt_in.pkt_good || opt_in.pkt_bad) in tcp_ao_copy_mkts_to_user()
2136 if (opt_in.keyflags & ~TCP_AO_GET_KEYF_VALID) in tcp_ao_copy_mkts_to_user()
2138 if (opt_in.ifindex && !(opt_in.keyflags & TCP_AO_KEYF_IFINDEX)) in tcp_ao_copy_mkts_to_user()
2141 if (opt_in.reserved != 0) in tcp_ao_copy_mkts_to_user()
2144 max_keys = opt_in.nkeys; in tcp_ao_copy_mkts_to_user()
2145 l3index = (opt_in.keyflags & TCP_AO_KEYF_IFINDEX) ? opt_in.ifindex : -1; in tcp_ao_copy_mkts_to_user()
2147 if (opt_in.get_all || opt_in.is_current || opt_in.is_rnext) { in tcp_ao_copy_mkts_to_user()
2148 if (opt_in.get_all && (opt_in.is_current || opt_in.is_rnext)) in tcp_ao_copy_mkts_to_user()
2153 switch (opt_in.addr.ss_family) { in tcp_ao_copy_mkts_to_user()
2158 sin = (struct sockaddr_in *)&opt_in.addr; in tcp_ao_copy_mkts_to_user()
2162 if (opt_in.prefix > 32) in tcp_ao_copy_mkts_to_user()
2166 opt_in.prefix != 0) in tcp_ao_copy_mkts_to_user()
2169 mask = inet_make_mask(opt_in.prefix); in tcp_ao_copy_mkts_to_user()
2179 sin6 = (struct sockaddr_in6 *)&opt_in.addr; in tcp_ao_copy_mkts_to_user()
2188 if (opt_in.prefix != 0) { in tcp_ao_copy_mkts_to_user()
2192 if (opt_in.prefix > 32 || in tcp_ao_copy_mkts_to_user()
2195 mask = inet_make_mask(opt_in.prefix); in tcp_ao_copy_mkts_to_user()
2202 opt_in.prefix > 128) in tcp_ao_copy_mkts_to_user()
2205 ipv6_addr_prefix(&pfx, addr6, opt_in.prefix); in tcp_ao_copy_mkts_to_user()
2226 if (opt_in.prefix || opt_in.sndid || opt_in.rcvid) in tcp_ao_copy_mkts_to_user()
2237 if (opt_in.get_all) in tcp_ao_copy_mkts_to_user()
2240 if (opt_in.is_current || opt_in.is_rnext) { in tcp_ao_copy_mkts_to_user()
2241 if (opt_in.is_current && key == current_key) in tcp_ao_copy_mkts_to_user()
2243 if (opt_in.is_rnext && key == ao_info->rnext_key) in tcp_ao_copy_mkts_to_user()
2248 if (tcp_ao_key_cmp(key, l3index, addr, opt_in.prefix, in tcp_ao_copy_mkts_to_user()
2249 opt_in.addr.ss_family, in tcp_ao_copy_mkts_to_user()
2250 opt_in.sndid, opt_in.rcvid) != 0) in tcp_ao_copy_mkts_to_user()