Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Mar 2005 13:50:11 +0100 (CET)
From:      Richard Kojedzinszky <krichy@tvnetwork.hu>
To:        freebsd-net@freebsd.org
Subject:   ng_one2many.c
Message-ID:  <Pine.LNX.4.58.0503041347420.21725@krichy.tvnetwork.hu>

next in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi all!

I was happy to configure ng_one2many on my fbsd box, but when I tried to
collect statistics about the many* links of such a node, I've got an
EINVAL. I've looked for it iun the sources, and i found that there may be
a typo, where queries only for many0 are allowed. I attach a fix, please
let me know if it is right.

I am using 4_10_RELENG from cvsup.

Thanks in advance,
Kojedzinszky Richard
TvNetWork Rt.
E-mail: krichy@tvnetwork.hu
PGP: 0x24E79141
  Fingerprint = 6847 ECFF EF58 0C09 18A5  16CF 270F 0C6F 24E7 9141
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Made with pgp4pine 1.75-6

iD8DBQFCKFmFJw8MbyTnkUERAiLkAJ9eDy5Dn7Rso2NoGvxced5ACJNnQgCZAecT
nSDiGVMQlSO8H0xkalshfdA=
=0RMF
-----END PGP SIGNATURE-----

[-- Attachment #2 --]
--- src/sys/netgraph/ng_one2many.c	Wed Jul  3 01:44:02 2002
+++ /home/krichy/ng_one2many.c	Fri Mar  4 13:49:01 2005
@@ -336,7 +336,7 @@
 			linkNum = *((int32_t *)msg->data);
 			if (linkNum == NG_ONE2MANY_ONE_LINKNUM)
 				link = &priv->one;
-			else if (linkNum == 0
+			else if (linkNum >= 0
 			    && linkNum < NG_ONE2MANY_MAX_LINKS) {
 				link = &priv->many[linkNum];
 			} else {

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.58.0503041347420.21725>