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
This commit is contained in:
parent
583fdf9862
commit
8810489433
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=58982
@ -41,7 +41,7 @@
|
|||||||
#define _NET_SLCOMPRESS_H_
|
#define _NET_SLCOMPRESS_H_
|
||||||
|
|
||||||
#define MAX_STATES 16 /* must be > 2 and < 256 */
|
#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:
|
* Compressed packet format:
|
||||||
@ -119,13 +119,8 @@ struct cstate {
|
|||||||
u_int16_t cs_hlen; /* size of hdr (receive only) */
|
u_int16_t cs_hlen; /* size of hdr (receive only) */
|
||||||
u_char cs_id; /* connection # associated with this state */
|
u_char cs_id; /* connection # associated with this state */
|
||||||
u_char cs_filler;
|
u_char cs_filler;
|
||||||
union {
|
struct ip cs_ip; /* ip/tcp hdr from most recent packet */
|
||||||
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
|
* all the state data for one serial line (we need one of these
|
||||||
|
@ -102,15 +102,9 @@ struct cstate {
|
|||||||
u_short cs_hlen; /* size of hdr (receive only) */
|
u_short cs_hlen; /* size of hdr (receive only) */
|
||||||
u_char cs_id; /* connection # associated with this state */
|
u_char cs_id; /* connection # associated with this state */
|
||||||
u_char cs_filler;
|
u_char cs_filler;
|
||||||
union {
|
struct ip cs_ip; /* ip/tcp hdr from most recent packet */
|
||||||
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
|
* all the state data for one serial line (we need one of these
|
||||||
* per line).
|
* per line).
|
||||||
|
Loading…
Reference in New Issue
Block a user