Problems with netgraph

Alexander Motin mav at FreeBSD.org
Sat May 10 16:51:21 UTC 2008


Oleksandr Samoylyk wrote:
> # ngctl show mpd24375-L-237-lt:
>   Name: mpd24375-L-237-lt Type: tee             ID: 0008e919   Num hooks: 2
>   Local hook      Peer name       Peer type    Peer ID         Peer hook
>   ----------      ---------       ---------    -------         ---------
>   right           mpd24375-B-607  ppp          0008e922        link0
>   left            <unnamed>       pptpgre      0008e91b        upper
> 
> It's "upper". And I don't know why :(
> The sources were updated before building new kernel on May, 5, 2008.
> The mpd5 port was rebuilt and restarted just few hours ago.

Here is mine:
%ngctl show mpd95052-L2-4-lt:
   Name: mpd95052-L2-4-lt Type: tee             ID: 000000eb   Num hooks: 2
   Local hook      Peer name       Peer type    Peer ID         Peer hook
   ----------      ---------       ---------    -------         ---------
   right           mpd95052-B1-1   ppp          000000f0        link0
   left            <unnamed>       pptpgre      000000ed        session_b826

Have you updated your world also? Mpd checks NG_PPTPGRE_HOOK_SESSION_F 
macro from /usr/include/netgraph/ng_pptpgre.h at the build time to 
detect this feature presence.

One more way to check this feature in mpd-5.1:
Without this feature:
# grep "PPTP: can't connect to" mpd5
#
With this feature present:
# grep "PPTP: can't connect to" mpd5
Binary file mpd5 matches
#

-- 
Alexander Motin


More information about the freebsd-net mailing list