From 00bc5277358235f406d4d46497c959c1c486399a Mon Sep 17 00:00:00 2001 From: archie Date: Mon, 18 Dec 2000 17:18:35 +0000 Subject: Use "node->ID" for the node's ID, instead of "(long)node". Reported by: julian --- sys/netgraph/ng_ppp.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'sys/netgraph') diff --git a/sys/netgraph/ng_ppp.c b/sys/netgraph/ng_ppp.c index d5afd9c..88caa63 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; -- cgit v1.1