diff options
Diffstat (limited to 'sys/netgraph/bluetooth/include/ng_btsocket.h')
-rw-r--r-- | sys/netgraph/bluetooth/include/ng_btsocket.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/netgraph/bluetooth/include/ng_btsocket.h b/sys/netgraph/bluetooth/include/ng_btsocket.h index 6bdc607..1e351d0 100644 --- a/sys/netgraph/bluetooth/include/ng_btsocket.h +++ b/sys/netgraph/bluetooth/include/ng_btsocket.h @@ -50,12 +50,17 @@ /* * XXX FIXME: probably does not belong here * Bluetooth version of struct sockaddr for raw HCI sockets + * + * XXX: sizeof(hci_node) was NG_NODELEN + 1, but NG_NODESIZ (the equivalent + * of NG_NODELEN + 1) has been bumped to 32. The code currently + * truncates the node name to sizeof(hci_node), although it would be + * possible to correctly handle this by means of the hci_len field. */ struct sockaddr_hci { u_char hci_len; /* total length */ u_char hci_family; /* address family */ - char hci_node[16]; /* address (size == NG_NODELEN + 1) */ + char hci_node[16]; /* address */ }; /* Raw HCI socket options */ |