diff options
author | gj <gj@FreeBSD.org> | 2000-04-03 19:54:33 +0000 |
---|---|---|
committer | gj <gj@FreeBSD.org> | 2000-04-03 19:54:33 +0000 |
commit | 08bbcfe72fdb6314543015e5a8831a6ff7dff417 (patch) | |
tree | b2ee93375a78d2083e4cc615b76507989e9cfabe /usr.sbin/ppp/slcompress.h | |
parent | 1e3d124ac52472835eac4d0b197a9ab29101ca97 (diff) | |
download | FreeBSD-src-08bbcfe72fdb6314543015e5a8831a6ff7dff417.zip FreeBSD-src-08bbcfe72fdb6314543015e5a8831a6ff7dff417.tar.gz |
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
Diffstat (limited to 'usr.sbin/ppp/slcompress.h')
-rw-r--r-- | usr.sbin/ppp/slcompress.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/usr.sbin/ppp/slcompress.h b/usr.sbin/ppp/slcompress.h index 223f659..85aee74 100644 --- a/usr.sbin/ppp/slcompress.h +++ b/usr.sbin/ppp/slcompress.h @@ -102,15 +102,9 @@ struct cstate { u_short 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 * per line). |