summaryrefslogtreecommitdiff
path: root/sys/net/if_sppp.h
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2006-02-24 20:34:35 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2006-02-24 20:34:35 +0000
commit50f15d0094806b70c20ce93691e8c1bb178f7e17 (patch)
tree62b2472c71626c8d1a3ddcd30ca39cb06bc999d5 /sys/net/if_sppp.h
parente1745cc87d6f8a1f9ff11714c733bbc2f09de7fa (diff)
Another gem from the the-world-runs-on-i386 departement. Using u_long in
a packet format causes some troubles on 64bit archs. This fixes a sppp(4) panic I got on alpha and makes cisco HDLC mode actually work. More cleanup needs to be done post 3.9. OK brad@ looks good canacar@
Diffstat (limited to 'sys/net/if_sppp.h')
-rw-r--r--sys/net/if_sppp.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/net/if_sppp.h b/sys/net/if_sppp.h
index b02f4c3d071..a26e8a427d3 100644
--- a/sys/net/if_sppp.h
+++ b/sys/net/if_sppp.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_sppp.h,v 1.9 2005/03/23 00:26:06 canacar Exp $ */
+/* $OpenBSD: if_sppp.h,v 1.10 2006/02/24 20:34:34 claudio Exp $ */
/* $NetBSD: if_sppp.h,v 1.2.2.1 1999/04/04 06:57:39 explorer Exp $ */
/*
@@ -107,8 +107,8 @@ struct sppp {
u_int pp_framebytes; /* number of bytes added by hardware framing */
u_short pp_alivecnt; /* keepalive packets counter */
u_short pp_loopcnt; /* loopback detection counter */
- u_long pp_seq; /* local sequence number */
- u_long pp_rseq; /* remote sequence number */
+ u_int32_t pp_seq; /* local sequence number */
+ u_int32_t pp_rseq; /* remote sequence number */
time_t pp_last_receive; /* peer's last "sign of life" */
time_t pp_last_activity; /* second of last payload data s/r */
enum ppp_phase pp_phase; /* phase we're currently in */