diff options
author | Gary Jennejohn <gj@FreeBSD.org> | 2000-04-03 19:54:33 +0000 |
---|---|---|
committer | Gary Jennejohn <gj@FreeBSD.org> | 2000-04-03 19:54:33 +0000 |
commit | 881048943390d6e5a88cc0c5fb88da73dfb688cc (patch) | |
tree | 474c0e396893e5bcb2bdd6e72a9667301c5cc0dc /sys/net | |
parent | 583fdf9862182437dd062ab4a434dd2da716cc0d (diff) | |
download | src-881048943390d6e5a88cc0c5fb88da73dfb688cc.tar.gz src-881048943390d6e5a88cc0c5fb88da73dfb688cc.zip |
Nuke csu_hdr from struct cspace. csu_hdr is not used anywhere in the
tree. This considerably reduces unnecessary bloat in struct slcompress.
I'm running with this change right now and have seen no negative
side-effects.
On my sytem this reduced kernel BSS by about 25KB.
Submitted by: bde
Approved by: brian for user-ppp
Notes
Notes:
svn path=/head/; revision=58982
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/slcompress.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/sys/net/slcompress.h b/sys/net/slcompress.h index ca7ed031ccfc..4e20c3768c40 100644 --- a/sys/net/slcompress.h +++ b/sys/net/slcompress.h @@ -41,7 +41,7 @@ #define _NET_SLCOMPRESS_H_ #define MAX_STATES 16 /* must be > 2 and < 256 */ -#define MAX_HDR MLEN /* XXX 4bsd-ism: should really be 128 */ +#define MAX_HDR 128 /* * Compressed packet format: @@ -119,13 +119,8 @@ 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; - union { - char csu_hdr[MAX_HDR]; - struct ip csu_ip; /* ip/tcp hdr from most recent packet */ - } slcs_u; + struct ip cs_ip; /* ip/tcp hdr from most recent packet */ }; -#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 |