diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 2004-01-21 19:02:02 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2004-01-21 19:02:02 +0000 |
| commit | d1bab139fec8fb02462a3869210dd95741f80c1d (patch) | |
| tree | 3388050674df26701c00807658c2abfac898a14a /sys | |
| parent | 406b7fa3e04a75d04827cff58d7dc732f90d3a11 (diff) | |
Notes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/net/if_spppsubr.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/sys/net/if_spppsubr.c b/sys/net/if_spppsubr.c index 27e76383b214..0853e5575b63 100644 --- a/sys/net/if_spppsubr.c +++ b/sys/net/if_spppsubr.c @@ -1308,15 +1308,9 @@ sppp_cisco_send(struct sppp *sp, int type, long par1, long par2) struct ppp_header *h; struct cisco_packet *ch; struct mbuf *m; -#if defined(__FreeBSD__) && __FreeBSD__ >= 3 struct timeval tv; -#else - u_long t = (time.tv_sec - boottime.tv_sec) * 1000; -#endif -#if defined(__FreeBSD__) && __FreeBSD__ >= 3 getmicrouptime(&tv); -#endif MGETHDR (m, M_DONTWAIT, MT_DATA); if (! m) @@ -1335,13 +1329,8 @@ sppp_cisco_send(struct sppp *sp, int type, long par1, long par2) ch->par2 = htonl (par2); ch->rel = -1; -#if defined(__FreeBSD__) && __FreeBSD__ >= 3 ch->time0 = htons ((u_short) (tv.tv_sec >> 16)); ch->time1 = htons ((u_short) tv.tv_sec); -#else - ch->time0 = htons ((u_short) (t >> 16)); - ch->time1 = htons ((u_short) t); -#endif if (debug) log(LOG_DEBUG, |
