kern/81349: [PATCH] Wrong error code is returned in ng_eiface(4)

Wojciech A. Koszek dunstan at freebsd.czest.pl
Sun May 22 10:30:06 GMT 2005


The following reply was made to PR kern/81349; it has been noted by GNATS.

From: "Wojciech A. Koszek" <dunstan at freebsd.czest.pl>
To: bug-followup at FreeBSD.org
Cc:  
Subject: Re: kern/81349: [PATCH] Wrong error code is returned in ng_eiface(4)
Date: Sun, 22 May 2005 10:35:05 +0000

 --GvXjxJ+pjyke8COw
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 
 Hello,
 
 I've noticed error returned in other Netgraph nodes when we
 create hook with improper name differs without any reason.
 Attachement contains patch which fixes inconsistency.
 
 -- 
 * Wojciech A. Koszek && dunstan at FreeBSD.czest.pl
 
 --GvXjxJ+pjyke8COw
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: attachment; filename=NG-errorcode
 
 Index: ng_eiface.c
 ===================================================================
 RCS file: /home/ncvs/src/sys/netgraph/ng_eiface.c,v
 retrieving revision 1.31
 diff -r1.31 ng_eiface.c
 384c384
 < 		return (EPFNOSUPPORT);
 ---
 > 		return (EINVAL);
 Index: ng_gif_demux.c
 ===================================================================
 RCS file: /home/ncvs/src/sys/netgraph/ng_gif_demux.c,v
 retrieving revision 1.10
 diff -r1.10 ng_gif_demux.c
 263c263
 < 			return (EPFNOSUPPORT);
 ---
 > 			return (EINVAL);
 Index: ng_iface.c
 ===================================================================
 RCS file: /home/ncvs/src/sys/netgraph/ng_iface.c,v
 retrieving revision 1.41
 diff -r1.41 ng_iface.c
 527c527
 < 		return (EPFNOSUPPORT);
 ---
 > 		return (EINVAL);
 Index: ng_split.c
 ===================================================================
 RCS file: /home/ncvs/src/sys/netgraph/ng_split.c,v
 retrieving revision 1.5
 diff -r1.5 ng_split.c
 116c116
 < 		return (EPFNOSUPPORT);
 ---
 > 		return (EINVAL);
 
 --GvXjxJ+pjyke8COw--


More information about the freebsd-bugs mailing list