アドバイスありがとうございます。>>925さん>>926さん
>>925さんがupして出力している値を見たらどうかとおっしゃっていたので見てみたの
ですが、下記のように怪しいものは見つけられませんでした。
なお、NG_PPP_NODE_TYPEはnetgraph/ng_ppp.hで定義されているマクロのようです。
(gdb) up 3
#3 0x0000000000424558 in NgFuncInit (b=0x55502c,
reqIface=0x7fffffffde30 "mpd1488-flets") at ngfunc.c:225
225 Log(LG_ALWAYS, ("[%s] %s node is \"%s\"",
(gdb) list
220 NGM_GENERIC_COOKIE, NGM_NAME, &nm, sizeof(nm)) < 0) {
221 Log(LG_ERR, ("[%s] can't name %s node: %s",
222 b->name, NG_PPP_NODE_TYPE, strerror(errno)));
223 goto fail;
224 }
225 Log(LG_ALWAYS, ("[%s] %s node is \"%s\"",
226 b->name, NG_PPP_NODE_TYPE, nm.name));
227
228 /* Get PPP node ID */
229 if (NgSendMsg(b->csock, MPD_HOOK_PPP,
(gdb) p b->name
$1 = "flets", '\0' <repeats 14 times>
(gdb) p nm.name
$2 = "mpd1488-flets", '\0' <repeats 18 times>