summaryrefslogtreecommitdiffstats
path: root/sys/net/if_spppsubr.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2004-01-21 19:02:02 +0000
committerphk <phk@FreeBSD.org>2004-01-21 19:02:02 +0000
commit20a9d324fd7af462b03aeae0ee4a5fdda5925519 (patch)
tree3388050674df26701c00807658c2abfac898a14a /sys/net/if_spppsubr.c
parent7093abc9870a107e9dbe866645aa4ee6b8533d9a (diff)
downloadFreeBSD-src-20a9d324fd7af462b03aeae0ee4a5fdda5925519.zip
FreeBSD-src-20a9d324fd7af462b03aeae0ee4a5fdda5925519.tar.gz
Remove #ifdef for ancient source FreeBSD compat.
Diffstat (limited to 'sys/net/if_spppsubr.c')
-rw-r--r--sys/net/if_spppsubr.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/sys/net/if_spppsubr.c b/sys/net/if_spppsubr.c
index 27e7638..0853e55 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,
OpenPOWER on IntegriCloud