summaryrefslogtreecommitdiffstats
path: root/sys/netgraph/bluetooth/drivers
diff options
context:
space:
mode:
authorharti <harti@FreeBSD.org>2004-01-26 15:19:43 +0000
committerharti <harti@FreeBSD.org>2004-01-26 15:19:43 +0000
commit5e802bbf2a5a4335c01550543e9f2a8c78e482b5 (patch)
tree8b910dedcfe822461bb34ffdc3e6cab9556e2ad2 /sys/netgraph/bluetooth/drivers
parent3a15ac7b11b935e1782804d428a4147f3f5fec27 (diff)
downloadFreeBSD-src-5e802bbf2a5a4335c01550543e9f2a8c78e482b5.zip
FreeBSD-src-5e802bbf2a5a4335c01550543e9f2a8c78e482b5.tar.gz
Replace deprecated NG_NODELEN with the new NG_NODESIZ. There is one
problem here still to be solved: the sockaddr_hci has still a 16 byte field for the node name. The code currently does not correctly use the length field in the sockaddr to handle the address length, so node names get truncated to 15 characters when put into a sockaddr_hci.
Diffstat (limited to 'sys/netgraph/bluetooth/drivers')
-rw-r--r--sys/netgraph/bluetooth/drivers/h4/ng_h4.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netgraph/bluetooth/drivers/h4/ng_h4.c b/sys/netgraph/bluetooth/drivers/h4/ng_h4.c
index 971079f..8ea68ed 100644
--- a/sys/netgraph/bluetooth/drivers/h4/ng_h4.c
+++ b/sys/netgraph/bluetooth/drivers/h4/ng_h4.c
@@ -150,7 +150,7 @@ static int ng_h4_node = 0;
static int
ng_h4_open(dev_t dev, struct tty *tp)
{
- char name[NG_NODELEN + 1];
+ char name[NG_NODESIZ];
ng_h4_info_p sc = NULL;
int s, error;
@@ -733,7 +733,7 @@ static int
ng_h4_shutdown(node_p node)
{
ng_h4_info_p sc = (ng_h4_info_p) NG_NODE_PRIVATE(node);
- char name[NG_NODELEN + 1];
+ char name[NG_NODESIZ];
/* Let old node go */
NG_NODE_SET_PRIVATE(node, NULL);
OpenPOWER on IntegriCloud