Use "node->ID" for the node's ID, instead of "(long)node".

Reported by:	julian
This commit is contained in:
archie 2000-12-18 17:18:35 +00:00
parent da659a3560
commit 00bc527735

View File

@ -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;