1/* 2 * Input/Output VJ Compressed packets 3 * 4 * Written by Toshiharu OHNO (tony-o@iij.ad.jp) 5 * 6 * Copyright (C) 1993, Internet Initiative Japan, Inc. All rights reserverd. 7 * 8 * Redistribution and use in source and binary forms are permitted 9 * provided that the above copyright notice and this paragraph are 10 * duplicated in all such forms and that any documentation, 11 * advertising materials, and other materials related to such 12 * distribution and use acknowledge that the software was developed 13 * by the Internet Initiative Japan, Inc. The name of the 14 * IIJ may not be used to endorse or promote products derived 15 * from this software without specific prior written permission. 16 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR 17 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED 18 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. 19 *
| 1/* 2 * Input/Output VJ Compressed packets 3 * 4 * Written by Toshiharu OHNO (tony-o@iij.ad.jp) 5 * 6 * Copyright (C) 1993, Internet Initiative Japan, Inc. All rights reserverd. 7 * 8 * Redistribution and use in source and binary forms are permitted 9 * provided that the above copyright notice and this paragraph are 10 * duplicated in all such forms and that any documentation, 11 * advertising materials, and other materials related to such 12 * distribution and use acknowledge that the software was developed 13 * by the Internet Initiative Japan, Inc. The name of the 14 * IIJ may not be used to endorse or promote products derived 15 * from this software without specific prior written permission. 16 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR 17 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED 18 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. 19 *
|
20 * $Id: vjcomp.c,v 1.8 1997/06/09 03:27:43 brian Exp $
| 20 * $Id: vjcomp.c,v 1.9 1997/08/25 00:29:32 brian Exp $
|
21 * 22 * TODO: 23 */ 24#include "fsm.h" 25#include "lcpproto.h" 26#include <netinet/in_systm.h> 27#include <netinet/ip.h> 28#include "slcompress.h" 29#include "hdlc.h" 30#include "ipcp.h" 31 32#define MAX_VJHEADER 16 /* Maximum size of compressed header */ 33 34struct slcompress cslc; 35 36void
| 21 * 22 * TODO: 23 */ 24#include "fsm.h" 25#include "lcpproto.h" 26#include <netinet/in_systm.h> 27#include <netinet/ip.h> 28#include "slcompress.h" 29#include "hdlc.h" 30#include "ipcp.h" 31 32#define MAX_VJHEADER 16 /* Maximum size of compressed header */ 33 34struct slcompress cslc; 35 36void
|
37VjInit()
| 37VjInit(int max_state)
|
38{
| 38{
|
39 sl_compress_init(&cslc);
| 39 sl_compress_init(&cslc, max_state);
|
40} 41 42void 43SendPppFrame(struct mbuf * bp) 44{ 45 int type; 46 int proto; 47 int cproto = IpcpInfo.his_compproto >> 16;
--- 96 unchanged lines hidden --- | 40} 41 42void 43SendPppFrame(struct mbuf * bp) 44{ 45 int type; 46 int proto; 47 int cproto = IpcpInfo.his_compproto >> 16;
--- 96 unchanged lines hidden --- |