aboutsummaryrefslogtreecommitdiff
path: root/sys/net/slcompress.h
diff options
context:
space:
mode:
authorGary Jennejohn <gj@FreeBSD.org>2000-04-04 09:20:53 +0000
committerGary Jennejohn <gj@FreeBSD.org>2000-04-04 09:20:53 +0000
commit27173c13e8daa4340d60cd88927c23ec1bc125dc (patch)
tree38e6acb8af6dbb6250fccd8402eccb99f5b5d147 /sys/net/slcompress.h
parent70fa0440adfe4cc4db678dceab2a8a5fa9db3095 (diff)
downloadsrc-27173c13e8daa4340d60cd88927c23ec1bc125dc.tar.gz
src-27173c13e8daa4340d60cd88927c23ec1bc125dc.zip
Pass me the pointy hat.
It was not a good idea to remove csu_header from struct cspace, it had ramifications which I didn't notice. Restore src/usr.sbin/ppp/slcompress.h to the way it was, since MAX_HDR was already defined as 128 there and it's a user program anyway. In sys/net/slcompress.h make MAX_HDR 128 intead of MLEN to avoid bloat. My apologies for any inconvenience.
Notes
Notes: svn path=/head/; revision=59005
Diffstat (limited to 'sys/net/slcompress.h')
-rw-r--r--sys/net/slcompress.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/net/slcompress.h b/sys/net/slcompress.h
index 4e20c3768c40..6959db0671bb 100644
--- a/sys/net/slcompress.h
+++ b/sys/net/slcompress.h
@@ -119,8 +119,13 @@ struct cstate {
u_int16_t cs_hlen; /* size of hdr (receive only) */
u_char cs_id; /* connection # associated with this state */
u_char cs_filler;
- struct ip cs_ip; /* ip/tcp hdr from most recent packet */
+ union {
+ char csu_hdr[MAX_HDR];
+ struct ip csu_ip; /* ip/tcp hdr from most recent packet */
+ } slcs_u;
};
+#define cs_ip slcs_u.csu_ip
+#define cs_hdr slcs_u.csu_hdr
/*
* all the state data for one serial line (we need one of these