Lines Matching refs:slevel
236 int slevel;
238 if (TranslateOption(opt, &slevel, &sopt) == -1)
241 int ret = ::getsockopt(s_, slevel, sopt, (SockOptArg)value, &optlen);
251 int slevel;
253 if (TranslateOption(opt, &slevel, &sopt) == -1)
260 return ::setsockopt(s_, slevel, sopt, (SockOptArg)&value, sizeof(value));
499 static int TranslateOption(Option opt, int* slevel, int* sopt) {
503 *slevel = IPPROTO_IP;
510 *slevel = IPPROTO_IP;
515 *slevel = SOL_SOCKET;
519 *slevel = SOL_SOCKET;
523 *slevel = IPPROTO_TCP;