Remove #ifdef for ancient source FreeBSD compat.
This commit is contained in:
parent
7093abc987
commit
20a9d324fd
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user