From owner-freebsd-net Thu Dec 23 3:45:33 1999 Delivered-To: freebsd-net@freebsd.org Received: from hanoi.cronyx.ru (hanoi.cronyx.ru [144.206.181.53]) by hub.freebsd.org (Postfix) with ESMTP id 52090155DE for ; Thu, 23 Dec 1999 03:44:39 -0800 (PST) (envelope-from rik@cronyx.ru) Received: from cronyx.ru by hanoi.cronyx.ru with ESMTP id OAA07999; (8.9.3/vak/2.1) Thu, 23 Dec 1999 14:45:59 +0300 (MSK) Message-ID: <38620B06.C3F3D771@cronyx.ru> Date: Thu, 23 Dec 1999 14:44:07 +0300 From: Kurakin Roman X-Mailer: Mozilla 4.6 [en] (WinNT; I) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-net@FreeBSD.ORG Subject: Bug in mpd Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hello, I have found a bug in mpd. It can't connect to netgraph based driver for serial card. Problem in file ng.c in function NgOpen(). static void NgOpen(PhysInfo p) { NgInfo const ng = (NgInfo) p->info; char linkHook[NG_HOOKLEN + 1]; + char MyName[NG_NODELEN + 1]; snprintf(linkHook, sizeof(linkHook), "%s%d", NG_PPP_HOOK_LINK_PREFIX, lnk->bundleIndex); +snprintf(MyName,sizeof(MyName), "mpd%d-%s:", getpid(), lnk->bund->name); - if (NgFuncConnect(ng->path, ng->hook, MPD_HOOK_PPP, linkHook) < 0) + if (NgFuncConnect(ng->path, ng->hook, MyName, linkHook) < 0) PhysDown(STR_CON_FAILED0, NULL); else PhysUp(); } Kurakin Roman To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message