crypto/openssh/ssh-keyscan.c
118
con *fdcon;
crypto/openssh/ssh-keyscan.c
120
static void keyprint(con *c, struct sshkey *key);
crypto/openssh/ssh-keyscan.c
208
con *c;
crypto/openssh/ssh-keyscan.c
233
keygrab_ssh2(con *c)
crypto/openssh/ssh-keyscan.c
336
keyprint(con *c, struct sshkey *key)
crypto/openssh/ssh-keyscan.c
450
con *c = &fdcon[s];
crypto/openssh/ssh-keyscan.c
465
con *c = &fdcon[s];
crypto/openssh/ssh-keyscan.c
552
con *c = &fdcon[s];
crypto/openssh/ssh-keyscan.c
564
con *c;
crypto/openssh/ssh-keyscan.c
788
fdcon = xcalloc(maxfd, sizeof(con));
crypto/openssl/apps/s_client.c
112
static void print_stuff(BIO *berr, SSL *con, int full);
crypto/openssl/apps/s_client.c
2153
con = SSL_new(ctx);
crypto/openssl/apps/s_client.c
2154
if (con == NULL)
crypto/openssl/apps/s_client.c
2158
SSL_set_post_handshake_auth(con, 1);
crypto/openssl/apps/s_client.c
2161
if (!SSL_set1_client_cert_type(con, cert_type_rpk, sizeof(cert_type_rpk))) {
crypto/openssl/apps/s_client.c
2166
if (!SSL_set1_server_cert_type(con, cert_type_rpk, sizeof(cert_type_rpk))) {
crypto/openssl/apps/s_client.c
2187
if (!SSL_set_session(con, sess)) {
crypto/openssl/apps/s_client.c
2197
SSL_set_mode(con, SSL_MODE_SEND_FALLBACK_SCSV);
crypto/openssl/apps/s_client.c
2204
if (servername != NULL && !SSL_set_tlsext_host_name(con, servername)) {
crypto/openssl/apps/s_client.c
2212
if (SSL_dane_enable(con, dane_tlsa_domain) <= 0) {
crypto/openssl/apps/s_client.c
2225
if (tlsa_import_rrset(con, dane_tlsa_rrset) <= 0) {
crypto/openssl/apps/s_client.c
2232
SSL_dane_set_flags(con, DANE_FLAG_NO_DANE_EE_NAMECHECKS);
crypto/openssl/apps/s_client.c
2281
if (isquic && !SSL_set_blocking_mode(con, 0))
crypto/openssl/apps/s_client.c
2327
if (socket_mtu < DTLS_get_link_min_mtu(con)) {
crypto/openssl/apps/s_client.c
2329
DTLS_get_link_min_mtu(con));
crypto/openssl/apps/s_client.c
2333
SSL_set_options(con, SSL_OP_NO_QUERY_MTU);
crypto/openssl/apps/s_client.c
2334
if (!DTLS_set_link_mtu(con, socket_mtu)) {
crypto/openssl/apps/s_client.c
2348
if (!SSL_set1_initial_peer_addr(con, peer_addr)) {
crypto/openssl/apps/s_client.c
2388
SSL_set_msg_callback(con, SSL_trace);
crypto/openssl/apps/s_client.c
2391
SSL_set_msg_callback(con, msg_cb);
crypto/openssl/apps/s_client.c
2392
SSL_set_msg_callback_arg(con, bio_c_msg ? bio_c_msg : bio_c_out);
crypto/openssl/apps/s_client.c
2396
SSL_set_tlsext_debug_callback(con, tlsext_cb);
crypto/openssl/apps/s_client.c
2397
SSL_set_tlsext_debug_arg(con, bio_c_out);
crypto/openssl/apps/s_client.c
2401
SSL_set_tlsext_status_type(con, TLSEXT_STATUSTYPE_ocsp);
crypto/openssl/apps/s_client.c
2407
SSL_set_bio(con, sbio, sbio);
crypto/openssl/apps/s_client.c
2408
SSL_set_connect_state(con);
crypto/openssl/apps/s_client.c
2411
if (fileno_stdin() > SSL_get_fd(con))
crypto/openssl/apps/s_client.c
2414
width = SSL_get_fd(con) + 1;
crypto/openssl/apps/s_client.c
2619
width = SSL_get_fd(con) + 1;
crypto/openssl/apps/s_client.c
2625
openssl_fdset(SSL_get_fd(con), &readfds);
crypto/openssl/apps/s_client.c
2930
&& ((SSL_get0_session(con) != NULL
crypto/openssl/apps/s_client.c
2931
&& SSL_SESSION_get_max_early_data(SSL_get0_session(con)) > 0)
crypto/openssl/apps/s_client.c
2947
while (!SSL_write_early_data(con, cbuf, readbytes, &writtenbytes)) {
crypto/openssl/apps/s_client.c
2948
switch (SSL_get_error(con, 0)) {
crypto/openssl/apps/s_client.c
2966
user_data_init(&user_data, con, cbuf, BUFSIZZ, cmdmode);
crypto/openssl/apps/s_client.c
2972
&& SSL_get_event_timeout(con, &timeout, &is_infinite)
crypto/openssl/apps/s_client.c
2978
if (!SSL_is_init_finished(con) && SSL_total_renegotiations(con) == 0
crypto/openssl/apps/s_client.c
2979
&& SSL_get_key_update_type(con) == SSL_KEY_UPDATE_NONE) {
crypto/openssl/apps/s_client.c
2988
print_ssl_summary(con);
crypto/openssl/apps/s_client.c
2991
print_stuff(bio_c_out, con, full_log);
crypto/openssl/apps/s_client.c
3006
do_ssl_shutdown(con);
crypto/openssl/apps/s_client.c
3007
SSL_set_connect_state(con);
crypto/openssl/apps/s_client.c
3008
BIO_closesocket(SSL_get_fd(con));
crypto/openssl/apps/s_client.c
3046
ssl_pending = read_ssl && SSL_has_pending(con);
crypto/openssl/apps/s_client.c
3071
|| (isquic && SSL_net_read_desired(con)))
crypto/openssl/apps/s_client.c
3072
openssl_fdset(SSL_get_fd(con), &readfds);
crypto/openssl/apps/s_client.c
3074
|| (isquic && (first_loop || SSL_net_write_desired(con))))
crypto/openssl/apps/s_client.c
3075
openssl_fdset(SSL_get_fd(con), &writefds);
crypto/openssl/apps/s_client.c
3079
|| (isquic && SSL_net_read_desired(con)))
crypto/openssl/apps/s_client.c
3080
openssl_fdset(SSL_get_fd(con), &readfds);
crypto/openssl/apps/s_client.c
3082
|| (isquic && (first_loop || SSL_net_write_desired(con))))
crypto/openssl/apps/s_client.c
3083
openssl_fdset(SSL_get_fd(con), &writefds);
crypto/openssl/apps/s_client.c
3127
SSL_handle_events(con);
crypto/openssl/apps/s_client.c
3129
&& !FD_ISSET(SSL_get_fd(con), &readfds)
crypto/openssl/apps/s_client.c
3130
&& !FD_ISSET(SSL_get_fd(con), &writefds))
crypto/openssl/apps/s_client.c
3135
&& ((!isquic && FD_ISSET(SSL_get_fd(con), &writefds))
crypto/openssl/apps/s_client.c
3137
k = SSL_write(con, &(cbuf[cbuf_off]), (unsigned int)cbuf_len);
crypto/openssl/apps/s_client.c
3138
switch (SSL_get_error(con, k)) {
crypto/openssl/apps/s_client.c
3161
wait_for_async(con);
crypto/openssl/apps/s_client.c
3230
|| (!isquic && FD_ISSET(SSL_get_fd(con), &readfds))) {
crypto/openssl/apps/s_client.c
3235
SSL_renegotiate(con);
crypto/openssl/apps/s_client.c
3240
k = SSL_read(con, sbuf, BUFSIZZ);
crypto/openssl/apps/s_client.c
3242
switch (SSL_get_error(con, k)) {
crypto/openssl/apps/s_client.c
3254
wait_for_async(con);
crypto/openssl/apps/s_client.c
3349
print_stuff(bio_c_out, con, full_log);
crypto/openssl/apps/s_client.c
3350
do_ssl_shutdown(con);
crypto/openssl/apps/s_client.c
3362
shutdown(SSL_get_fd(con), 1); /* SHUT_WR */
crypto/openssl/apps/s_client.c
3376
BIO_closesocket(SSL_get_fd(con));
crypto/openssl/apps/s_client.c
3378
if (con != NULL) {
crypto/openssl/apps/s_client.c
3380
print_stuff(bio_c_out, con, 1);
crypto/openssl/apps/s_client.c
3381
SSL_free(con);
crypto/openssl/apps/s_client.c
3881
static void user_data_init(struct user_data_st *user_data, SSL *con, char *buf,
crypto/openssl/apps/s_client.c
3884
user_data->con = con;
crypto/openssl/apps/s_client.c
3927
if (SSL_is_quic(user_data->con)) {
crypto/openssl/apps/s_client.c
3929
} else if (SSL_version(user_data->con) == TLS1_3_VERSION) {
crypto/openssl/apps/s_client.c
3946
do_ssl_shutdown(user_data->con);
crypto/openssl/apps/s_client.c
3947
SSL_set_connect_state(user_data->con);
crypto/openssl/apps/s_client.c
3948
BIO_closesocket(SSL_get_fd(user_data->con));
crypto/openssl/apps/s_client.c
3953
if (!SSL_renegotiate(user_data->con))
crypto/openssl/apps/s_client.c
3967
if (!SSL_key_update(user_data->con, updatetype))
crypto/openssl/apps/s_client.c
3973
if (!SSL_stream_conclude(user_data->con, 0))
crypto/openssl/apps/s_client.c
4075
} else if (SSL_is_quic(user_data->con)) {
crypto/openssl/apps/s_client.c
4079
if (SSL_version(user_data->con) == TLS1_3_VERSION) {
crypto/openssl/apps/s_client.c
414
static int tlsa_import_rr(SSL *con, const char *rrdata)
crypto/openssl/apps/s_client.c
444
ret = SSL_dane_tlsa_add(con, usage, selector, mtype, data, len);
crypto/openssl/apps/s_client.c
462
static int tlsa_import_rrset(SSL *con, STACK_OF(OPENSSL_STRING) *rrset)
crypto/openssl/apps/s_client.c
470
if (tlsa_import_rr(con, rrdata) > 0)
crypto/openssl/apps/s_client.c
74
SSL *con;
crypto/openssl/apps/s_client.c
933
SSL *con = NULL;
crypto/openssl/apps/s_client.c
95
static void user_data_init(struct user_data_st *user_data, SSL *con, char *buf,
crypto/openssl/apps/s_server.c
2546
SSL *con = NULL;
crypto/openssl/apps/s_server.c
2568
con = SSL_new(ctx);
crypto/openssl/apps/s_server.c
2569
if (con == NULL) {
crypto/openssl/apps/s_server.c
2575
SSL_set_tlsext_debug_callback(con, tlsext_cb);
crypto/openssl/apps/s_server.c
2576
SSL_set_tlsext_debug_arg(con, bio_s_out);
crypto/openssl/apps/s_server.c
2580
&& !SSL_set_session_id_context(con, context,
crypto/openssl/apps/s_server.c
2587
if (!SSL_clear(con)) {
crypto/openssl/apps/s_server.c
2617
if (socket_mtu < DTLS_get_link_min_mtu(con)) {
crypto/openssl/apps/s_server.c
2619
DTLS_get_link_min_mtu(con));
crypto/openssl/apps/s_server.c
2624
SSL_set_options(con, SSL_OP_NO_QUERY_MTU);
crypto/openssl/apps/s_server.c
2625
if (!DTLS_set_link_mtu(con, socket_mtu)) {
crypto/openssl/apps/s_server.c
2639
SSL_set_options(con, SSL_OP_COOKIE_EXCHANGE);
crypto/openssl/apps/s_server.c
2663
SSL_set_bio(con, sbio, sbio);
crypto/openssl/apps/s_server.c
2664
SSL_set_accept_state(con);
crypto/openssl/apps/s_server.c
2667
BIO_set_callback_ex(SSL_get_rbio(con), count_reads_callback);
crypto/openssl/apps/s_server.c
2671
SSL_set_msg_callback(con, SSL_trace);
crypto/openssl/apps/s_server.c
2674
SSL_set_msg_callback(con, msg_cb);
crypto/openssl/apps/s_server.c
2675
SSL_set_msg_callback_arg(con, bio_s_msg ? bio_s_msg : bio_s_out);
crypto/openssl/apps/s_server.c
2679
SSL_set_tlsext_debug_callback(con, tlsext_cb);
crypto/openssl/apps/s_server.c
2680
SSL_set_tlsext_debug_arg(con, bio_s_out);
crypto/openssl/apps/s_server.c
2689
edret = SSL_read_early_data(con, buf, bufsize, &readbytes);
crypto/openssl/apps/s_server.c
2693
switch (SSL_get_error(con, 0)) {
crypto/openssl/apps/s_server.c
2715
if (SSL_get_early_data_status(con) == SSL_EARLY_DATA_NOT_SENT)
crypto/openssl/apps/s_server.c
2722
if (SSL_is_init_finished(con))
crypto/openssl/apps/s_server.c
2723
print_connection_info(con);
crypto/openssl/apps/s_server.c
2736
read_from_sslcon = SSL_has_pending(con)
crypto/openssl/apps/s_server.c
2737
|| (async && SSL_waiting_for_async(con));
crypto/openssl/apps/s_server.c
2767
if (SSL_is_dtls(con) && DTLSv1_get_timeout(con, &timeout))
crypto/openssl/apps/s_server.c
2774
if ((SSL_is_dtls(con)) && DTLSv1_handle_timeout(con) > 0)
crypto/openssl/apps/s_server.c
2820
if (SSL_version(con) != DTLS1_VERSION)
crypto/openssl/apps/s_server.c
2828
SSL_renegotiate(con);
crypto/openssl/apps/s_server.c
2829
i = SSL_do_handshake(con);
crypto/openssl/apps/s_server.c
2834
SSL_set_verify(con,
crypto/openssl/apps/s_server.c
2837
SSL_renegotiate(con);
crypto/openssl/apps/s_server.c
2838
i = SSL_do_handshake(con);
crypto/openssl/apps/s_server.c
2844
SSL_key_update(con, buf[0] == 'K' ? SSL_KEY_UPDATE_REQUESTED : SSL_KEY_UPDATE_NOT_REQUESTED);
crypto/openssl/apps/s_server.c
2845
i = SSL_do_handshake(con);
crypto/openssl/apps/s_server.c
2850
SSL_set_verify(con, SSL_VERIFY_PEER, NULL);
crypto/openssl/apps/s_server.c
2851
i = SSL_verify_client_post_handshake(con);
crypto/openssl/apps/s_server.c
2856
i = SSL_do_handshake(con);
crypto/openssl/apps/s_server.c
2863
BIO_write(SSL_get_wbio(con), str, sizeof(str) - 1);
crypto/openssl/apps/s_server.c
2866
print_stats(bio_s_out, SSL_get_SSL_CTX(con));
crypto/openssl/apps/s_server.c
2879
SSL_renegotiate(con);
crypto/openssl/apps/s_server.c
2882
k = SSL_write(con, &(buf[l]), (unsigned int)i);
crypto/openssl/apps/s_server.c
2884
while (SSL_get_error(con, k) == SSL_ERROR_WANT_X509_LOOKUP) {
crypto/openssl/apps/s_server.c
2889
k = SSL_write(con, &(buf[l]), (unsigned int)i);
crypto/openssl/apps/s_server.c
2892
switch (SSL_get_error(con, k)) {
crypto/openssl/apps/s_server.c
2898
wait_for_async(con);
crypto/openssl/apps/s_server.c
2938
if ((!async || !SSL_waiting_for_async(con))
crypto/openssl/apps/s_server.c
2939
&& !SSL_is_init_finished(con)) {
crypto/openssl/apps/s_server.c
2947
BIO_set_callback_arg(SSL_get_rbio(con), (char *)&read_counter);
crypto/openssl/apps/s_server.c
2948
i = init_ssl_connection(con);
crypto/openssl/apps/s_server.c
2949
BIO_set_callback_arg(SSL_get_rbio(con), NULL);
crypto/openssl/apps/s_server.c
2968
i = SSL_read(con, (char *)buf, bufsize);
crypto/openssl/apps/s_server.c
2970
while (SSL_get_error(con, i) == SSL_ERROR_WANT_X509_LOOKUP) {
crypto/openssl/apps/s_server.c
2975
i = SSL_read(con, (char *)buf, bufsize);
crypto/openssl/apps/s_server.c
2978
switch (SSL_get_error(con, i)) {
crypto/openssl/apps/s_server.c
2985
if (SSL_has_pending(con))
crypto/openssl/apps/s_server.c
2991
wait_for_async(con);
crypto/openssl/apps/s_server.c
3019
if (con != NULL) {
crypto/openssl/apps/s_server.c
3021
do_ssl_shutdown(con);
crypto/openssl/apps/s_server.c
3022
SSL_free(con);
crypto/openssl/apps/s_server.c
3037
static int is_retryable(SSL *con, int i)
crypto/openssl/apps/s_server.c
3039
int err = SSL_get_error(con, i);
crypto/openssl/apps/s_server.c
3047
static int init_ssl_connection(SSL *con)
crypto/openssl/apps/s_server.c
3061
i = DTLSv1_listen(con, client);
crypto/openssl/apps/s_server.c
3063
i = SSL_stateless(con);
crypto/openssl/apps/s_server.c
3070
wbio = SSL_get_wbio(con);
crypto/openssl/apps/s_server.c
3087
i = SSL_accept(con);
crypto/openssl/apps/s_server.c
3093
i = SSL_accept(con);
crypto/openssl/apps/s_server.c
3096
retry = is_retryable(con, i);
crypto/openssl/apps/s_server.c
3100
&& SSL_get_error(con, i) == SSL_ERROR_WANT_X509_LOOKUP
crypto/openssl/apps/s_server.c
3101
&& SSL_get_state(con) == TLS_ST_SR_CLNT_HELLO) {
crypto/openssl/apps/s_server.c
3104
i = SSL_accept(con);
crypto/openssl/apps/s_server.c
3106
retry = is_retryable(con, i);
crypto/openssl/apps/s_server.c
3113
&& SSL_get_error(con, i) == SSL_ERROR_WANT_X509_LOOKUP) {
crypto/openssl/apps/s_server.c
3119
i = SSL_accept(con);
crypto/openssl/apps/s_server.c
3121
retry = is_retryable(con, i);
crypto/openssl/apps/s_server.c
3124
} while (i < 0 && SSL_waiting_for_async(con));
crypto/openssl/apps/s_server.c
3136
verify_err = SSL_get_verify_result(con);
crypto/openssl/apps/s_server.c
3146
print_connection_info(con);
crypto/openssl/apps/s_server.c
3150
static void print_connection_info(SSL *con)
crypto/openssl/apps/s_server.c
3163
print_ssl_summary(con);
crypto/openssl/apps/s_server.c
3165
PEM_write_bio_SSL_SESSION(bio_s_out, SSL_get_session(con));
crypto/openssl/apps/s_server.c
3167
peer = SSL_get0_peer_certificate(con);
crypto/openssl/apps/s_server.c
3175
if (SSL_get_negotiated_server_cert_type(con) == TLSEXT_cert_type_rpk)
crypto/openssl/apps/s_server.c
3177
if (SSL_get_negotiated_client_cert_type(con) == TLSEXT_cert_type_rpk)
crypto/openssl/apps/s_server.c
3180
EVP_PKEY *client_rpk = SSL_get0_peer_rpk(con);
crypto/openssl/apps/s_server.c
3188
if (SSL_get_shared_ciphers(con, buf, sizeof(buf)) != NULL)
crypto/openssl/apps/s_server.c
3190
str = SSL_CIPHER_get_name(SSL_get_current_cipher(con));
crypto/openssl/apps/s_server.c
3191
ssl_print_sigalgs(bio_s_out, con);
crypto/openssl/apps/s_server.c
3193
ssl_print_point_formats(bio_s_out, con);
crypto/openssl/apps/s_server.c
3194
ssl_print_groups(bio_s_out, con, 0);
crypto/openssl/apps/s_server.c
3196
print_ca_names(bio_s_out, con);
crypto/openssl/apps/s_server.c
3200
SSL_get0_next_proto_negotiated(con, &next_proto_neg, &next_proto_neg_len);
crypto/openssl/apps/s_server.c
3210
= SSL_get_selected_srtp_profile(con);
crypto/openssl/apps/s_server.c
3217
if (SSL_session_reused(con))
crypto/openssl/apps/s_server.c
3220
ssl_print_secure_renegotiation_notes(bio_s_out, con);
crypto/openssl/apps/s_server.c
3222
if ((SSL_get_options(con) & SSL_OP_NO_RENEGOTIATION))
crypto/openssl/apps/s_server.c
3230
if (SSL_export_keying_material(con, exportedkeymat,
crypto/openssl/apps/s_server.c
3246
if (BIO_get_ktls_send(SSL_get_wbio(con)))
crypto/openssl/apps/s_server.c
3248
if (BIO_get_ktls_recv(SSL_get_rbio(con)))
crypto/openssl/apps/s_server.c
3260
SSL *con;
crypto/openssl/apps/s_server.c
3299
if ((con = SSL_new(ctx)) == NULL)
crypto/openssl/apps/s_server.c
3303
SSL_set_tlsext_debug_callback(con, tlsext_cb);
crypto/openssl/apps/s_server.c
3304
SSL_set_tlsext_debug_arg(con, bio_s_out);
crypto/openssl/apps/s_server.c
3308
&& !SSL_set_session_id_context(con, context,
crypto/openssl/apps/s_server.c
3310
SSL_free(con);
crypto/openssl/apps/s_server.c
3316
SSL_free(con);
crypto/openssl/apps/s_server.c
3325
SSL_free(con);
crypto/openssl/apps/s_server.c
3332
SSL_set_bio(con, sbio, sbio);
crypto/openssl/apps/s_server.c
3333
SSL_set_accept_state(con);
crypto/openssl/apps/s_server.c
3336
BIO_set_ssl(ssl_bio, con, BIO_CLOSE);
crypto/openssl/apps/s_server.c
3354
BIO_set_callback_ex(SSL_get_rbio(con), bio_dump_callback);
crypto/openssl/apps/s_server.c
3355
BIO_set_callback_arg(SSL_get_rbio(con), (char *)bio_s_out);
crypto/openssl/apps/s_server.c
3360
SSL_set_msg_callback(con, SSL_trace);
crypto/openssl/apps/s_server.c
3363
SSL_set_msg_callback(con, msg_cb);
crypto/openssl/apps/s_server.c
3364
SSL_set_msg_callback_arg(con, bio_s_msg ? bio_s_msg : bio_s_out);
crypto/openssl/apps/s_server.c
3373
edret = SSL_read_early_data(con, buf, bufsize, &readbytes);
crypto/openssl/apps/s_server.c
3377
switch (SSL_get_error(con, 0)) {
crypto/openssl/apps/s_server.c
3397
if (!BIO_should_retry(io) && !SSL_waiting_for_async(con)) {
crypto/openssl/apps/s_server.c
3430
SSL_set_verify(con,
crypto/openssl/apps/s_server.c
3433
i = SSL_renegotiate(con);
crypto/openssl/apps/s_server.c
3436
i = SSL_do_handshake(con);
crypto/openssl/apps/s_server.c
3439
SSL_get_error(con, i));
crypto/openssl/apps/s_server.c
3490
ssl_print_secure_renegotiation_notes(io, con);
crypto/openssl/apps/s_server.c
3496
sk = SSL_get_ciphers(con);
crypto/openssl/apps/s_server.c
3506
p = SSL_get_shared_ciphers(con, buf, bufsize);
crypto/openssl/apps/s_server.c
3525
ssl_print_sigalgs(io, con);
crypto/openssl/apps/s_server.c
3527
ssl_print_groups(io, con, 0);
crypto/openssl/apps/s_server.c
3529
print_ca_names(io, con);
crypto/openssl/apps/s_server.c
3530
BIO_printf(io, (SSL_session_reused(con) ? "---\nReused, " : "---\nNew, "));
crypto/openssl/apps/s_server.c
3531
c = SSL_get_current_cipher(con);
crypto/openssl/apps/s_server.c
3534
SSL_SESSION_print(io, SSL_get_session(con));
crypto/openssl/apps/s_server.c
3536
print_stats(io, SSL_get_SSL_CTX(con));
crypto/openssl/apps/s_server.c
3538
peer = SSL_get0_peer_certificate(con);
crypto/openssl/apps/s_server.c
3630
if (use_sendfile_for_req && !BIO_get_ktls_send(SSL_get_wbio(con))) {
crypto/openssl/apps/s_server.c
3654
i = SSL_sendfile(con, fd, offset, filesize, 0);
crypto/openssl/apps/s_server.c
3685
SSL_renegotiate(con);
crypto/openssl/apps/s_server.c
3693
SSL_renegotiate(con);
crypto/openssl/apps/s_server.c
3698
&& !SSL_waiting_for_async(con)) {
crypto/openssl/apps/s_server.c
3725
do_ssl_shutdown(con);
crypto/openssl/apps/s_server.c
3740
SSL *con;
crypto/openssl/apps/s_server.c
3758
if ((con = SSL_new(ctx)) == NULL)
crypto/openssl/apps/s_server.c
3762
SSL_set_tlsext_debug_callback(con, tlsext_cb);
crypto/openssl/apps/s_server.c
3763
SSL_set_tlsext_debug_arg(con, bio_s_out);
crypto/openssl/apps/s_server.c
3766
&& !SSL_set_session_id_context(con, context,
crypto/openssl/apps/s_server.c
3768
SSL_free(con);
crypto/openssl/apps/s_server.c
3775
SSL_free(con);
crypto/openssl/apps/s_server.c
3780
SSL_set_bio(con, sbio, sbio);
crypto/openssl/apps/s_server.c
3781
SSL_set_accept_state(con);
crypto/openssl/apps/s_server.c
3784
BIO_set_ssl(ssl_bio, con, BIO_CLOSE);
crypto/openssl/apps/s_server.c
3796
BIO_set_callback_ex(SSL_get_rbio(con), bio_dump_callback);
crypto/openssl/apps/s_server.c
3797
BIO_set_callback_arg(SSL_get_rbio(con), (char *)bio_s_out);
crypto/openssl/apps/s_server.c
3802
SSL_set_msg_callback(con, SSL_trace);
crypto/openssl/apps/s_server.c
3805
SSL_set_msg_callback(con, msg_cb);
crypto/openssl/apps/s_server.c
3806
SSL_set_msg_callback_arg(con, bio_s_msg ? bio_s_msg : bio_s_out);
crypto/openssl/apps/s_server.c
3830
print_ssl_summary(con);
crypto/openssl/apps/s_server.c
3883
do_ssl_shutdown(con);
crypto/openssl/apps/s_server.c
72
static void print_connection_info(SSL *con);
crypto/openssl/ssl/bio_ssl.c
471
BIO *ret = NULL, *con = NULL, *ssl = NULL;
crypto/openssl/ssl/bio_ssl.c
473
if ((con = BIO_new(BIO_s_connect())) == NULL)
crypto/openssl/ssl/bio_ssl.c
478
if (!BIO_set_sock_type(con, SOCK_DGRAM))
crypto/openssl/ssl/bio_ssl.c
484
if ((ret = BIO_push(ssl, con)) == NULL)
crypto/openssl/ssl/bio_ssl.c
489
BIO_free(con);
crypto/openssl/test/bad_dtls_test.c
525
SSL *con = NULL;
crypto/openssl/test/bad_dtls_test.c
561
con = SSL_new(ctx);
crypto/openssl/test/bad_dtls_test.c
562
if (!TEST_ptr(con)
crypto/openssl/test/bad_dtls_test.c
563
|| !TEST_true(SSL_set_session(con, sess)))
crypto/openssl/test/bad_dtls_test.c
573
SSL_set_bio(con, rbio, wbio);
crypto/openssl/test/bad_dtls_test.c
589
SSL_set_connect_state(con);
crypto/openssl/test/bad_dtls_test.c
592
ret = SSL_do_handshake(con);
crypto/openssl/test/bad_dtls_test.c
594
|| !TEST_int_eq(SSL_get_error(con, ret), SSL_ERROR_WANT_READ)
crypto/openssl/test/bad_dtls_test.c
599
ret = SSL_do_handshake(con);
crypto/openssl/test/bad_dtls_test.c
601
|| !TEST_int_eq(SSL_get_error(con, ret), SSL_ERROR_WANT_READ)
crypto/openssl/test/bad_dtls_test.c
606
ret = SSL_do_handshake(con);
crypto/openssl/test/bad_dtls_test.c
608
|| !TEST_int_eq(SSL_get_error(con, ret), SSL_ERROR_WANT_READ)
crypto/openssl/test/bad_dtls_test.c
609
|| !TEST_true(send_finished(con, rbio)))
crypto/openssl/test/bad_dtls_test.c
612
ret = SSL_do_handshake(con);
crypto/openssl/test/bad_dtls_test.c
635
ret = SSL_read(con, recv_buf, 2 * sizeof(uint64_t));
crypto/openssl/test/bad_dtls_test.c
655
SSL_free(con);
crypto/openssl/test/clienthellotest.c
129
con = SSL_new(ctx);
crypto/openssl/test/clienthellotest.c
130
if (!TEST_ptr(con))
crypto/openssl/test/clienthellotest.c
141
SSL_set_bio(con, rbio, wbio);
crypto/openssl/test/clienthellotest.c
142
SSL_set_connect_state(con);
crypto/openssl/test/clienthellotest.c
145
if (!TEST_true(SSL_set_session_ticket_ext(con, dummytick,
crypto/openssl/test/clienthellotest.c
150
if (!TEST_int_le(SSL_connect(con), 0)) {
crypto/openssl/test/clienthellotest.c
206
SSL_free(con);
crypto/openssl/test/clienthellotest.c
54
SSL *con = NULL;
crypto/openssl/test/servername_test.c
113
con = SSL_new(ctx);
crypto/openssl/test/servername_test.c
114
if (!TEST_ptr(con))
crypto/openssl/test/servername_test.c
118
SSL_set_tlsext_host_name(con, host);
crypto/openssl/test/servername_test.c
128
SSL_set_bio(con, rbio, wbio);
crypto/openssl/test/servername_test.c
130
if (!TEST_int_le(SSL_connect(con), 0))
crypto/openssl/test/servername_test.c
142
SSL_free(con);
crypto/openssl/test/servername_test.c
150
SSL *con = NULL;
crypto/openssl/test/servername_test.c
165
con = SSL_new(ctx);
crypto/openssl/test/servername_test.c
166
if (!TEST_ptr(con))
crypto/openssl/test/servername_test.c
177
SSL_set_bio(con, rbio, wbio);
crypto/openssl/test/servername_test.c
178
SSL_set_connect_state(con);
crypto/openssl/test/servername_test.c
181
SSL_set_tlsext_host_name(con, host);
crypto/openssl/test/servername_test.c
183
if (!TEST_int_le(SSL_connect(con), 0))
crypto/openssl/test/servername_test.c
195
SSL_free(con);
crypto/openssl/test/servername_test.c
98
SSL *con = NULL;
crypto/openssl/test/sslapitest.c
7608
SSL *con = NULL;
crypto/openssl/test/sslapitest.c
7621
con = SSL_new(ctx);
crypto/openssl/test/sslapitest.c
7622
if (!TEST_ptr(con))
crypto/openssl/test/sslapitest.c
7633
SSL_set_bio(con, rbio, wbio);
crypto/openssl/test/sslapitest.c
7635
if (!TEST_int_le(SSL_connect(con), 0)) {
crypto/openssl/test/sslapitest.c
7649
SSL_free(con);
lib/libutil/fparseln.c
128
if (s && con) { /* Check and eliminate continuations */
lib/libutil/fparseln.c
131
if (*cp == con && !isescaped(ptr, cp, esc)) {
lib/libutil/fparseln.c
171
if (cp[1] == con)
lib/libutil/fparseln.c
175
if (cp[1] != com && cp[1] != con && cp[1] != esc)
lib/libutil/fparseln.c
81
char esc, con, nl, com;
lib/libutil/fparseln.c
95
con = str[1];
sys/dev/coreboot/coreboot.c
436
struct cb_console *con = (struct cb_console *)rec;
sys/dev/coreboot/coreboot.c
438
if (rec_size < sizeof(*con))
sys/dev/coreboot/coreboot.c
440
sc->console_type = con->type;
sys/dev/firewire/fwphyreg.h
117
con:1,
sys/dev/firewire/fwphyreg.h
144
con:1,
sys/dev/mii/miivar.h
199
mii_contype_is_rgmii(mii_contype_t con)
sys/dev/mii/miivar.h
202
return (con >= MII_CONTYPE_RGMII && con <= MII_CONTYPE_RGMII_TXID);
sys/dev/ocs_fc/sli4.c
3214
mcqe->con,
sys/dev/ocs_fc/sli4.h
2984
con:1, /** consumed - command now being executed */
sys/netgraph/bluetooth/hci/ng_hci_cmds.c
500
ng_hci_unit_con_t *con = NULL;
sys/netgraph/bluetooth/hci/ng_hci_cmds.c
508
con = ng_hci_con_by_handle(unit, h);
sys/netgraph/bluetooth/hci/ng_hci_cmds.c
509
if (con == NULL) {
sys/netgraph/bluetooth/hci/ng_hci_cmds.c
514
} else if (con->link_type != NG_HCI_LINK_ACL) {
sys/netgraph/bluetooth/hci/ng_hci_cmds.c
517
con->link_type);
sys/netgraph/bluetooth/hci/ng_hci_cmds.c
520
con->role = rp->role;
sys/netgraph/bluetooth/hci/ng_hci_cmds.c
625
ng_hci_unit_con_p con = NULL;
sys/netgraph/bluetooth/hci/ng_hci_cmds.c
640
con = LIST_FIRST(&unit->con_list);
sys/netgraph/bluetooth/hci/ng_hci_cmds.c
643
if (con->flags & NG_HCI_CON_TIMEOUT_PENDING)
sys/netgraph/bluetooth/hci/ng_hci_cmds.c
644
ng_hci_con_untimeout(con);
sys/netgraph/bluetooth/hci/ng_hci_cmds.c
647
ng_hci_lp_discon_ind(con, 0x16);
sys/netgraph/bluetooth/hci/ng_hci_cmds.c
648
ng_hci_free_con(con);
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
1008
n = ng_hci_get_neighbor(unit, &con->bdaddr, NG_HCI_LINK_ACL);
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
1016
bcopy(&con->bdaddr, &n->bdaddr, sizeof(n->bdaddr));
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
1037
ng_hci_unit_con_p con = NULL;
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
1049
con = ng_hci_con_by_handle(unit, h);
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
1050
if (con == NULL) {
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
1055
} else if (con->link_type != NG_HCI_LINK_ACL) {
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
1058
__func__, NG_NODE_NAME(unit->node), con->link_type, h);
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
1060
} else if (con->state != NG_HCI_CON_OPEN) {
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
1064
con->state, h);
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
1067
error = ng_hci_lp_qos_cfm(con, ep->status);
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
1092
ng_hci_unit_con_p con = NULL;
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
1102
con = ng_hci_con_by_bdaddr(unit, &ep->bdaddr, NG_HCI_LINK_ACL);
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
1103
if (con != NULL)
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
1104
con->role = ep->role;
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
1129
ng_hci_unit_con_p con = NULL;
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
1151
con = ng_hci_con_by_handle(unit, h);
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
1152
if (con != NULL) {
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
1153
con->pending -= p;
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
1154
if (con->pending < 0) {
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
1158
con->con_handle, con->pending, p);
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
1160
con->pending = 0;
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
1164
if (con->link_type != NG_HCI_LINK_SCO)
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
1187
ng_hci_unit_con_p con = NULL;
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
1199
con = ng_hci_con_by_handle(unit, h);
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
1200
if (con == NULL) {
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
1205
} else if (con->link_type != NG_HCI_LINK_ACL) {
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
1209
con->link_type);
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
1212
con->mode = ep->unit_mode;
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
1242
ng_hci_unit_con_p con = NULL;
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
1255
con = ng_hci_con_by_handle(unit, h);
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
1256
if (con == NULL) {
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
1265
n = ng_hci_get_neighbor(unit, &con->bdaddr, NG_HCI_LINK_ACL);
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
1273
bcopy(&con->bdaddr, &n->bdaddr, sizeof(n->bdaddr));
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
1294
ng_hci_unit_con_p con = NULL;
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
1306
con = ng_hci_con_by_handle(unit, h);
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
1307
if (con == NULL) {
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
1312
} else if (con->link_type != NG_HCI_LINK_ACL) {
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
1315
__func__, NG_NODE_NAME(unit->node), con->link_type);
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
1317
} else if (con->state != NG_HCI_CON_OPEN) {
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
1320
__func__, NG_NODE_NAME(unit->node), con->state, h);
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
1323
error = ng_hci_lp_qos_ind(con);
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
256
ng_hci_unit_con_p con = NULL, winner = NULL;
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
270
LIST_FOREACH(con, &unit->con_list, next) {
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
271
reallink_type = (con->link_type == NG_HCI_LINK_SCO)?
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
276
if (NG_BT_ITEMQ_LEN(&con->conq) == 0)
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
279
if (con->pending < min_pending) {
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
280
winner = con;
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
281
min_pending = con->pending;
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
352
sync_con_queue(ng_hci_unit_p unit, ng_hci_unit_con_p con, int completed)
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
359
hook = (con->link_type != NG_HCI_LINK_SCO)? unit->acl : unit->sco;
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
369
state->con_handle = con->con_handle;
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
476
ng_hci_unit_con_p con = NULL;
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
494
LIST_FOREACH(con, &unit->con_list, next)
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
495
if (con->link_type == link_type &&
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
496
con->state == NG_HCI_CON_W4_CONN_COMPLETE &&
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
497
bcmp(&con->bdaddr, &ep->address, sizeof(bdaddr_t)) == 0)
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
517
if (con == NULL) {
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
521
con = ng_hci_new_con(unit, link_type);
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
522
if (con == NULL) {
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
527
con->state = NG_HCI_CON_W4_LP_CON_RSP;
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
528
ng_hci_con_timeout(con);
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
530
bcopy(&ep->address, &con->bdaddr, sizeof(con->bdaddr));
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
531
error = ng_hci_lp_con_ind(con, uclass);
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
533
ng_hci_con_untimeout(con);
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
534
ng_hci_free_con(con);
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
538
} else if ((error = ng_hci_con_untimeout(con)) != 0)
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
546
con->con_handle = NG_HCI_CON_HANDLE(le16toh(ep->handle));
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
547
con->encryption_mode = NG_HCI_ENCRYPTION_MODE_NONE;
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
549
ng_hci_lp_con_cfm(con, ep->status);
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
553
ng_hci_free_con(con);
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
555
con->state = NG_HCI_CON_OPEN;
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
680
ng_hci_unit_con_p con = NULL;
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
697
LIST_FOREACH(con, &unit->con_list, next)
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
698
if (con->link_type == ep->link_type &&
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
699
con->state == NG_HCI_CON_W4_CONN_COMPLETE &&
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
700
bcmp(&con->bdaddr, &ep->bdaddr, sizeof(bdaddr_t)) == 0)
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
719
if (con == NULL) {
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
723
con = ng_hci_new_con(unit, ep->link_type);
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
724
if (con == NULL) {
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
729
bcopy(&ep->bdaddr, &con->bdaddr, sizeof(con->bdaddr));
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
730
} else if ((error = ng_hci_con_untimeout(con)) != 0)
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
738
con->con_handle = NG_HCI_CON_HANDLE(le16toh(ep->con_handle));
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
739
con->encryption_mode = ep->encryption_mode;
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
741
ng_hci_lp_con_cfm(con, ep->status);
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
745
ng_hci_free_con(con);
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
747
con->state = NG_HCI_CON_OPEN;
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
806
ng_hci_unit_con_p con = NULL;
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
857
LIST_FOREACH(con, &unit->con_list, next)
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
858
if (con->link_type == ep->link_type &&
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
859
(con->state == NG_HCI_CON_W4_LP_CON_RSP ||
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
860
con->state == NG_HCI_CON_W4_CONN_COMPLETE) &&
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
861
bcmp(&con->bdaddr, &ep->bdaddr, sizeof(bdaddr_t)) == 0)
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
864
if (con == NULL) {
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
865
con = ng_hci_new_con(unit, ep->link_type);
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
866
if (con != NULL) {
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
867
bcopy(&ep->bdaddr, &con->bdaddr, sizeof(con->bdaddr));
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
869
con->state = NG_HCI_CON_W4_LP_CON_RSP;
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
870
ng_hci_con_timeout(con);
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
872
error = ng_hci_lp_con_ind(con, ep->uclass);
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
874
ng_hci_con_untimeout(con);
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
875
ng_hci_free_con(con);
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
891
ng_hci_unit_con_p con = NULL;
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
910
con = ng_hci_con_by_handle(unit, h);
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
911
if (con != NULL) {
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
912
error = ng_hci_lp_discon_ind(con, ep->reason);
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
915
if (con->flags & NG_HCI_CON_TIMEOUT_PENDING)
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
916
ng_hci_con_untimeout(con);
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
918
ng_hci_free_con(con);
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
937
ng_hci_unit_con_p con = NULL;
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
947
con = ng_hci_con_by_handle(unit, h);
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
950
if (con == NULL) {
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
955
} else if (con->link_type == NG_HCI_LINK_SCO) {
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
959
con->link_type);
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
963
con->encryption_mode = NG_HCI_ENCRYPTION_MODE_P2P;
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
965
con->encryption_mode = NG_HCI_ENCRYPTION_MODE_NONE;
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
972
ng_hci_lp_enc_change(con, con->encryption_mode);
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
984
ng_hci_unit_con_p con = NULL;
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
998
con = ng_hci_con_by_handle(unit, h);
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
999
if (con == NULL) {
sys/netgraph/bluetooth/hci/ng_hci_main.c
1032
con = ng_hci_con_by_handle(unit, con_handle);
sys/netgraph/bluetooth/hci/ng_hci_main.c
1033
if (con == NULL) {
sys/netgraph/bluetooth/hci/ng_hci_main.c
1042
if (con->link_type != NG_HCI_LINK_SCO) {
sys/netgraph/bluetooth/hci/ng_hci_main.c
1046
con_handle, con->link_type);
sys/netgraph/bluetooth/hci/ng_hci_main.c
1052
if (con->state != NG_HCI_CON_OPEN) {
sys/netgraph/bluetooth/hci/ng_hci_main.c
1056
con->state, con_handle);
sys/netgraph/bluetooth/hci/ng_hci_main.c
1062
if (NG_BT_ITEMQ_FULL(&con->conq)) {
sys/netgraph/bluetooth/hci/ng_hci_main.c
1066
m->m_pkthdr.len, NG_BT_ITEMQ_LEN(&con->conq));
sys/netgraph/bluetooth/hci/ng_hci_main.c
1068
NG_BT_ITEMQ_DROP(&con->conq);
sys/netgraph/bluetooth/hci/ng_hci_main.c
1076
NG_BT_ITEMQ_ENQUEUE(&con->conq, item);
sys/netgraph/bluetooth/hci/ng_hci_main.c
864
ng_hci_unit_con_p con = NULL;
sys/netgraph/bluetooth/hci/ng_hci_main.c
913
con = ng_hci_con_by_handle(unit, con_handle);
sys/netgraph/bluetooth/hci/ng_hci_main.c
914
if (con == NULL) {
sys/netgraph/bluetooth/hci/ng_hci_main.c
923
if (con->link_type == NG_HCI_LINK_SCO) {
sys/netgraph/bluetooth/hci/ng_hci_main.c
927
con_handle, con->link_type);
sys/netgraph/bluetooth/hci/ng_hci_main.c
933
if (con->state != NG_HCI_CON_OPEN) {
sys/netgraph/bluetooth/hci/ng_hci_main.c
937
con->state, con_handle);
sys/netgraph/bluetooth/hci/ng_hci_main.c
943
if (NG_BT_ITEMQ_FULL(&con->conq)) {
sys/netgraph/bluetooth/hci/ng_hci_main.c
947
m->m_pkthdr.len, NG_BT_ITEMQ_LEN(&con->conq));
sys/netgraph/bluetooth/hci/ng_hci_main.c
949
NG_BT_ITEMQ_DROP(&con->conq);
sys/netgraph/bluetooth/hci/ng_hci_main.c
957
NG_BT_ITEMQ_ENQUEUE(&con->conq, item);
sys/netgraph/bluetooth/hci/ng_hci_main.c
981
ng_hci_unit_con_p con = NULL;
sys/netgraph/bluetooth/hci/ng_hci_misc.c
146
ng_hci_unit_con_p con = LIST_FIRST(&unit->con_list);
sys/netgraph/bluetooth/hci/ng_hci_misc.c
149
if (con->flags & NG_HCI_CON_TIMEOUT_PENDING)
sys/netgraph/bluetooth/hci/ng_hci_misc.c
150
ng_hci_con_untimeout(con);
sys/netgraph/bluetooth/hci/ng_hci_misc.c
157
ng_hci_lp_discon_ind(con, reason);
sys/netgraph/bluetooth/hci/ng_hci_misc.c
158
ng_hci_free_con(con);
sys/netgraph/bluetooth/hci/ng_hci_misc.c
259
ng_hci_unit_con_p con = NULL;
sys/netgraph/bluetooth/hci/ng_hci_misc.c
263
con = malloc(sizeof(*con), M_NETGRAPH_HCI,
sys/netgraph/bluetooth/hci/ng_hci_misc.c
265
if (con != NULL) {
sys/netgraph/bluetooth/hci/ng_hci_misc.c
266
con->unit = unit;
sys/netgraph/bluetooth/hci/ng_hci_misc.c
267
con->state = NG_HCI_CON_CLOSED;
sys/netgraph/bluetooth/hci/ng_hci_misc.c
283
con->con_handle = fake_con_handle ++;
sys/netgraph/bluetooth/hci/ng_hci_misc.c
287
con->link_type = link_type;
sys/netgraph/bluetooth/hci/ng_hci_misc.c
289
if (con->link_type != NG_HCI_LINK_SCO)
sys/netgraph/bluetooth/hci/ng_hci_misc.c
294
NG_BT_ITEMQ_INIT(&con->conq, num_pkts);
sys/netgraph/bluetooth/hci/ng_hci_misc.c
296
ng_callout_init(&con->con_timo);
sys/netgraph/bluetooth/hci/ng_hci_misc.c
298
LIST_INSERT_HEAD(&unit->con_list, con, next);
sys/netgraph/bluetooth/hci/ng_hci_misc.c
301
return (con);
sys/netgraph/bluetooth/hci/ng_hci_misc.c
309
ng_hci_free_con(ng_hci_unit_con_p con)
sys/netgraph/bluetooth/hci/ng_hci_misc.c
311
LIST_REMOVE(con, next);
sys/netgraph/bluetooth/hci/ng_hci_misc.c
318
if (con->link_type != NG_HCI_LINK_SCO)
sys/netgraph/bluetooth/hci/ng_hci_misc.c
319
NG_HCI_BUFF_ACL_FREE(con->unit->buffer, con->pending);
sys/netgraph/bluetooth/hci/ng_hci_misc.c
321
NG_HCI_BUFF_SCO_FREE(con->unit->buffer, con->pending);
sys/netgraph/bluetooth/hci/ng_hci_misc.c
323
NG_BT_ITEMQ_DESTROY(&con->conq);
sys/netgraph/bluetooth/hci/ng_hci_misc.c
325
bzero(con, sizeof(*con));
sys/netgraph/bluetooth/hci/ng_hci_misc.c
326
free(con, M_NETGRAPH_HCI);
sys/netgraph/bluetooth/hci/ng_hci_misc.c
336
ng_hci_unit_con_p con = NULL;
sys/netgraph/bluetooth/hci/ng_hci_misc.c
338
LIST_FOREACH(con, &unit->con_list, next)
sys/netgraph/bluetooth/hci/ng_hci_misc.c
339
if (con->con_handle == con_handle)
sys/netgraph/bluetooth/hci/ng_hci_misc.c
342
return (con);
sys/netgraph/bluetooth/hci/ng_hci_misc.c
352
ng_hci_unit_con_p con = NULL;
sys/netgraph/bluetooth/hci/ng_hci_misc.c
354
LIST_FOREACH(con, &unit->con_list, next)
sys/netgraph/bluetooth/hci/ng_hci_misc.c
355
if (con->link_type == link_type &&
sys/netgraph/bluetooth/hci/ng_hci_misc.c
356
bcmp(&con->bdaddr, bdaddr, sizeof(bdaddr_t)) == 0)
sys/netgraph/bluetooth/hci/ng_hci_misc.c
359
return (con);
sys/netgraph/bluetooth/hci/ng_hci_misc.c
407
ng_hci_con_timeout(ng_hci_unit_con_p con)
sys/netgraph/bluetooth/hci/ng_hci_misc.c
409
if (con->flags & NG_HCI_CON_TIMEOUT_PENDING)
sys/netgraph/bluetooth/hci/ng_hci_misc.c
412
__func__, NG_NODE_NAME(con->unit->node));
sys/netgraph/bluetooth/hci/ng_hci_misc.c
414
con->flags |= NG_HCI_CON_TIMEOUT_PENDING;
sys/netgraph/bluetooth/hci/ng_hci_misc.c
415
ng_callout(&con->con_timo, con->unit->node, NULL,
sys/netgraph/bluetooth/hci/ng_hci_misc.c
418
con->con_handle);
sys/netgraph/bluetooth/hci/ng_hci_misc.c
428
ng_hci_con_untimeout(ng_hci_unit_con_p con)
sys/netgraph/bluetooth/hci/ng_hci_misc.c
430
if (!(con->flags & NG_HCI_CON_TIMEOUT_PENDING))
sys/netgraph/bluetooth/hci/ng_hci_misc.c
432
"%s: %s - No connection timeout!\n", __func__, NG_NODE_NAME(con->unit->node));
sys/netgraph/bluetooth/hci/ng_hci_misc.c
434
if (ng_uncallout(&con->con_timo, con->unit->node) < 1)
sys/netgraph/bluetooth/hci/ng_hci_misc.c
437
con->flags &= ~NG_HCI_CON_TIMEOUT_PENDING;
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
1032
con->flags |= NG_HCI_CON_NOTIFY_ACL;
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
1034
con->flags |= NG_HCI_CON_NOTIFY_SCO;
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
1036
con->state = NG_HCI_CON_W4_CONN_COMPLETE;
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
1037
ng_hci_con_timeout(con);
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
1054
ng_hci_free_con(con);
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
1068
con->flags |= NG_HCI_CON_NOTIFY_ACL;
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
1070
con->flags |= NG_HCI_CON_NOTIFY_SCO;
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
1078
__func__, NG_NODE_NAME(unit->node), con->state);
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
1092
ng_hci_lp_discon_ind(ng_hci_unit_con_p con, int reason)
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
1094
ng_hci_unit_p unit = con->unit;
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
1106
if (con->link_type != NG_HCI_LINK_SCO) {
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
1115
ep->link_type = con->link_type;
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
1116
ep->con_handle = con->con_handle;
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
1133
ep->link_type = con->link_type;
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
1134
ep->con_handle = con->con_handle;
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
1157
ng_hci_unit_con_p con = NULL;
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
1183
con = ng_hci_con_by_handle(unit, ep->con_handle);
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
1184
if (con == NULL) {
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
1193
if (con->link_type != NG_HCI_LINK_ACL) {
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
1195
__func__, NG_NODE_NAME(unit->node), con->link_type);
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
1201
if (con->state != NG_HCI_CON_OPEN) {
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
1204
__func__, NG_NODE_NAME(unit->node), con->state,
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
1205
con->con_handle);
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
1241
con->flags |= NG_HCI_CON_NOTIFY_ACL;
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
1243
con->flags |= NG_HCI_CON_NOTIFY_SCO;
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
1263
ng_hci_lp_qos_cfm(ng_hci_unit_con_p con, int status)
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
1265
ng_hci_unit_p unit = con->unit;
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
1270
if (con->flags & NG_HCI_CON_NOTIFY_ACL) {
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
1277
ep->con_handle = con->con_handle;
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
1287
con->flags &= ~NG_HCI_CON_NOTIFY_ACL;
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
129
ng_hci_unit_con_p con = NULL;
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
1290
if (con->flags & NG_HCI_CON_NOTIFY_SCO) {
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
1297
ep->con_handle = con->con_handle;
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
1307
con->flags &= ~NG_HCI_CON_NOTIFY_SCO;
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
1318
ng_hci_lp_qos_ind(ng_hci_unit_con_p con)
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
1320
ng_hci_unit_p unit = con->unit;
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
1337
ep->con_handle = con->con_handle;
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
1352
ep->con_handle = con->con_handle;
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
1371
ng_hci_unit_con_p con = NULL;
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
1379
con = ng_hci_con_by_handle(unit, con_handle);
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
1381
if (con == NULL) {
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
1388
if (!(con->flags & NG_HCI_CON_TIMEOUT_PENDING)) {
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
1391
__func__, NG_NODE_NAME(node), con_handle, con->state,
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
1392
con->flags);
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
1396
con->flags &= ~NG_HCI_CON_TIMEOUT_PENDING;
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
1411
switch (con->state) {
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
1416
ng_hci_lp_con_cfm(con, 0xee);
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
1422
__func__, NG_NODE_NAME(node), con->state);
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
1426
ng_hci_free_con(con);
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
163
con = ng_hci_con_by_bdaddr(unit, &ep->bdaddr, NG_HCI_LINK_ACL);
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
164
if (con != NULL) {
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
165
switch (con->state) {
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
172
con->flags |= NG_HCI_CON_NOTIFY_ACL;
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
174
con->flags |= NG_HCI_CON_NOTIFY_SCO;
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
191
cfm->link_type = con->link_type;
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
192
cfm->con_handle = con->con_handle;
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
193
bcopy(&con->bdaddr, &cfm->bdaddr,
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
215
__func__, NG_NODE_NAME(unit->node), con->state);
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
228
con = ng_hci_new_con(unit, NG_HCI_LINK_ACL);
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
229
if (con == NULL) {
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
234
bcopy(&ep->bdaddr, &con->bdaddr, sizeof(con->bdaddr));
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
242
ng_hci_free_con(con);
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
296
con->flags |= NG_HCI_CON_NOTIFY_ACL;
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
298
con->flags |= NG_HCI_CON_NOTIFY_SCO;
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
300
con->state = NG_HCI_CON_W4_CONN_COMPLETE;
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
301
ng_hci_con_timeout(con);
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
493
ng_hci_unit_con_p con = NULL;
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
530
con = ng_hci_con_by_bdaddr(unit, &ep->bdaddr, link_type);
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
531
if (con != NULL) {
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
532
switch (con->state) {
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
539
con->flags |= NG_HCI_CON_NOTIFY_ACL;
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
541
con->flags |= NG_HCI_CON_NOTIFY_SCO;
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
558
cfm->link_type = con->link_type;
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
559
cfm->con_handle = con->con_handle;
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
560
bcopy(&con->bdaddr, &cfm->bdaddr,
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
582
__func__, NG_NODE_NAME(unit->node), con->state);
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
595
con = ng_hci_new_con(unit, link_type);
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
596
if (con == NULL) {
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
601
bcopy(&ep->bdaddr, &con->bdaddr, sizeof(con->bdaddr));
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
609
ng_hci_free_con(con);
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
638
con->flags |= NG_HCI_CON_NOTIFY_ACL;
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
640
con->flags |= NG_HCI_CON_NOTIFY_SCO;
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
642
con->state = NG_HCI_CON_W4_CONN_COMPLETE;
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
643
ng_hci_con_timeout(con);
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
671
ng_hci_unit_con_p con = NULL;
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
697
con = ng_hci_con_by_handle(unit, ep->con_handle);
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
698
if (con == NULL) {
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
707
if (con->state != NG_HCI_CON_OPEN) {
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
710
__func__, NG_NODE_NAME(unit->node), con->state,
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
755
ng_hci_lp_con_cfm(ng_hci_unit_con_p con, int status)
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
757
ng_hci_unit_p unit = con->unit;
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
768
if (con->link_type != NG_HCI_LINK_SCO &&
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
769
con->flags & NG_HCI_CON_NOTIFY_ACL) {
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
776
ep->link_type = con->link_type;
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
777
ep->con_handle = con->con_handle;
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
778
bcopy(&con->bdaddr, &ep->bdaddr,
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
789
con->flags &= ~NG_HCI_CON_NOTIFY_ACL;
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
792
if (con->flags & NG_HCI_CON_NOTIFY_SCO) {
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
799
ep->link_type = con->link_type;
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
800
ep->con_handle = con->con_handle;
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
801
bcopy(&con->bdaddr, &ep->bdaddr,
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
812
con->flags &= ~NG_HCI_CON_NOTIFY_SCO;
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
819
ng_hci_lp_enc_change(ng_hci_unit_con_p con, int status)
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
821
ng_hci_unit_p unit = con->unit;
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
826
if (con->link_type != NG_HCI_LINK_SCO) {
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
833
ep->link_type = con->link_type;
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
834
ep->con_handle = con->con_handle;
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
852
ng_hci_lp_con_ind(ng_hci_unit_con_p con, u_int8_t *uclass)
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
854
ng_hci_unit_p unit = con->unit;
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
865
if (con->link_type != NG_HCI_LINK_SCO)
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
877
ep->link_type = con->link_type;
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
879
bcopy(&con->bdaddr, &ep->bdaddr, sizeof(ep->bdaddr));
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
908
ng_hci_unit_con_p con = NULL;
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
966
LIST_FOREACH(con, &unit->con_list, next)
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
967
if (con->link_type == ep->link_type &&
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
968
(con->state == NG_HCI_CON_W4_LP_CON_RSP ||
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
969
con->state == NG_HCI_CON_W4_CONN_COMPLETE) &&
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
970
bcmp(&con->bdaddr, &ep->bdaddr, sizeof(bdaddr_t)) == 0)
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
973
if (con == NULL) {
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
985
if ((error = ng_hci_con_untimeout(con)) != 0)
sys/netgraph/bluetooth/hci/ng_hci_ulpi.c
988
switch (con->state) {
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.c
103
(void) ng_l2cap_lp_send(con, NG_L2CAP_SIGNAL_CID, m);
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.c
108
(void) ng_l2cap_lp_send(con,
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.c
109
(con->linktype == NG_HCI_LINK_ACL)?
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.c
118
error = ng_l2cap_lp_send(con, NG_L2CAP_SIGNAL_CID, m);
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.c
128
error = ng_l2cap_lp_send(con, NG_L2CAP_SIGNAL_CID, m);
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.c
141
error = ng_l2cap_lp_send(con, NG_L2CAP_SIGNAL_CID, m);
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.c
153
error = ng_l2cap_lp_send(con, NG_L2CAP_SIGNAL_CID, m);
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.c
163
error = ng_l2cap_lp_send(con, NG_L2CAP_SIGNAL_CID, m);
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.c
174
error = ng_l2cap_lp_send(con, NG_L2CAP_SIGNAL_CID, m);
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.c
176
ng_l2cap_l2ca_ping_rsp(con, cmd->token,
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.c
186
error = ng_l2cap_lp_send(con, NG_L2CAP_SIGNAL_CID, m);
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.c
188
ng_l2cap_l2ca_get_info_rsp(con, cmd->token,
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.c
210
error = ng_l2cap_lp_send(con, cmd->ch->dcid, m);
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.c
220
error = ng_l2cap_lp_send(con, NG_L2CAP_LESIGNAL_CID, m);
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.c
230
__func__, NG_NODE_NAME(con->l2cap->node), cmd->code);
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.c
242
ng_l2cap_con_fail(ng_l2cap_con_p con, u_int16_t result)
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.c
244
ng_l2cap_p l2cap = con->l2cap;
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.c
253
con->flags |= NG_L2CAP_CON_DYING;
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.c
256
while (!TAILQ_EMPTY(&con->cmd_list)) {
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.c
257
cmd = TAILQ_FIRST(&con->cmd_list);
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.c
263
KASSERT((cmd->con == con),
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.c
297
ng_l2cap_l2ca_ping_rsp(cmd->con, cmd->token,
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.c
302
ng_l2cap_l2ca_get_info_rsp(cmd->con, cmd->token,
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.c
327
if (ch->con == con)
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.c
331
ng_l2cap_free_con(con);
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.c
343
ng_l2cap_con_p con = NULL;
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.c
355
con = ng_l2cap_con_by_handle(l2cap, con_handle);
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.c
356
if (con == NULL) {
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.c
363
cmd = ng_l2cap_cmd_by_ident(con, ident);
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.c
391
ng_l2cap_l2ca_ping_rsp(cmd->con, cmd->token,
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.c
397
ng_l2cap_l2ca_get_info_rsp(cmd->con, cmd->token,
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.c
65
ng_l2cap_con_wakeup(ng_l2cap_con_p con)
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.c
72
TAILQ_FOREACH(cmd, &con->cmd_list, next) {
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.c
73
KASSERT((cmd->con == con),
sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.c
75
__func__, NG_NODE_NAME(con->l2cap->node)));
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
100
if (con->rx_pkt->m_pkthdr.len < sizeof(*hdr)) {
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
1004
ng_l2cap_link_cmd(con, cmd);
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
1005
ng_l2cap_lp_deliver(con);
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
1011
send_l2cap_reject(con, ident, NG_L2CAP_REJ_INVALID_CID, 0, scid, dcid);
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
1021
ng_l2cap_process_discon_rsp(ng_l2cap_con_p con, u_int8_t ident)
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
1023
ng_l2cap_p l2cap = con->l2cap;
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
1030
NG_L2CAP_M_PULLUP(con->rx_pkt, sizeof(*cp));
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
1031
if (con->rx_pkt == NULL)
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
1034
cp = mtod(con->rx_pkt, ng_l2cap_discon_rsp_cp *);
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
1038
NG_FREE_M(con->rx_pkt);
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
104
con->rx_pkt->m_pkthdr.len);
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
1041
cmd = ng_l2cap_cmd_by_ident(con, ident);
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
1046
con->con_handle);
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
1090
ng_l2cap_process_echo_req(ng_l2cap_con_p con, u_int8_t ident)
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
1092
ng_l2cap_p l2cap = con->l2cap;
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
1096
con->rx_pkt = ng_l2cap_prepend(con->rx_pkt, sizeof(*hdr));
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
1097
if (con->rx_pkt == NULL) {
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
110
NG_L2CAP_M_PULLUP(con->rx_pkt, sizeof(*hdr));
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
1105
hdr = mtod(con->rx_pkt, ng_l2cap_cmd_hdr_t *);
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
1108
hdr->length = htole16(con->rx_pkt->m_pkthdr.len - sizeof(*hdr));
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
111
if (con->rx_pkt == NULL)
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
1110
cmd = ng_l2cap_new_cmd(con, NULL, ident, NG_L2CAP_ECHO_RSP, 0);
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
1112
NG_FREE_M(con->rx_pkt);
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
1118
cmd->aux = con->rx_pkt;
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
1119
con->rx_pkt = NULL;
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
1120
ng_l2cap_link_cmd(con, cmd);
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
1121
ng_l2cap_lp_deliver(con);
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
1131
ng_l2cap_process_echo_rsp(ng_l2cap_con_p con, u_int8_t ident)
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
1133
ng_l2cap_p l2cap = con->l2cap;
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
1138
cmd = ng_l2cap_cmd_by_ident(con, ident);
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
114
hdr = mtod(con->rx_pkt, ng_l2cap_hdr_t *);
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
1142
NG_FREE_M(con->rx_pkt);
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
1148
error = ng_l2cap_l2ca_ping_rsp(cmd->con, cmd->token,
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
1149
NG_L2CAP_SUCCESS, con->rx_pkt);
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
1152
con->rx_pkt = NULL;
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
1158
NG_FREE_M(con->rx_pkt);
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
1169
ng_l2cap_process_info_req(ng_l2cap_con_p con, u_int8_t ident)
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
1171
ng_l2cap_p l2cap = con->l2cap;
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
1176
NG_L2CAP_M_PULLUP(con->rx_pkt, sizeof(ng_l2cap_info_req_cp));
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
1177
if (con->rx_pkt == NULL)
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
1180
type = le16toh(mtod(con->rx_pkt, ng_l2cap_info_req_cp *)->type);
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
1181
NG_FREE_M(con->rx_pkt);
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
1183
cmd = ng_l2cap_new_cmd(con, NULL, ident, NG_L2CAP_INFO_RSP, 0);
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
119
if (hdr->length != con->rx_pkt->m_pkthdr.len - sizeof(*hdr)) {
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
1206
ng_l2cap_link_cmd(con, cmd);
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
1207
ng_l2cap_lp_deliver(con);
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
1217
ng_l2cap_process_info_rsp(ng_l2cap_con_p con, u_int8_t ident)
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
1219
ng_l2cap_p l2cap = con->l2cap;
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
1225
NG_L2CAP_M_PULLUP(con->rx_pkt, sizeof(*cp));
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
1226
if (con->rx_pkt == NULL)
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
1229
cp = mtod(con->rx_pkt, ng_l2cap_info_rsp_cp *);
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
123
con->rx_pkt->m_pkthdr.len - sizeof(*hdr));
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
1232
m_adj(con->rx_pkt, sizeof(*cp));
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
1235
cmd = ng_l2cap_cmd_by_ident(con, ident);
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
1241
NG_FREE_M(con->rx_pkt);
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
1248
NG_FREE_M(con->rx_pkt);
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
1257
if (con->rx_pkt->m_pkthdr.len == sizeof(u_int16_t))
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
1258
*mtod(con->rx_pkt, u_int16_t *) =
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
1259
le16toh(*mtod(con->rx_pkt,u_int16_t *));
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
1267
con->rx_pkt->m_pkthdr.len);
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
1279
error = ng_l2cap_l2ca_get_info_rsp(cmd->con, cmd->token,
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
1280
cp->result, con->rx_pkt);
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
1283
con->rx_pkt = NULL;
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
1293
send_l2cap_reject(ng_l2cap_con_p con, u_int8_t ident, u_int16_t reason,
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
1298
cmd = ng_l2cap_new_cmd(con, NULL, ident, NG_L2CAP_CMD_REJ, 0);
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
131
m_adj(con->rx_pkt, sizeof(*hdr));
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
1310
ng_l2cap_link_cmd(con, cmd);
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
1311
ng_l2cap_lp_deliver(con);
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
132
error = ng_l2cap_process_signal_cmd(con);
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
1321
send_l2cap_con_rej(ng_l2cap_con_p con, u_int8_t ident, u_int16_t scid,
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
1326
cmd = ng_l2cap_new_cmd(con, NULL, ident, NG_L2CAP_CON_RSP, 0);
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
1338
ng_l2cap_link_cmd(con, cmd);
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
1339
ng_l2cap_lp_deliver(con);
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
1349
send_l2cap_cfg_rsp(ng_l2cap_con_p con, u_int8_t ident, u_int16_t scid,
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
135
m_adj(con->rx_pkt, sizeof(*hdr));
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
1354
cmd = ng_l2cap_new_cmd(con, NULL, ident, NG_L2CAP_CFG_RSP, 0);
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
136
error = ng_l2cap_process_lesignal_cmd(con);
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
1369
ng_l2cap_link_cmd(con, cmd);
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
1370
ng_l2cap_lp_deliver(con);
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
1376
send_l2cap_param_urs(ng_l2cap_con_p con, u_int8_t ident,
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
1381
cmd = ng_l2cap_new_cmd(con, NULL, ident,
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
139
error = ng_l2cap_l2ca_clt_receive(con);
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
1396
ng_l2cap_link_cmd(con, cmd);
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
1397
ng_l2cap_lp_deliver(con);
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
143
error = ng_l2cap_l2ca_receive(con);
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
149
NG_FREE_M(con->rx_pkt);
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
163
ng_l2cap_process_signal_cmd(ng_l2cap_con_p con)
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
165
ng_l2cap_p l2cap = con->l2cap;
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
169
while (con->rx_pkt != NULL) {
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
171
if (con->rx_pkt->m_pkthdr.len < sizeof(*hdr)) {
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
175
con->rx_pkt->m_pkthdr.len);
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
176
NG_FREE_M(con->rx_pkt);
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
182
NG_L2CAP_M_PULLUP(con->rx_pkt, sizeof(*hdr));
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
183
if (con->rx_pkt == NULL)
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
186
hdr = mtod(con->rx_pkt, ng_l2cap_cmd_hdr_t *);
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
188
m_adj(con->rx_pkt, sizeof(*hdr));
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
191
if (con->rx_pkt->m_pkthdr.len < hdr->length) {
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
197
con->rx_pkt->m_pkthdr.len);
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
198
NG_FREE_M(con->rx_pkt);
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
204
if (con->rx_pkt->m_pkthdr.len > hdr->length)
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
205
m = m_split(con->rx_pkt, hdr->length, M_NOWAIT);
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
212
ng_l2cap_process_cmd_rej(con, hdr->ident);
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
216
ng_l2cap_process_con_req(con, hdr->ident);
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
220
ng_l2cap_process_con_rsp(con, hdr->ident);
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
224
ng_l2cap_process_cfg_req(con, hdr->ident);
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
228
ng_l2cap_process_cfg_rsp(con, hdr->ident);
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
232
ng_l2cap_process_discon_req(con, hdr->ident);
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
236
ng_l2cap_process_discon_rsp(con, hdr->ident);
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
240
ng_l2cap_process_echo_req(con, hdr->ident);
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
244
ng_l2cap_process_echo_rsp(con, hdr->ident);
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
248
ng_l2cap_process_info_req(con, hdr->ident);
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
252
ng_l2cap_process_info_rsp(con, hdr->ident);
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
266
send_l2cap_reject(con, hdr->ident,
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
268
NG_FREE_M(con->rx_pkt);
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
272
con->rx_pkt = m;
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
278
ng_l2cap_process_lesignal_cmd(ng_l2cap_con_p con)
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
280
ng_l2cap_p l2cap = con->l2cap;
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
284
while (con->rx_pkt != NULL) {
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
286
if (con->rx_pkt->m_pkthdr.len < sizeof(*hdr)) {
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
290
con->rx_pkt->m_pkthdr.len);
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
291
NG_FREE_M(con->rx_pkt);
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
297
NG_L2CAP_M_PULLUP(con->rx_pkt, sizeof(*hdr));
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
298
if (con->rx_pkt == NULL)
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
301
hdr = mtod(con->rx_pkt, ng_l2cap_cmd_hdr_t *);
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
303
m_adj(con->rx_pkt, sizeof(*hdr));
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
306
if (con->rx_pkt->m_pkthdr.len < hdr->length) {
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
312
con->rx_pkt->m_pkthdr.len);
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
313
NG_FREE_M(con->rx_pkt);
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
319
if (con->rx_pkt->m_pkthdr.len > hdr->length)
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
320
m = m_split(con->rx_pkt, hdr->length, M_NOWAIT);
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
327
ng_l2cap_process_cmd_rej(con, hdr->ident);
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
330
ng_l2cap_process_cmd_urq(con, hdr->ident);
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
333
ng_l2cap_process_cmd_urs(con, hdr->ident);
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
348
send_l2cap_reject(con, hdr->ident,
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
350
NG_FREE_M(con->rx_pkt);
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
354
con->rx_pkt = m;
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
360
static int ng_l2cap_process_cmd_urq(ng_l2cap_con_p con, uint8_t ident)
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
363
send_l2cap_param_urs(con, ident, NG_L2CAP_UPDATE_PARAM_ACCEPT);
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
364
NG_FREE_M(con->rx_pkt);
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
368
static int ng_l2cap_process_cmd_urs(ng_l2cap_con_p con, uint8_t ident)
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
373
NG_FREE_M(con->rx_pkt);
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
382
ng_l2cap_process_cmd_rej(ng_l2cap_con_p con, u_int8_t ident)
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
384
ng_l2cap_p l2cap = con->l2cap;
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
389
NG_L2CAP_M_PULLUP(con->rx_pkt, sizeof(*cp));
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
390
if (con->rx_pkt == NULL)
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
393
cp = mtod(con->rx_pkt, ng_l2cap_cmd_rej_cp *);
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
397
cmd = ng_l2cap_cmd_by_ident(con, ident);
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
401
NG_FREE_M(con->rx_pkt);
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
423
ng_l2cap_l2ca_ping_rsp(cmd->con, cmd->token,
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
428
ng_l2cap_l2ca_get_info_rsp(cmd->con, cmd->token,
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
446
NG_FREE_M(con->rx_pkt);
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
456
ng_l2cap_process_con_req(ng_l2cap_con_p con, u_int8_t ident)
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
458
ng_l2cap_p l2cap = con->l2cap;
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
459
struct mbuf *m = con->rx_pkt;
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
476
con->rx_pkt = NULL;
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
481
else if( con->linktype != NG_HCI_LINK_ACL)
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
491
ch = ng_l2cap_new_chan(l2cap, con, psm, idtype);
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
494
return (send_l2cap_con_rej(con, ident, 0, dcid,
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
506
send_l2cap_con_rej(con, ident, ch->scid, dcid,
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
520
ng_l2cap_process_con_rsp(ng_l2cap_con_p con, u_int8_t ident)
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
522
ng_l2cap_p l2cap = con->l2cap;
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
523
struct mbuf *m = con->rx_pkt;
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
541
con->rx_pkt = NULL;
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
544
cmd = ng_l2cap_cmd_by_ident(con, ident);
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
549
con->con_handle);
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
633
send_l2cap_reject(con, ident, NG_L2CAP_REJ_INVALID_CID, 0, scid, dcid);
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
643
ng_l2cap_process_cfg_req(ng_l2cap_con_p con, u_int8_t ident)
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
645
ng_l2cap_p l2cap = con->l2cap;
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
646
struct mbuf *m = con->rx_pkt;
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
655
con->rx_pkt = NULL;
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
747
error = send_l2cap_cfg_rsp(con, ident, ch->dcid, result, m);
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
766
send_l2cap_reject(con, ident, NG_L2CAP_REJ_INVALID_CID, 0, 0, dcid);
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
776
ng_l2cap_process_cfg_rsp(ng_l2cap_con_p con, u_int8_t ident)
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
778
ng_l2cap_p l2cap = con->l2cap;
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
779
struct mbuf *m = con->rx_pkt;
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
788
con->rx_pkt = NULL;
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
800
cmd = ng_l2cap_cmd_by_ident(con, ident);
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
805
con->con_handle);
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
920
send_l2cap_reject(con, ident, NG_L2CAP_REJ_INVALID_CID, 0, scid, 0);
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
93
ng_l2cap_receive(ng_l2cap_con_p con)
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
930
ng_l2cap_process_discon_req(ng_l2cap_con_p con, u_int8_t ident)
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
932
ng_l2cap_p l2cap = con->l2cap;
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
939
NG_L2CAP_M_PULLUP(con->rx_pkt, sizeof(*cp));
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
940
if (con->rx_pkt == NULL)
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
943
cp = mtod(con->rx_pkt, ng_l2cap_discon_req_cp *);
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
947
NG_FREE_M(con->rx_pkt);
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
95
ng_l2cap_p l2cap = con->l2cap;
sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c
992
cmd = ng_l2cap_new_cmd(con, NULL, ident, NG_L2CAP_DISCON_RSP, 0);
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
105
ng_l2cap_free_con(con);
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
114
con->flags |= NG_L2CAP_CON_OUTGOING;
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
115
con->state = NG_L2CAP_W4_LP_CON_CFM;
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
116
ng_l2cap_lp_timeout(con);
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
120
if (ng_l2cap_lp_untimeout(con) == 0)
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
121
ng_l2cap_free_con(con);
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
143
ng_l2cap_con_p con = NULL;
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
157
con = ng_l2cap_con_by_addr(l2cap, &ep->bdaddr, ep->link_type);
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
158
if (con == NULL) {
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
167
if (con->state != NG_L2CAP_W4_LP_CON_CFM) {
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
171
__func__, NG_NODE_NAME(l2cap->node), con->state,
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
172
con->con_handle);
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
184
if ((error = ng_l2cap_lp_untimeout(con)) != 0)
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
188
con->state = NG_L2CAP_CON_OPEN;
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
189
con->con_handle = ep->con_handle;
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
190
ng_l2cap_lp_deliver(con);
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
192
ng_l2cap_con_fail(con, ep->status);
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
212
ng_l2cap_con_p con = NULL;
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
227
con = ng_l2cap_con_by_addr(l2cap, &ep->bdaddr, ep->link_type);
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
228
if (con != NULL) {
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
232
__func__, NG_NODE_NAME(l2cap->node), con->state,
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
233
con->con_handle);
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
248
con = ng_l2cap_new_con(l2cap, &ep->bdaddr, ep->link_type);
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
249
if (con == NULL)
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
256
ng_l2cap_free_con(con);
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
266
con->state = NG_L2CAP_W4_LP_CON_CFM;
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
267
ng_l2cap_lp_timeout(con);
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
271
if (ng_l2cap_lp_untimeout(con) == 0)
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
272
ng_l2cap_free_con(con);
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
293
ng_l2cap_con_p con = NULL;
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
308
con = ng_l2cap_con_by_handle(l2cap, ep->con_handle);
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
309
if (con == NULL) {
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
319
if (con->state != NG_L2CAP_CON_OPEN) {
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
323
__func__, NG_NODE_NAME(l2cap->node), con->state,
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
324
con->con_handle);
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
336
if (con->flags & NG_L2CAP_CON_AUTO_DISCON_TIMO)
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
337
if ((error = ng_l2cap_discon_untimeout(con)) != 0)
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
340
ng_l2cap_con_fail(con, ep->reason);
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
355
ng_l2cap_con_p con = NULL;
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
359
con = ng_l2cap_con_by_handle(l2cap, con_handle);
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
360
if (con == NULL) {
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
370
if (con->state != NG_L2CAP_CON_OPEN) {
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
374
__func__, NG_NODE_NAME(l2cap->node), con->state,
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
375
con->con_handle);
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
444
ng_l2cap_con_p con = NULL;
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
459
con = ng_l2cap_con_by_handle(l2cap, ep->con_handle);
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
460
if (con == NULL) {
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
470
if (con->state != NG_L2CAP_CON_OPEN) {
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
474
__func__, NG_NODE_NAME(l2cap->node), con->state,
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
475
con->con_handle);
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
489
ng_l2cap_con_p con = NULL;
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
504
con = ng_l2cap_con_by_handle(l2cap, ep->con_handle);
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
505
if (con == NULL) {
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
515
if (con->state != NG_L2CAP_CON_OPEN) {
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
519
__func__, NG_NODE_NAME(l2cap->node), con->state,
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
520
con->con_handle);
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
525
con->encryption = ep->status;
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
528
if((ch->con->con_handle == ep->con_handle) &&
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
529
(ch->con->linktype == ep->link_type))
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
543
ng_l2cap_lp_send(ng_l2cap_con_p con, u_int16_t dcid, struct mbuf *m0)
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
545
ng_l2cap_p l2cap = con->l2cap;
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
549
int len, flag = (con->linktype == NG_HCI_LINK_ACL) ? NG_HCI_PACKET_START : NG_HCI_LE_PACKET_START;
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
551
KASSERT((con->tx_pkt == NULL),
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
608
con->con_handle, flag, 0));
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
613
if (con->tx_pkt == NULL)
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
614
con->tx_pkt = m_last = m0;
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
622
__func__, NG_NODE_NAME(l2cap->node), con->con_handle,
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
635
while (con->tx_pkt != NULL) {
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
636
m = con->tx_pkt->m_nextpkt;
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
637
m_freem(con->tx_pkt);
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
638
con->tx_pkt = m;
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
663
ng_l2cap_con_p con = NULL;
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
695
con = ng_l2cap_con_by_handle(l2cap, con_handle);
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
696
if (con == NULL) {
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
706
if (con->state != NG_L2CAP_CON_OPEN) {
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
709
__func__, NG_NODE_NAME(l2cap->node), con->state);
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
717
if (con->rx_pkt != NULL) {
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
72
ng_l2cap_con_p con = NULL;
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
721
con->rx_pkt->m_pkthdr.len, con->rx_pkt_len);
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
722
NG_FREE_M(con->rx_pkt);
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
723
con->rx_pkt_len = 0;
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
748
con->rx_pkt = m;
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
749
con->rx_pkt_len = le16toh(l2cap_hdr->length)+sizeof(*l2cap_hdr);
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
751
if (con->rx_pkt == NULL) {
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
755
con->con_handle);
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
76
con = ng_l2cap_con_by_addr(l2cap, bdaddr, type);
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
760
m_cat(con->rx_pkt, m);
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
761
con->rx_pkt->m_pkthdr.len += length;
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
77
if (con != NULL) {
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
770
con->rx_pkt_len -= length;
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
771
if (con->rx_pkt_len < 0) {
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
775
con->rx_pkt->m_pkthdr.len, con->rx_pkt_len);
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
776
NG_FREE_M(con->rx_pkt);
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
777
con->rx_pkt_len = 0;
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
778
} else if (con->rx_pkt_len == 0) {
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
780
error = ng_l2cap_receive(con);
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
781
con->rx_pkt = NULL;
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
782
con->rx_pkt_len = 0;
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
798
ng_l2cap_lp_deliver(ng_l2cap_con_p con)
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
800
ng_l2cap_p l2cap = con->l2cap;
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
805
if (con->state != NG_L2CAP_CON_OPEN)
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
808
if (con->tx_pkt == NULL)
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
809
ng_l2cap_con_wakeup(con);
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
81
__func__, NG_NODE_NAME(l2cap->node), con->state,
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
811
if (con->tx_pkt == NULL)
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
82
con->con_handle);
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
824
while (con->pending < con->l2cap->num_pkts && con->tx_pkt != NULL) {
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
825
m = con->tx_pkt;
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
826
con->tx_pkt = con->tx_pkt->m_nextpkt;
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
830
ng_l2cap_lp_receive(con->l2cap, m);
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
835
__func__, NG_NODE_NAME(l2cap->node), con->con_handle,
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
843
con->con_handle, error);
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
848
con->pending ++;
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
853
__func__, NG_NODE_NAME(l2cap->node), con->pending,
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
854
con->con_handle);
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
859
while (con->tx_pkt != NULL) {
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
860
m = con->tx_pkt->m_nextpkt;
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
861
m_freem(con->tx_pkt);
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
862
con->tx_pkt = m;
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
876
ng_l2cap_con_p con = NULL;
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
884
con = ng_l2cap_con_by_handle(l2cap, con_handle);
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
886
if (con == NULL) {
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
893
if (!(con->flags & NG_L2CAP_CON_LP_TIMO)) {
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
896
__func__, NG_NODE_NAME(node), con_handle, con->state,
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
897
con->flags);
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
906
con->flags &= ~NG_L2CAP_CON_LP_TIMO;
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
907
ng_l2cap_con_fail(con, NG_L2CAP_TIMEOUT);
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
919
ng_l2cap_con_p con = NULL;
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
930
con = ng_l2cap_con_by_handle(l2cap, con_handle);
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
932
if (con == NULL) {
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
939
if (!(con->flags & NG_L2CAP_CON_AUTO_DISCON_TIMO)) {
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
942
__func__, NG_NODE_NAME(node), con_handle, con->state,
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
943
con->flags);
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
947
con->flags &= ~NG_L2CAP_CON_AUTO_DISCON_TIMO;
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
964
ep->con_handle = con->con_handle;
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
97
con = ng_l2cap_new_con(l2cap, bdaddr, type);
sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c
98
if (con == NULL)
sys/netgraph/bluetooth/l2cap/ng_l2cap_main.c
297
ng_l2cap_con_p con = NULL;
sys/netgraph/bluetooth/l2cap/ng_l2cap_main.c
303
con = ng_l2cap_con_by_handle(l2cap,
sys/netgraph/bluetooth/l2cap/ng_l2cap_main.c
305
if (con == NULL)
sys/netgraph/bluetooth/l2cap/ng_l2cap_main.c
311
ep->con_handle, con->pending,
sys/netgraph/bluetooth/l2cap/ng_l2cap_main.c
314
con->pending -= ep->completed;
sys/netgraph/bluetooth/l2cap/ng_l2cap_main.c
315
if (con->pending < 0) {
sys/netgraph/bluetooth/l2cap/ng_l2cap_main.c
320
con->con_handle, con->pending,
sys/netgraph/bluetooth/l2cap/ng_l2cap_main.c
323
con->pending = 0;
sys/netgraph/bluetooth/l2cap/ng_l2cap_main.c
326
ng_l2cap_lp_deliver(con);
sys/netgraph/bluetooth/l2cap/ng_l2cap_main.c
551
ng_l2cap_con_p con = NULL;
sys/netgraph/bluetooth/l2cap/ng_l2cap_main.c
557
LIST_FOREACH(con, &l2cap->con_list, next)
sys/netgraph/bluetooth/l2cap/ng_l2cap_main.c
575
LIST_FOREACH(con, &l2cap->con_list, next) {
sys/netgraph/bluetooth/l2cap/ng_l2cap_main.c
576
e2->state = con->state;
sys/netgraph/bluetooth/l2cap/ng_l2cap_main.c
578
e2->flags = con->flags;
sys/netgraph/bluetooth/l2cap/ng_l2cap_main.c
579
if (con->tx_pkt != NULL)
sys/netgraph/bluetooth/l2cap/ng_l2cap_main.c
581
if (con->rx_pkt != NULL)
sys/netgraph/bluetooth/l2cap/ng_l2cap_main.c
584
e2->pending = con->pending;
sys/netgraph/bluetooth/l2cap/ng_l2cap_main.c
586
e2->con_handle = con->con_handle;
sys/netgraph/bluetooth/l2cap/ng_l2cap_main.c
587
bcopy(&con->remote, &e2->remote,
sys/netgraph/bluetooth/l2cap/ng_l2cap_main.c
633
bcopy(&ch->con->remote, &e2->remote,
sys/netgraph/bluetooth/l2cap/ng_l2cap_main.c
733
ng_l2cap_con_p con = NULL;
sys/netgraph/bluetooth/l2cap/ng_l2cap_main.c
737
con = LIST_FIRST(&l2cap->con_list);
sys/netgraph/bluetooth/l2cap/ng_l2cap_main.c
739
if (con->flags & NG_L2CAP_CON_LP_TIMO)
sys/netgraph/bluetooth/l2cap/ng_l2cap_main.c
740
ng_l2cap_lp_untimeout(con);
sys/netgraph/bluetooth/l2cap/ng_l2cap_main.c
741
else if (con->flags & NG_L2CAP_CON_AUTO_DISCON_TIMO)
sys/netgraph/bluetooth/l2cap/ng_l2cap_main.c
742
ng_l2cap_discon_untimeout(con);
sys/netgraph/bluetooth/l2cap/ng_l2cap_main.c
745
ng_l2cap_con_fail(con, 0x16);
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
108
ng_l2cap_con_p con = NULL;
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
111
con = malloc(sizeof(*con), M_NETGRAPH_L2CAP,
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
113
if (con == NULL)
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
116
con->l2cap = l2cap;
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
117
con->state = NG_L2CAP_CON_CLOSED;
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
118
con->encryption = 0;
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
133
con->con_handle = fake_con_handle ++;
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
137
bcopy(bdaddr, &con->remote, sizeof(con->remote));
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
138
con->linktype = type;
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
139
ng_callout_init(&con->con_timo);
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
141
con->ident = NG_L2CAP_FIRST_IDENT - 1;
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
142
TAILQ_INIT(&con->cmd_list);
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
145
LIST_INSERT_HEAD(&l2cap->con_list, con, next);
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
147
return (con);
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
155
ng_l2cap_con_ref(ng_l2cap_con_p con)
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
157
con->refcnt ++;
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
159
if (con->flags & NG_L2CAP_CON_AUTO_DISCON_TIMO) {
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
160
if ((con->state != NG_L2CAP_CON_OPEN) ||
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
161
(con->flags & NG_L2CAP_CON_OUTGOING) == 0)
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
164
__func__, NG_NODE_NAME(con->l2cap->node),
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
165
con->state, con->flags);
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
167
ng_l2cap_discon_untimeout(con);
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
176
ng_l2cap_con_unref(ng_l2cap_con_p con)
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
178
con->refcnt --;
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
180
if (con->refcnt < 0)
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
182
"%s: %s - con->refcnt < 0\n", __func__, NG_NODE_NAME(con->l2cap->node));
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
193
if ((con->refcnt == 0) &&
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
194
(con->state == NG_L2CAP_CON_OPEN) &&
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
195
(con->flags & NG_L2CAP_CON_OUTGOING) &&
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
196
(con->l2cap->discon_timo > 0) &&
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
197
((con->flags & NG_L2CAP_CON_DYING) == 0))
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
198
ng_l2cap_discon_timeout(con);
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
207
ng_l2cap_discon_timeout(ng_l2cap_con_p con)
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
209
if (con->flags & (NG_L2CAP_CON_LP_TIMO|NG_L2CAP_CON_AUTO_DISCON_TIMO))
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
212
__func__, NG_NODE_NAME(con->l2cap->node),
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
213
con->state, con->flags);
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
215
con->flags |= NG_L2CAP_CON_AUTO_DISCON_TIMO;
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
216
ng_callout(&con->con_timo, con->l2cap->node, NULL,
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
217
con->l2cap->discon_timo * hz,
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
219
con->con_handle);
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
229
ng_l2cap_discon_untimeout(ng_l2cap_con_p con)
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
231
if (!(con->flags & NG_L2CAP_CON_AUTO_DISCON_TIMO))
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
234
__func__, NG_NODE_NAME(con->l2cap->node),
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
235
con->state, con->flags);
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
237
if (ng_uncallout(&con->con_timo, con->l2cap->node) < 1)
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
240
con->flags &= ~NG_L2CAP_CON_AUTO_DISCON_TIMO;
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
250
ng_l2cap_free_con(ng_l2cap_con_p con)
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
254
con->state = NG_L2CAP_CON_CLOSED;
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
256
while (con->tx_pkt != NULL) {
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
257
struct mbuf *m = con->tx_pkt->m_nextpkt;
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
259
m_freem(con->tx_pkt);
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
260
con->tx_pkt = m;
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
263
NG_FREE_M(con->rx_pkt);
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
265
for (f = LIST_FIRST(&con->l2cap->chan_list); f != NULL; ) {
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
268
if (f->con == con)
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
274
while (!TAILQ_EMPTY(&con->cmd_list)) {
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
275
ng_l2cap_cmd_p cmd = TAILQ_FIRST(&con->cmd_list);
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
283
if (con->flags & (NG_L2CAP_CON_AUTO_DISCON_TIMO|NG_L2CAP_CON_LP_TIMO))
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
286
__func__, NG_NODE_NAME(con->l2cap->node),
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
287
con->state, con->flags);
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
289
LIST_REMOVE(con, next);
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
291
bzero(con, sizeof(*con));
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
292
free(con, M_NETGRAPH_L2CAP);
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
302
ng_l2cap_con_p con = NULL;
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
304
LIST_FOREACH(con, &l2cap->con_list, next)
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
305
if ((bcmp(bdaddr, &con->remote, sizeof(con->remote)) == 0)&&
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
306
(con->linktype == type))
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
309
return (con);
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
319
ng_l2cap_con_p con = NULL;
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
321
LIST_FOREACH(con, &l2cap->con_list, next)
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
322
if (con->con_handle == con_handle)
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
325
return (con);
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
334
ng_l2cap_new_chan(ng_l2cap_p l2cap, ng_l2cap_con_p con, u_int16_t psm, int idtype)
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
348
(con->linktype!= NG_HCI_LINK_ACL));
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
355
ch->con = con;
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
370
ng_l2cap_con_ref(con);
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
392
(ch->con->linktype == NG_HCI_LINK_ACL ))
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
395
(ch->con->linktype != NG_HCI_LINK_ACL ))
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
411
(ch->con->con_handle == con_handle))
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
426
f = TAILQ_FIRST(&ch->con->cmd_list);
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
443
ng_l2cap_con_unref(ch->con);
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
454
ng_l2cap_new_cmd(ng_l2cap_con_p con, ng_l2cap_chan_p ch, u_int8_t ident,
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
459
KASSERT((ch == NULL || ch->con == con),
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
461
__func__, NG_NODE_NAME(con->l2cap->node)));
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
468
cmd->con = con;
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
483
ng_l2cap_cmd_by_ident(ng_l2cap_con_p con, u_int8_t ident)
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
487
TAILQ_FOREACH(cmd, &con->cmd_list, next) {
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
489
KASSERT((cmd->con == con),
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
491
__func__, NG_NODE_NAME(con->l2cap->node)));
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
506
ng_l2cap_lp_timeout(ng_l2cap_con_p con)
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
508
if (con->flags & (NG_L2CAP_CON_LP_TIMO|NG_L2CAP_CON_AUTO_DISCON_TIMO))
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
511
__func__, NG_NODE_NAME(con->l2cap->node),
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
512
con->state, con->flags);
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
514
con->flags |= NG_L2CAP_CON_LP_TIMO;
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
515
ng_callout(&con->con_timo, con->l2cap->node, NULL,
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
518
con->con_handle);
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
528
ng_l2cap_lp_untimeout(ng_l2cap_con_p con)
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
530
if (!(con->flags & NG_L2CAP_CON_LP_TIMO))
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
533
__func__, NG_NODE_NAME(con->l2cap->node),
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
534
con->state, con->flags);
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
536
if (ng_uncallout(&con->con_timo, con->l2cap->node) < 1)
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
539
con->flags &= ~NG_L2CAP_CON_LP_TIMO;
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
557
__func__, NG_NODE_NAME(cmd->con->l2cap->node),
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
560
arg = ((cmd->ident << 16) | cmd->con->con_handle);
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
562
ng_callout(&cmd->timo, cmd->con->l2cap->node, NULL, timo,
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
578
__func__, NG_NODE_NAME(cmd->con->l2cap->node),
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
581
if (ng_uncallout(&cmd->timo, cmd->con->l2cap->node) < 1)
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
676
ng_l2cap_get_ident(ng_l2cap_con_p con)
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
678
u_int8_t ident = con->ident + 1;
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
683
while (ident != con->ident) {
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
684
if (ng_l2cap_cmd_by_ident(con, ident) == NULL) {
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c
685
con->ident = ident;
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.h
65
#define ng_l2cap_link_cmd(con, cmd) \
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.h
67
TAILQ_INSERT_TAIL(&(con)->cmd_list, (cmd), next); \
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.h
68
ng_l2cap_con_ref((con)); \
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.h
73
TAILQ_REMOVE(&((cmd)->con->cmd_list), (cmd), next); \
sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.h
74
ng_l2cap_con_unref((cmd)->con); \
sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c
1002
hdr = mtod(con->rx_pkt, ng_l2cap_hdr_t *);
sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c
1009
con->con_handle);
sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c
1014
hdr->dcid = con->con_handle;
sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c
1019
con->con_handle);
sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c
1025
hdr->dcid = con->con_handle;
sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c
1027
idtype = (con->linktype==NG_HCI_LINK_ACL)?
sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c
107
ch = ng_l2cap_new_chan(l2cap, con, ip->psm, ip->idtype);
sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c
1077
M_PREPEND(con->rx_pkt, sizeof(uint16_t), M_NOWAIT);
sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c
1078
if(con->rx_pkt == NULL)
sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c
1080
idp = mtod(con->rx_pkt, uint16_t *);
sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c
1083
NG_SEND_DATA_ONLY(error, l2cap->l2c, con->rx_pkt);
sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c
1084
con->rx_pkt = NULL;
sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c
1086
NG_FREE_M(con->rx_pkt); /* checks for != NULL */
sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c
1097
ng_l2cap_l2ca_clt_receive(ng_l2cap_con_p con)
sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c
1103
ng_l2cap_p l2cap = con->l2cap;
sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c
1106
NG_L2CAP_M_PULLUP(con->rx_pkt, sizeof(*hdr));
sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c
1107
if (con->rx_pkt == NULL)
sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c
1110
hdr = mtod(con->rx_pkt, struct _clt_pkt *);
sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c
1113
length = con->rx_pkt->m_pkthdr.len - sizeof(*hdr);
sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c
114
cmd = ng_l2cap_new_cmd(ch->con, ch, ng_l2cap_get_ident(con),
sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c
1167
NG_SEND_DATA_ONLY(error, l2cap->l2c, con->rx_pkt);
sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c
1168
con->rx_pkt = NULL;
sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c
1170
NG_FREE_M(con->rx_pkt); /* checks for != NULL */
sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c
1182
ng_l2cap_p l2cap = ch->con->l2cap;
sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c
1204
bcopy(&ch->con->remote, &ip->bdaddr, sizeof(ip->bdaddr));
sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c
1291
cmd = ng_l2cap_new_cmd(ch->con, ch, ng_l2cap_get_ident(ch->con),
sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c
1317
ng_l2cap_link_cmd(ch->con, cmd);
sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c
1318
ng_l2cap_lp_deliver(ch->con);
sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c
1330
ng_l2cap_p l2cap = ch->con->l2cap;
sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c
1370
ng_l2cap_p l2cap = ch->con->l2cap;
sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c
1395
ip->lcid = ch->con->con_handle;
sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c
1480
ng_l2cap_con_p con = NULL;
sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c
1504
con = ng_l2cap_con_by_addr(l2cap, &ip->bdaddr, NG_HCI_LINK_ACL);
sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c
1505
if (con == NULL) {
sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c
151
ng_l2cap_link_cmd(ch->con, cmd);
sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c
1516
con = ng_l2cap_con_by_addr(l2cap, &ip->bdaddr, NG_HCI_LINK_ACL);
sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c
1517
KASSERT((con != NULL),
sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c
152
ng_l2cap_lp_deliver(ch->con);
sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c
1522
cmd = ng_l2cap_new_cmd(con, NULL, ng_l2cap_get_ident(con),
sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c
1545
ng_l2cap_link_cmd(con, cmd);
sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c
1546
ng_l2cap_lp_deliver(con);
sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c
1556
ng_l2cap_l2ca_ping_rsp(ng_l2cap_con_p con, u_int32_t token, u_int16_t result,
sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c
1559
ng_l2cap_p l2cap = con->l2cap;
sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c
1587
bcopy(&con->remote, &op->bdaddr, sizeof(op->bdaddr));
sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c
1609
ng_l2cap_con_p con = NULL;
sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c
1626
con = ng_l2cap_con_by_addr(l2cap, &ip->bdaddr,ip->linktype);
sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c
1627
if (con == NULL) {
sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c
1638
con = ng_l2cap_con_by_addr(l2cap, &ip->bdaddr, ip->linktype);
sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c
1639
KASSERT((con != NULL),
sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c
1644
cmd = ng_l2cap_new_cmd(con, NULL, ng_l2cap_get_ident(con),
sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c
165
ng_l2cap_p l2cap = ch->con->l2cap;
sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c
1666
ng_l2cap_link_cmd(con, cmd);
sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c
1667
ng_l2cap_lp_deliver(con);
sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c
1677
ng_l2cap_l2ca_get_info_rsp(ng_l2cap_con_p con, u_int32_t token,
sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c
1680
ng_l2cap_p l2cap = con->l2cap;
sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c
198
op->lcid = ch->con->con_handle;
sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c
201
op->lcid = ch->con->con_handle;
sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c
203
op->idtype = (ch->con->linktype == NG_HCI_LINK_ACL)?
sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c
208
op->encryption = ch->con->encryption;
sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c
226
ng_l2cap_con_p con = NULL;
sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c
276
con = ch->con;
sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c
309
cmd = ng_l2cap_new_cmd(con, ch, ip->ident, NG_L2CAP_CON_RSP,
sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c
331
ng_l2cap_link_cmd(con, cmd);
sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c
332
ng_l2cap_lp_deliver(con);
sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c
339
ng_l2cap_p l2cap = ch->con->l2cap;
sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c
367
op->lcid = ch->con->con_handle;
sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c
372
op->idtype =(ch->con->linktype ==NG_HCI_LINK_ACL)?
sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c
391
ng_l2cap_p l2cap = ch->con->l2cap;
sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c
431
ng_l2cap_p l2cap = ch->con->l2cap;
sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c
454
bcopy(&ch->con->remote, &ip->bdaddr, sizeof(ip->bdaddr));
sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c
458
ip->linktype = ch->con->linktype;
sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c
537
cmd = ng_l2cap_new_cmd(ch->con, ch, ng_l2cap_get_ident(ch->con),
sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c
569
ng_l2cap_link_cmd(ch->con, cmd);
sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c
570
ng_l2cap_lp_deliver(ch->con);
sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c
582
ng_l2cap_p l2cap = ch->con->l2cap;
sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c
67
ng_l2cap_con_p con = NULL;
sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c
708
cmd = ng_l2cap_new_cmd(ch->con, ch, ch->ident, NG_L2CAP_CFG_RSP,
sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c
729
ng_l2cap_link_cmd(ch->con, cmd);
sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c
730
ng_l2cap_lp_deliver(ch->con);
sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c
742
ng_l2cap_p l2cap = ch->con->l2cap;
sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c
795
ng_l2cap_p l2cap = ch->con->l2cap;
sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c
85
con = ng_l2cap_con_by_addr(l2cap, &ip->bdaddr, ip->linktype);
sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c
86
if (con == NULL) {
sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c
910
cmd = ng_l2cap_new_cmd(ch->con, ch, 0, NGM_L2CAP_L2CA_WRITE, token);
sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c
918
ng_l2cap_link_cmd(ch->con, cmd);
sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c
919
ng_l2cap_lp_deliver(ch->con);
sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c
936
ng_l2cap_p l2cap = ch->con->l2cap;
sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c
965
op->lcid = ch->con->con_handle;
sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c
968
op->lcid = ch->con->con_handle;
sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c
97
con = ng_l2cap_con_by_addr(l2cap, &ip->bdaddr, ip->linktype);
sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c
970
op->idtype = (ch->con->linktype == NG_HCI_LINK_ACL)?
sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c
98
KASSERT((con != NULL),
sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c
988
ng_l2cap_l2ca_receive(ng_l2cap_con_p con)
sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c
990
ng_l2cap_p l2cap = con->l2cap;
sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c
998
NG_L2CAP_M_PULLUP(con->rx_pkt, sizeof(*hdr));
sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c
999
if (con->rx_pkt == NULL)
sys/netgraph/bluetooth/l2cap/ng_l2cap_var.h
142
ng_l2cap_con_p con; /* pointer to connection */
sys/netgraph/bluetooth/l2cap/ng_l2cap_var.h
176
ng_l2cap_con_p con; /* L2CAP connection */
sys/netgraph/ng_base.c
2545
struct ngm_connect *const con =
sys/netgraph/ng_base.c
2549
if (msg->header.arglen != sizeof(*con)) {
sys/netgraph/ng_base.c
2554
con->path[sizeof(con->path) - 1] = '\0';
sys/netgraph/ng_base.c
2555
con->ourhook[sizeof(con->ourhook) - 1] = '\0';
sys/netgraph/ng_base.c
2556
con->peerhook[sizeof(con->peerhook) - 1] = '\0';
sys/netgraph/ng_base.c
2558
error = ng_path2noderef(here, con->path, &node2, NULL);
sys/netgraph/ng_base.c
2561
error = ng_con_nodes(item, here, con->ourhook,
sys/netgraph/ng_base.c
2562
node2, con->peerhook);
usr.bin/tip/tip/cu.c
181
if (con()) {
usr.bin/tip/tip/tip.c
175
if ((p = con())) {
usr.bin/tip/tip/tip.h
276
char *con(void);
usr.sbin/fwcontrol/fwcontrol.c
626
p.astat, p.bstat, p.ch, p.con, p.rxok, p.dis,
usr.sbin/ngctl/connect.c
60
struct ngm_connect con;
usr.sbin/ngctl/connect.c
71
snprintf(con.path, sizeof(con.path), "%s", av[1]);
usr.sbin/ngctl/connect.c
72
snprintf(con.ourhook, sizeof(con.ourhook), "%s", av[2]);
usr.sbin/ngctl/connect.c
73
snprintf(con.peerhook, sizeof(con.peerhook), "%s", av[3]);
usr.sbin/ngctl/connect.c
81
NGM_CONNECT, &con, sizeof(con)) < 0) {
usr.sbin/pmcstudy/pmcstudy.c
1033
double con, un, me, res;
usr.sbin/pmcstudy/pmcstudy.c
1035
con = 36.0;
usr.sbin/pmcstudy/pmcstudy.c
1045
res = (con * me)/un;
usr.sbin/pmcstudy/pmcstudy.c
1058
double con, un, me, res;
usr.sbin/pmcstudy/pmcstudy.c
1060
con = 180.0;
usr.sbin/pmcstudy/pmcstudy.c
1070
res = (me * con)/un;
usr.sbin/pmcstudy/pmcstudy.c
1082
double con, un, me, res;
usr.sbin/pmcstudy/pmcstudy.c
1084
con = 180.0;
usr.sbin/pmcstudy/pmcstudy.c
1094
res = (me * con)/un;
usr.sbin/pmcstudy/pmcstudy.c
1107
double con, un, me, res;
usr.sbin/pmcstudy/pmcstudy.c
1109
con = 180.0;
usr.sbin/pmcstudy/pmcstudy.c
1119
res = (me * con)/un;
usr.sbin/pmcstudy/pmcstudy.c
1132
double con, un, d1, d2, res;
usr.sbin/pmcstudy/pmcstudy.c
1134
con = 7.0;
usr.sbin/pmcstudy/pmcstudy.c
1147
res = ((d1 * con) + d2)/un;
usr.sbin/pmcstudy/pmcstudy.c
1162
double con, un, d1, d2, res;
usr.sbin/pmcstudy/pmcstudy.c
1164
con = 7.0;
usr.sbin/pmcstudy/pmcstudy.c
1177
res = ((d1 * con) + d2)/un;
usr.sbin/pmcstudy/pmcstudy.c
1270
double un, con, ic, res;
usr.sbin/pmcstudy/pmcstudy.c
1274
con = 36.0;
usr.sbin/pmcstudy/pmcstudy.c
1282
res = (con * ic)/un;
usr.sbin/pmcstudy/pmcstudy.c
1320
double con, un, id, res;
usr.sbin/pmcstudy/pmcstudy.c
1322
con = 4.0;
usr.sbin/pmcstudy/pmcstudy.c
1332
res = id/(un * con);
usr.sbin/pmcstudy/pmcstudy.c
1346
double con, un, cl1, cl2, cl3, res;
usr.sbin/pmcstudy/pmcstudy.c
1348
con = 100.0;
usr.sbin/pmcstudy/pmcstudy.c
1365
res = ((cl1 + cl2 + cl3) * con)/un;
usr.sbin/pmcstudy/pmcstudy.c
1378
double con, un, cl1, cl2, cl3, cy, res;
usr.sbin/pmcstudy/pmcstudy.c
1380
con = 100.0;
usr.sbin/pmcstudy/pmcstudy.c
1400
res = ((cl1 + cl2 + cl3 + cy) * con)/un;
usr.sbin/pmcstudy/pmcstudy.c
1416
double un, id, res, con;
usr.sbin/pmcstudy/pmcstudy.c
1418
con = 4.0;
usr.sbin/pmcstudy/pmcstudy.c
1428
res = id/(un * con);
usr.sbin/pmcstudy/pmcstudy.c
1442
double un, id, res, con, uoi, uor;
usr.sbin/pmcstudy/pmcstudy.c
1444
con = 4.0;
usr.sbin/pmcstudy/pmcstudy.c
1460
res = (uor/uoi) * (id/(un * con));
usr.sbin/pmcstudy/pmcstudy.c
1473
double un, lds, con, res;
usr.sbin/pmcstudy/pmcstudy.c
1475
con = 5.0;
usr.sbin/pmcstudy/pmcstudy.c
1485
res = (lds * con)/un;
usr.sbin/pmcstudy/pmcstudy.c
1497
double un, lds, con, res;
usr.sbin/pmcstudy/pmcstudy.c
1499
con = 7.0;
usr.sbin/pmcstudy/pmcstudy.c
1509
res = (lds * con)/un;
usr.sbin/pmcstudy/pmcstudy.c
1545
double un, ot, con, res;
usr.sbin/pmcstudy/pmcstudy.c
1547
con = 75.0;
usr.sbin/pmcstudy/pmcstudy.c
1557
res = (ot * con)/un;
usr.sbin/pmcstudy/pmcstudy.c
1569
double un, ot, con, res;
usr.sbin/pmcstudy/pmcstudy.c
1572
con = 75.0;
usr.sbin/pmcstudy/pmcstudy.c
1582
res = (ot * con)/un;
usr.sbin/pmcstudy/pmcstudy.c
1594
double un, ot, con, res;
usr.sbin/pmcstudy/pmcstudy.c
1597
con = 4.0;
usr.sbin/pmcstudy/pmcstudy.c
1607
res = ot/(con * un);
usr.sbin/pmcstudy/pmcstudy.c
523
double br, un, con, res;
usr.sbin/pmcstudy/pmcstudy.c
524
con = 20.0;
usr.sbin/pmcstudy/pmcstudy.c
535
res = (con * br)/un;
usr.sbin/pmcstudy/pmcstudy.c
558
double br, cl, cl2, cl3, uo, re, un, con, res, is;
usr.sbin/pmcstudy/pmcstudy.c
559
con = 4.0;
usr.sbin/pmcstudy/pmcstudy.c
588
res = (br/(br + cl + cl2 + cl3) * ((is - uo + con * re) / (con * un)));
usr.sbin/pmcstudy/pmcstudy.c
604
double br, cl, uo, uo_r, re, con, un, res;
usr.sbin/pmcstudy/pmcstudy.c
606
con = 4.0;
usr.sbin/pmcstudy/pmcstudy.c
630
res = br / (br + cl) * (uo - uo_r + con * re) / (un * con);
usr.sbin/pmcstudy/pmcstudy.c
675
double con, un, memd, res;
usr.sbin/pmcstudy/pmcstudy.c
678
con = 5.0;
usr.sbin/pmcstudy/pmcstudy.c
688
res = (memd * con)/un;
usr.sbin/pmcstudy/pmcstudy.c
700
double con, un, memd, res;
usr.sbin/pmcstudy/pmcstudy.c
703
con = 5.0;
usr.sbin/pmcstudy/pmcstudy.c
713
res = (memd * con)/un;
usr.sbin/pmcstudy/pmcstudy.c
773
double con, un, memd, res;
usr.sbin/pmcstudy/pmcstudy.c
775
con = 60.0;
usr.sbin/pmcstudy/pmcstudy.c
785
res = (memd * con)/un;
usr.sbin/pmcstudy/pmcstudy.c
797
double con, un, memd, res;
usr.sbin/pmcstudy/pmcstudy.c
799
con = 84.0;
usr.sbin/pmcstudy/pmcstudy.c
809
res = (memd * con)/un;
usr.sbin/pmcstudy/pmcstudy.c
822
double con, un, memd, memtoo, res;
usr.sbin/pmcstudy/pmcstudy.c
824
con = 84.0;
usr.sbin/pmcstudy/pmcstudy.c
838
res = ((memd * con) + memtoo)/un;
usr.sbin/pmcstudy/pmcstudy.c
851
double con, un, ld, res;
usr.sbin/pmcstudy/pmcstudy.c
853
con = 13.0;
usr.sbin/pmcstudy/pmcstudy.c
863
res = (ld * con)/un;
usr.sbin/pmcstudy/pmcstudy.c
913
double con, res, me, un;
usr.sbin/pmcstudy/pmcstudy.c
915
con = 43.0;
usr.sbin/pmcstudy/pmcstudy.c
925
res = (me * con)/un;
usr.sbin/pmcstudy/pmcstudy.c
941
double con, res, me, un;
usr.sbin/pmcstudy/pmcstudy.c
943
con = 72.0;
usr.sbin/pmcstudy/pmcstudy.c
953
res = (me * con)/un;
usr.sbin/pmcstudy/pmcstudy.c
969
double con, un, me, res;
usr.sbin/pmcstudy/pmcstudy.c
971
con = 29.0;
usr.sbin/pmcstudy/pmcstudy.c
981
res = (con * me)/un;