Searched refs:so_protocol (Results 1 – 1 of 1) sorted by relevance
621 int so_type = -1, so_protocol = -1; in nl_socket_set_fd() local660 addrlen = sizeof(so_protocol); in nl_socket_set_fd()661 err = getsockopt(fd, SOL_SOCKET, SO_PROTOCOL, &so_protocol, &addrlen); in nl_socket_set_fd()669 if (addrlen != sizeof(so_protocol)) in nl_socket_set_fd()671 if (protocol >= 0 && protocol != so_protocol) { in nl_socket_set_fd()673 sk, fd, so_protocol, protocol); in nl_socket_set_fd()686 so_protocol = protocol; in nl_socket_set_fd()692 sk->s_proto = so_protocol; in nl_socket_set_fd()