diff --git a/sysdeps/freebsd/ChangeLog b/sysdeps/freebsd/ChangeLog index 11fac2a7..ad5cd15a 100644 --- a/sysdeps/freebsd/ChangeLog +++ b/sysdeps/freebsd/ChangeLog @@ -1,3 +1,9 @@ +1999-03-18 Martin Baulig + + * ppp.c: Don't use `sppp.pp_phase' if we don't HAVE_I4B_ACCT. + This is an ugly hack until someone tells me which versions have + this field and which not. + 1999-02-25 Martin Baulig * prockernel.c, proctime.c: Applied patch Stanislav Grozev for diff --git a/sysdeps/freebsd/ppp.c b/sysdeps/freebsd/ppp.c index 895a6bbc..093148a1 100644 --- a/sysdeps/freebsd/ppp.c +++ b/sysdeps/freebsd/ppp.c @@ -110,10 +110,15 @@ glibtop_get_ppp_p (glibtop *server, glibtop_ppp *buf, unsigned short device) #ifdef HAVE_I4B_ACCT phase = data.sc_if_un.scu_sp.pp_phase; #else + /* FIXME: Which FreeBSD version have this field and + * which not. */ +#if 0 phase = data.pp_phase; +#endif #endif switch (phase) { +#ifdef HAVE_I4B_ACCT case PHASE_DEAD: case PHASE_TERMINATE: buf->state = GLIBTOP_PPP_STATE_HANGUP; @@ -122,6 +127,7 @@ glibtop_get_ppp_p (glibtop *server, glibtop_ppp *buf, unsigned short device) case PHASE_NETWORK: buf->state = GLIBTOP_PPP_STATE_ONLINE; break; +#endif default: buf->state = GLIBTOP_PPP_STATE_UNKNOWN; break;