Bug 27906

Summary: NG_SEND_MSG_HOOK fails to set the return address for the response
Product: Base System Reporter: brandt <brandt>
Component: kernAssignee: Julian Elischer <julian>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 5.0-CURRENT   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description brandt 2001-06-06 13:10:01 UTC
	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.

Fix: Patch to ng_base.c:
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.
Comment 1 Alfred Perlstein freebsd_committer freebsd_triage 2001-07-13 09:38:08 UTC
Responsible Changed
From-To: freebsd-bugs->julian

Julian is Mr Netgraph.
Comment 2 Julian Elischer freebsd_committer freebsd_triage 2001-07-14 07:03:00 UTC
State Changed
From-To: open->closed

Patch committed