Lines Matching refs:cmd
601 struct tcp_md5sig cmd; in tcp_v6_parse_md5_keys() local
602 struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)&cmd.tcpm_addr; in tcp_v6_parse_md5_keys()
607 if (optlen < sizeof(cmd)) in tcp_v6_parse_md5_keys()
610 if (copy_from_sockptr(&cmd, optval, sizeof(cmd))) in tcp_v6_parse_md5_keys()
616 flags = cmd.tcpm_flags & TCP_MD5SIG_FLAG_IFINDEX; in tcp_v6_parse_md5_keys()
619 cmd.tcpm_flags & TCP_MD5SIG_FLAG_PREFIX) { in tcp_v6_parse_md5_keys()
620 prefixlen = cmd.tcpm_prefixlen; in tcp_v6_parse_md5_keys()
628 if (optname == TCP_MD5SIG_EXT && cmd.tcpm_ifindex && in tcp_v6_parse_md5_keys()
629 cmd.tcpm_flags & TCP_MD5SIG_FLAG_IFINDEX) { in tcp_v6_parse_md5_keys()
633 dev = dev_get_by_index_rcu(sock_net(sk), cmd.tcpm_ifindex); in tcp_v6_parse_md5_keys()
645 if (!cmd.tcpm_keylen) { in tcp_v6_parse_md5_keys()
654 if (cmd.tcpm_keylen > TCP_MD5SIG_MAXKEYLEN) in tcp_v6_parse_md5_keys()
660 cmd.tcpm_key, cmd.tcpm_keylen); in tcp_v6_parse_md5_keys()
664 cmd.tcpm_key, cmd.tcpm_keylen); in tcp_v6_parse_md5_keys()