/netbsd/usr.sbin/btpand/ |
H A D | client.c | 57 fd = socket(PF_BLUETOOTH, SOCK_SEQPACKET, BTPROTO_L2CAP); in client_init() 72 if (setsockopt(fd, BTPROTO_L2CAP, SO_L2CAP_LM, in client_init() 79 if (setsockopt(fd, BTPROTO_L2CAP, SO_L2CAP_IMTU, in client_init() 96 if (getsockopt(fd, BTPROTO_L2CAP, SO_L2CAP_IMTU, &mru, &len) == -1) { in client_init() 117 if (getsockopt(fd, BTPROTO_L2CAP, SO_L2CAP_OMTU, &mtu, &len) == -1) { in client_init()
|
H A D | server.c | 83 fd = socket(PF_BLUETOOTH, SOCK_SEQPACKET, BTPROTO_L2CAP); in server_open() 99 if (setsockopt(fd, BTPROTO_L2CAP, in server_open() 105 getsockopt(fd, BTPROTO_L2CAP, SO_L2CAP_LM, &l2cap_mode, &len); in server_open() 108 if (setsockopt(fd, BTPROTO_L2CAP, in server_open() 155 if (getsockopt(fd, BTPROTO_L2CAP, SO_L2CAP_IMTU, &mru, &len) == -1) { in server_read() 179 if (getsockopt(fd, BTPROTO_L2CAP, SO_L2CAP_OMTU, &mtu, &len) == -1) { in server_read()
|
/netbsd/sys/netbt/ |
H A D | bt_sysctl.c | 147 CTL_NET, PF_BLUETOOTH, BTPROTO_L2CAP, CTL_EOL); 155 CTL_NET, PF_BLUETOOTH, BTPROTO_L2CAP, 164 CTL_NET, PF_BLUETOOTH, BTPROTO_L2CAP, 173 CTL_NET, PF_BLUETOOTH, BTPROTO_L2CAP, 183 CTL_NET, PF_BLUETOOTH, BTPROTO_L2CAP,
|
H A D | bt_proto.c | 86 .pr_protocol = BTPROTO_L2CAP,
|
H A D | l2cap_socket.c | 371 if (sopt->sopt_level != BTPROTO_L2CAP) in l2cap_ctloutput() 465 sockopt_init(&sopt, BTPROTO_L2CAP, SO_L2CAP_LM, 0); in l2cap_linkmode()
|
H A D | bluetooth.h | 43 #define BTPROTO_L2CAP 2 macro
|
H A D | rfcomm_dlc.c | 243 sockopt_init(&sopt, BTPROTO_L2CAP, SO_L2CAP_LM, 0); in rfcomm_dlc_setmode()
|
H A D | rfcomm_session.c | 194 sockopt_init(&sopt, BTPROTO_L2CAP, SO_L2CAP_OMTU, 0); in rfcomm_session_alloc() 362 sockopt_init(&sopt, BTPROTO_L2CAP, SO_L2CAP_OMTU, 0); in rfcomm_session_connected()
|
/netbsd/usr.sbin/bta2dpd/bta2dpd/ |
H A D | bta2dpd.c | 791 sc = socket(PF_BLUETOOTH, SOCK_SEQPACKET, BTPROTO_L2CAP); in do_ctlreq() 798 if (setsockopt(sc, BTPROTO_L2CAP, SO_L2CAP_LM, in do_ctlreq() 828 getsockopt(sc, BTPROTO_L2CAP, SO_L2CAP_OMTU, &mtu, &mtusize); in do_ctlreq() 941 orighc = socket(PF_BLUETOOTH, SOCK_SEQPACKET, BTPROTO_L2CAP); in init_server() 954 if (setsockopt(orighc, BTPROTO_L2CAP, SO_L2CAP_LM, in init_server() 1038 orighc = socket(PF_BLUETOOTH, SOCK_SEQPACKET, BTPROTO_L2CAP); in init_client() 1051 if (setsockopt(orighc, BTPROTO_L2CAP, SO_L2CAP_LM, in init_client()
|
/netbsd/usr.bin/btpin/ |
H A D | btpin.c | 157 s = socket(PF_BLUETOOTH, SOCK_SEQPACKET, BTPROTO_L2CAP); in main() 162 if (setsockopt(s, BTPROTO_L2CAP, SO_L2CAP_LM, &ch, sizeof(ch)) == -1) in main()
|
/netbsd/lib/libbluetooth/ |
H A D | sdp_session.c | 61 ss->s = socket(PF_BLUETOOTH, SOCK_SEQPACKET, BTPROTO_L2CAP); in _sdp_open() 87 if (getsockopt(ss->s, BTPROTO_L2CAP, SO_L2CAP_IMTU, &ss->imtu, &len) == -1) in _sdp_open()
|
/netbsd/usr.sbin/sdpd/ |
H A D | server.c | 221 fd = socket(PF_BLUETOOTH, SOCK_SEQPACKET, BTPROTO_L2CAP); in server_open_l2cap() 229 if (setsockopt(fd, BTPROTO_L2CAP, SO_L2CAP_IMTU, in server_open_l2cap() 383 if (getsockopt(cfd, BTPROTO_L2CAP, SO_L2CAP_OMTU, &omtu, &len) == -1) in server_accept_client()
|
/netbsd/sys/dev/bluetooth/ |
H A D | bthidev.c | 211 sockopt_init(&sc->sc_mode, BTPROTO_L2CAP, SO_L2CAP_LM, 0); in bthidev_attach()
|
H A D | btmagic.c | 308 sockopt_init(&sc->sc_mode, BTPROTO_L2CAP, SO_L2CAP_LM, 0); in btmagic_attach()
|