Lines Matching refs:slevel
244 int slevel;
246 if (TranslateOption(opt, &slevel, &sopt) == -1)
249 int ret = ::getsockopt(s_, slevel, sopt, (SockOptArg)value, &optlen);
259 int slevel;
261 if (TranslateOption(opt, &slevel, &sopt) == -1)
268 return ::setsockopt(s_, slevel, sopt, (SockOptArg)&value, sizeof(value));
475 static int TranslateOption(Option opt, int* slevel, int* sopt) {
479 *slevel = IPPROTO_IP;
486 *slevel = IPPROTO_IP;
491 *slevel = SOL_SOCKET;
495 *slevel = SOL_SOCKET;
499 *slevel = IPPROTO_TCP;