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.
This commit is contained in:
Gary Jennejohn 2000-04-04 09:20:53 +00:00
parent 70fa0440ad
commit 27173c13e8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=59005
2 changed files with 14 additions and 3 deletions

View File

@ -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

View File

@ -102,8 +102,14 @@ struct cstate {
u_short 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