diff options
author | Archie Cobbs <archie@FreeBSD.org> | 2000-12-18 17:18:35 +0000 |
---|---|---|
committer | Archie Cobbs <archie@FreeBSD.org> | 2000-12-18 17:18:35 +0000 |
commit | cfe844ab1fe09d76ea897a6dbd4aaa4cf4d77266 (patch) | |
tree | 08c1c66f6852ad11c63da777f0c4aa7dd1eec7d1 /sys/netgraph/ng_ppp.c | |
parent | 5e75ac9fe245c9a5a50e48a679f0394788fca534 (diff) | |
download | src-cfe844ab1fe09d76ea897a6dbd4aaa4cf4d77266.tar.gz src-cfe844ab1fe09d76ea897a6dbd4aaa4cf4d77266.zip |
Use "node->ID" for the node's ID, instead of "(long)node".
Reported by: julian
Notes
Notes:
svn path=/head/; revision=70157
Diffstat (limited to 'sys/netgraph/ng_ppp.c')
-rw-r--r-- | sys/netgraph/ng_ppp.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/netgraph/ng_ppp.c b/sys/netgraph/ng_ppp.c index d5afd9c27eff..88caa6309f6a 100644 --- a/sys/netgraph/ng_ppp.c +++ b/sys/netgraph/ng_ppp.c @@ -561,12 +561,8 @@ ng_ppp_rcvmsg(node_p node, struct ng_mesg *msg, if ((error = ng_path2node(node, raddr, &origNode, NULL)) != 0) ERROUT(error); snprintf(path, sizeof(path), "[%lx]:%s", - (long)node, NG_PPP_HOOK_VJC_IP); + (long)node->ID, NG_PPP_HOOK_VJC_IP); return ng_send_msg(origNode, msg, path, NULL, NULL, rptr); -/* XXX Archie, looks like you are using the wrong value for the ID here.. - you can't use a node address as a node-ID any more.. -But it may be that you can use the new 'hook' arg for ng_send_msg() -to achieve a more efficient resuld than an ID anyhow. */ } default: error = EINVAL; |