Lines Matching refs:opt
183 int sk, opt; in do_connect() local
251 opt = 0; in do_connect()
253 opt |= L2CAP_LM_RELIABLE; in do_connect()
255 opt |= L2CAP_LM_MASTER; in do_connect()
257 opt |= L2CAP_LM_AUTH; in do_connect()
259 opt |= L2CAP_LM_ENCRYPT; in do_connect()
261 opt |= L2CAP_LM_SECURE; in do_connect()
263 if (setsockopt(sk, SOL_L2CAP, L2CAP_LM, &opt, sizeof(opt)) < 0) { in do_connect()
322 int sk, nsk, opt; in do_listen() local
345 opt = 0; in do_listen()
347 opt |= L2CAP_LM_RELIABLE; in do_listen()
349 opt |= L2CAP_LM_MASTER; in do_listen()
351 opt |= L2CAP_LM_AUTH; in do_listen()
353 opt |= L2CAP_LM_ENCRYPT; in do_listen()
355 opt |= L2CAP_LM_SECURE; in do_listen()
357 if (opt && setsockopt(sk, SOL_L2CAP, L2CAP_LM, &opt, sizeof(opt)) < 0) { in do_listen()
498 int opt, len; in dump_mode() local
518 optlen = sizeof(opt); in dump_mode()
519 if (getsockopt(sk, SOL_SOCKET, SO_ERROR, &opt, &optlen) < 0) { in dump_mode()
546 int opt; in recv_mode() local
575 optlen = sizeof(opt); in recv_mode()
576 if (getsockopt(sk, SOL_SOCKET, SO_ERROR, &opt, &optlen) < 0) { in recv_mode()
882 int opt, sk, mode = RECV, need_addr = 0; in main() local
886 while ((opt=getopt(argc,argv,"rdscuwmnxyzb:i:P:I:O:B:N:L:C:D:X:RGAESMT")) != EOF) { in main()
887 switch(opt) { in main()