Date: Thu, 23 Dec 1999 14:44:07 +0300 From: Kurakin Roman <rik@cronyx.ru> To: freebsd-net@FreeBSD.ORG Subject: Bug in mpd Message-ID: <38620B06.C3F3D771@cronyx.ru>
index | next in thread | raw e-mail
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
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?38620B06.C3F3D771>
