pkgsrc/net/pppd/patches/patch-bh
cube 3e86158156 Initial import of pppd, version 2.4.3, into the NetBSD Package Collection.
The PPP Daemon is the userland part of the Point-to-Point Protocol.  It works
in combination with a dedicated kernel network interface usually named ppp.
PPP is a very extensible protocol and pppd supports a large number of options,
including compression (through various algorithms), cryptography (Microsoft's
MPPE) and authentication (PAP, CHAP, Microsoft CHAP), provided the kernel has
the relevant back-ends in some cases.
2005-01-02 02:51:40 +00:00

37 lines
1.5 KiB
Text

$NetBSD: patch-bh,v 1.1.1.1 2005/01/02 02:51:44 cube Exp $
--- pppdump/ppp-comp.h.orig 2002-12-06 10:49:16.000000000 +0100
+++ pppdump/ppp-comp.h
@@ -57,6 +57,19 @@
struct compressor {
int compress_proto; /* CCP compression protocol number */
+ /* Allocate space for a compressor (transmit side) */
+ void *(*comp_alloc) __P((u_char *, int));
+ /* Free space used by a compressor */
+ void (*comp_free) __P((void *));
+ /* Initialize a compressor */
+ int (*comp_init) __P((void *, u_char *, int, int, int, int));
+ /* Reset a compressor */
+ void (*comp_reset) __P((void *));
+ /* Compress a packet */
+ int (*compress) __P((void *, PACKETPTR *, PACKETPTR));
+ /* Return compression statistics */
+ void (*comp_stat) __P((void *, struct compstat *));
+
/* Allocate space for a decompressor (receive side) */
void *(*decomp_alloc) __P((u_char *options, int opt_len));
/* Free space used by a decompressor */
@@ -67,10 +80,9 @@ struct compressor {
/* Reset a decompressor */
void (*decomp_reset) __P((void *state));
/* Decompress a packet. */
- int (*decompress) __P((void *state, u_char *mp, int inlen,
- u_char *dmp, int *outlen));
+ int (*decompress) __P((void *state, PACKETPTR, PACKETPTR *));
/* Update state for an incompressible packet received */
- void (*incomp) __P((void *state, u_char *mp, int len));
+ void (*incomp) __P((void *state, PACKETPTR));
/* Return decompression statistics */
void (*decomp_stat) __P((void *state, struct compstat *stats));
};