Home
last modified time | relevance | path

Searched refs:sopt (Results 1 – 7 of 7) sorted by relevance

/external/webrtc/webrtc/base/
Dwin32socketserver.cc401 int sopt; in GetOption() local
402 if (TranslateOption(opt, &slevel, &sopt) == -1) in GetOption()
407 return ::getsockopt(socket_, slevel, sopt, p, &optlen); in GetOption()
412 int sopt; in SetOption() local
413 if (TranslateOption(opt, &slevel, &sopt) == -1) in SetOption()
417 return ::setsockopt(socket_, slevel, sopt, p, sizeof(value)); in SetOption()
591 int Win32Socket::TranslateOption(Option opt, int* slevel, int* sopt) { in TranslateOption() argument
595 *sopt = IP_DONTFRAGMENT; in TranslateOption()
599 *sopt = SO_RCVBUF; in TranslateOption()
603 *sopt = SO_SNDBUF; in TranslateOption()
[all …]
Dphysicalsocketserver.cc238 int sopt; in GetOption() local
239 if (TranslateOption(opt, &slevel, &sopt) == -1) in GetOption()
242 int ret = ::getsockopt(s_, slevel, sopt, (SockOptArg)value, &optlen); in GetOption()
253 int sopt; in SetOption() local
254 if (TranslateOption(opt, &slevel, &sopt) == -1) in SetOption()
261 return ::setsockopt(s_, slevel, sopt, (SockOptArg)&value, sizeof(value)); in SetOption()
510 int PhysicalSocket::TranslateOption(Option opt, int* slevel, int* sopt) { in TranslateOption() argument
515 *sopt = IP_DONTFRAGMENT; in TranslateOption()
522 *sopt = IP_MTU_DISCOVER; in TranslateOption()
527 *sopt = SO_RCVBUF; in TranslateOption()
[all …]
Dwin32socketserver.h66 static int TranslateOption(Option opt, int* slevel, int* sopt);
Dphysicalsocketserver.h169 static int TranslateOption(Option opt, int* slevel, int* sopt);
/external/iproute2/tc/
Dq_gred.c273 struct tc_gred_sopt *sopt; in gred_print_opt() local
298 sopt = RTA_DATA(tb[TCA_GRED_DPS]); in gred_print_opt()
300 if (RTA_PAYLOAD(tb[TCA_GRED_DPS]) < sizeof(*sopt) || in gred_print_opt()
309 sopt->DPs, in gred_print_opt()
310 sopt->def_DP, in gred_print_opt()
311 sopt->grio ? "grio " : ""); in gred_print_opt()
/external/dnsmasq/src/
Drfc2131.c204 unsigned char *sopt; in dhcp_reply() local
215 …if ((sopt = option_find1(option_ptr(opt, 0), option_ptr(opt, option_len(opt)), SUBOPT_SUBNET_SELEC… in dhcp_reply()
216 subnet_addr = option_addr(sopt); in dhcp_reply()
219 …if ((sopt = option_find1(option_ptr(opt, 0), option_ptr(opt, option_len(opt)), SUBOPT_SERVER_OR, I… in dhcp_reply()
220 override = option_addr(sopt); in dhcp_reply()
236 if ((sopt = option_find1(option_ptr(opt, 0), option_ptr(opt, option_len(opt)), search, 1)) && in dhcp_reply()
237 vendor->len == option_len(sopt) && in dhcp_reply()
238 memcmp(option_ptr(sopt, 0), vendor->data, vendor->len) == 0) in dhcp_reply()
/external/python/cpython2/Lib/
Doptparse.py347 short_opts = [self._short_opt_fmt % (sopt, metavar)
348 for sopt in option._short_opts]