Date: Wed, 6 Jun 2001 14:01:35 +0200 (CEST) From: brandt@fokus.gmd.de To: FreeBSD-gnats-submit@freebsd.org Subject: kern/27906: NG_SEND_MSG_HOOK fails to set the return address for the response Message-ID: <200106061201.f56C1Zx67238@fokus.gmd.de>
next in thread | raw e-mail | index | archive | help
>Number: 27906 >Category: kern >Synopsis: NG_SEND_MSG_HOOK fails to set the return address for the response >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Jun 06 05:10:01 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Harti Brandt >Release: FreeBSD 5.0-CURRENT i386 >Organization: GMD Fokus, Berlin, Germany >Environment: System: FreeBSD beagle.fokus.gmd.de 5.0-CURRENT FreeBSD 5.0-CURRENT #0: Wed Apr 4 11:23:55 CEST 2001 hbb@beagle.fokus.gmd.de:/opt/obj/usr/src/sys/BEAGLE i386 >Description: NG_SEND_MSG_HOOK, as defined in netgraph.h has a 5th parameter 'retaddr' which specifies the node ID of the node, which should receive a response to the message. This parameter is passed to ng_address_hook() which, at present, ignores it. This leads to the response beeing dropped by the netgraph base code. >How-To-Repeat: Create a netgraph node, which sends a message to another node via a hook by using NG_SEND_MSG_HOOK. Observe, that the response from the receiving node is lost. >Fix: Patch to ng_base.c: Index: ng_base.c =================================================================== RCS file: /usr/ncvs/src/sys/netgraph/ng_base.c,v retrieving revision 1.54 diff -r1.54 ng_base.c 3490a3491 > SET_RETADDR(item, here, retaddr); >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200106061201.f56C1Zx67238>