Lines Matching refs:slevel
284 int slevel; in GetOption() local
286 if (TranslateOption(opt, &slevel, &sopt) == -1) in GetOption()
289 int ret = ::getsockopt(s_, slevel, sopt, (SockOptArg)value, &optlen); in GetOption()
307 int slevel; in SetOption() local
309 if (TranslateOption(opt, &slevel, &sopt) == -1) in SetOption()
327 return ::setsockopt(s_, slevel, sopt, (SockOptArg)&value, sizeof(value)); in SetOption()
546 int PhysicalSocket::TranslateOption(Option opt, int* slevel, int* sopt) { in TranslateOption() argument
550 *slevel = IPPROTO_IP; in TranslateOption()
557 *slevel = IPPROTO_IP; in TranslateOption()
562 *slevel = SOL_SOCKET; in TranslateOption()
566 *slevel = SOL_SOCKET; in TranslateOption()
570 *slevel = IPPROTO_TCP; in TranslateOption()
576 *slevel = IPPROTO_IPV6; in TranslateOption()
579 *slevel = IPPROTO_IP; in TranslateOption()