-----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: [EMAIL PROTECTED] 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-----
--- 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 {
_______________________________________________ freebsd-net@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "[EMAIL PROTECTED]"