Date: Wed, 24 Oct 2001 11:34:11 +0200 (CEST) From: Harti Brandt <brandt@fokus.gmd.de> To: archie@whistle.com Cc: current@freebsd.org Subject: NgSendMsg may return bad token number Message-ID: <20011024112901.X55663-100000@beagle.fokus.gmd.de>
next in thread | raw e-mail | index | archive | help
Hi all, NgSendMsg returns the bad token number if the debugging level is higher than 2. It should use the token number from the message structure instead of the global gMsgId, because that is changed by the ASCII messages sent in _NgDebugMsg. The following patch fixes the problem for NgSendMsg: Index: msg.c =================================================================== RCS file: /usr/ncvs/src/lib/libnetgraph/msg.c,v retrieving revision 1.5 diff -r1.5 msg.c 84c84 < return (gMsgId); --- > return (msg.header.token); The same problem exists obviously in NgSendMsgASCII, but I have no test case for this one and hence no fix. Regards, harti -- harti brandt, http://www.fokus.gmd.de/research/cc/cats/employees/hartmut.brandt/private brandt@fokus.fhg.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011024112901.X55663-100000>