Home
last modified time | relevance | path

Searched refs:BTPROTO_L2CAP (Results 1 – 14 of 14) sorted by relevance

/netbsd/usr.sbin/btpand/
H A Dclient.c57 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 Dserver.c83 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 Dbt_sysctl.c147 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 Dbt_proto.c86 .pr_protocol = BTPROTO_L2CAP,
H A Dl2cap_socket.c371 if (sopt->sopt_level != BTPROTO_L2CAP) in l2cap_ctloutput()
465 sockopt_init(&sopt, BTPROTO_L2CAP, SO_L2CAP_LM, 0); in l2cap_linkmode()
H A Dbluetooth.h43 #define BTPROTO_L2CAP 2 macro
H A Drfcomm_dlc.c243 sockopt_init(&sopt, BTPROTO_L2CAP, SO_L2CAP_LM, 0); in rfcomm_dlc_setmode()
H A Drfcomm_session.c194 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 Dbta2dpd.c791 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 Dbtpin.c157 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 Dsdp_session.c61 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 Dserver.c221 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 Dbthidev.c211 sockopt_init(&sc->sc_mode, BTPROTO_L2CAP, SO_L2CAP_LM, 0); in bthidev_attach()
H A Dbtmagic.c308 sockopt_init(&sc->sc_mode, BTPROTO_L2CAP, SO_L2CAP_LM, 0); in btmagic_attach()