Searched refs:echo_size (Results 1 - 5 of 5) sorted by relevance

/freebsd-12-stable/usr.sbin/bluetooth/l2ping/
H A Dl2ping.c70 int32_t n, s, count, wait, flood, echo_size, numeric; local
88 echo_size = NG_L2CAP_MTU_MINIMUM - sizeof(ng_l2cap_cmd_hdr_t);
136 echo_size = strtol(optarg, &endp, 10);
137 if (echo_size < sizeof(int32_t) ||
138 echo_size > NG_L2CAP_MAX_ECHO_SIZE ||
185 for (n = 0; n < echo_size; ) {
186 int32_t avail = min(echo_size - n, PATTERN_SIZE);
205 r.echo_size = echo_size;
223 r.echo_size,
[all...]
/freebsd-12-stable/sys/netgraph/bluetooth/socket/
H A Dng_btsocket_l2cap_raw.c962 if ((p->echo_size != 0 && p->echo_data == NULL) ||
963 p->echo_size > NG_L2CAP_MAX_ECHO_SIZE) {
969 NGM_L2CAP_L2CA_PING, sizeof(*ip) + p->echo_size,
981 ip->echo_size = p->echo_size;
983 if (ip->echo_size > 0) {
984 error = copyin(p->echo_data, ip + 1, p->echo_size);
1011 p->echo_size = min(p->echo_size, op->echo_size);
[all...]
/freebsd-12-stable/sys/netgraph/bluetooth/include/
H A Dng_btsocket.h264 u_int32_t echo_size; member in struct:ng_btsocket_l2cap_raw_ping
H A Dng_l2cap.h563 u_int16_t echo_size; /* size of echo data in bytes */ member in struct:__anon16241
571 u_int16_t echo_size; /* size of echo data in bytes */ member in struct:__anon16242
/freebsd-12-stable/sys/netgraph/bluetooth/l2cap/
H A Dng_l2cap_ulpi.c1497 if (ip->echo_size > NG_L2CAP_MAX_ECHO_SIZE) {
1499 "%s: %s - invalid L2CA_Ping request. Echo size is too big, echo_size=%d\n",
1500 __func__, NG_NODE_NAME(l2cap->node), ip->echo_size);
1539 msg->data + sizeof(*ip), ip->echo_size);
1591 op->echo_size = size;

Completed in 193 milliseconds