summaryrefslogtreecommitdiffstats
path: root/sys/net/if_sppp.h
diff options
context:
space:
mode:
authorjoerg <joerg@FreeBSD.org>2001-12-27 16:49:31 +0000
committerjoerg <joerg@FreeBSD.org>2001-12-27 16:49:31 +0000
commit5a94a8f0c9bc2c0d694461b6c7dc6bf970529d9d (patch)
tree128cc1b68b29a4b0017a65e3cfe5b6c8a9dca17d /sys/net/if_sppp.h
parent5a63bf2b8472db6e8ec874be6b65b167f2ee7ceb (diff)
downloadFreeBSD-src-5a94a8f0c9bc2c0d694461b6c7dc6bf970529d9d.zip
FreeBSD-src-5a94a8f0c9bc2c0d694461b6c7dc6bf970529d9d.tar.gz
Implement VJ header compression for sppp.
This is the logical merge of rev 1.32 of i4b's old if_spppsubr.c (which was based on PR misc/11767), plus (i4b) rev 1.6 of i4b's if_ispppsubr.c, albeit with numerous stylistic and cosmetic changes. PR: misc/11767 Submitted by: i4b, Joachim Kuebart MFC after: 1 month
Diffstat (limited to 'sys/net/if_sppp.h')
-rw-r--r--sys/net/if_sppp.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/net/if_sppp.h b/sys/net/if_sppp.h
index 7560f59..c2d3e7d 100644
--- a/sys/net/if_sppp.h
+++ b/sys/net/if_sppp.h
@@ -51,6 +51,9 @@ struct sipcp {
#define IPV6CP_MYIFID_DYN 8 /* my ifid is dynamically assigned */
#endif
#define IPV6CP_MYIFID_SEEN 0x10 /* have seen his ifid already */
+#define IPCP_VJ 0x20 /* can use VJ compression */
+ int max_state; /* VJ: Max-Slot-Id */
+ int compress_cid; /* VJ: Comp-Slot-Id */
};
#define AUTHNAMELEN 32
@@ -99,6 +102,7 @@ struct sppp {
u_char confid[IDX_COUNT]; /* id of last configuration request */
int rst_counter[IDX_COUNT]; /* restart counter */
int fail_counter[IDX_COUNT]; /* negotiation failure counter */
+ int enable_vj; /* VJ header compression enabled */
struct callout_handle ch[IDX_COUNT]; /* per-proto and if callouts */
struct callout_handle pap_my_to_ch; /* PAP needs one more... */
struct slcp lcp; /* LCP params */
@@ -106,6 +110,7 @@ struct sppp {
struct sipcp ipv6cp; /* IPv6CP params */
struct sauth myauth; /* auth params, i'm peer */
struct sauth hisauth; /* auth params, i'm authenticator */
+ struct slcompress pp_comp; /* for VJ compression */
/*
* These functions are filled in by sppp_attach(), and are
* expected to be used by the lower layer (hardware) drivers
OpenPOWER on IntegriCloud