summaryrefslogtreecommitdiffstats
path: root/sys/netgraph/bluetooth/include
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>2004-08-20 01:24:23 +0000
committerjulian <julian@FreeBSD.org>2004-08-20 01:24:23 +0000
commitfe9f220a60f1f7aff5b43db98748277f5d22754d (patch)
treeb7b08a076f5d24c9ea38fd4c07fbe2d17a97c7f0 /sys/netgraph/bluetooth/include
parent80ff6433dd3ac544095f7e6f88ccc76d77a25a50 (diff)
downloadFreeBSD-src-fe9f220a60f1f7aff5b43db98748277f5d22754d.zip
FreeBSD-src-fe9f220a60f1f7aff5b43db98748277f5d22754d.tar.gz
Align netgraph message fields ready for 64-bit (and 128 bit :-) machines.
requires a recompile of netgraph users. Also change the size of a field in the bluetooth code that was waiting for the next change that needed recompiles so it could piggyback its way in. Submitted by: jdp, maksim MFC after: 2 days
Diffstat (limited to 'sys/netgraph/bluetooth/include')
-rw-r--r--sys/netgraph/bluetooth/include/ng_btsocket.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/netgraph/bluetooth/include/ng_btsocket.h b/sys/netgraph/bluetooth/include/ng_btsocket.h
index d13c650..f02b5f7 100644
--- a/sys/netgraph/bluetooth/include/ng_btsocket.h
+++ b/sys/netgraph/bluetooth/include/ng_btsocket.h
@@ -42,17 +42,12 @@
/*
* 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 */
+ char hci_node[32]; /* address (size == NG_NODESIZ ) */
};
/* Raw HCI socket options */
OpenPOWER on IntegriCloud