vjcomp.c (46686) | vjcomp.c (46828) |
---|---|
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.27 1999/03/31 14:21:46 brian Exp $ | 20 * $Id: vjcomp.c,v 1.28 1999/05/08 11:07:55 brian Exp $ |
21 * 22 * TODO: 23 */ 24#include <sys/param.h> 25#include <netinet/in.h> 26#include <netinet/in_systm.h> 27#include <netinet/ip.h> 28#include <sys/un.h> --- 65 unchanged lines hidden (view full) --- 94 return NULL; 95 } 96 } 97 98 return bp; 99} 100 101static struct mbuf * | 21 * 22 * TODO: 23 */ 24#include <sys/param.h> 25#include <netinet/in.h> 26#include <netinet/in_systm.h> 27#include <netinet/ip.h> 28#include <sys/un.h> --- 65 unchanged lines hidden (view full) --- 94 return NULL; 95 } 96 } 97 98 return bp; 99} 100 101static struct mbuf * |
102VjUncompressTcp(struct ipcp *ipcp, struct mbuf * bp, u_char type) | 102VjUncompressTcp(struct ipcp *ipcp, struct mbuf *bp, u_char type) |
103{ 104 u_char *bufp; 105 int len, olen, rlen; 106 struct mbuf *nbp; 107 u_char work[MAX_HDR + MAX_VJHEADER]; /* enough to hold TCP/IP header */ 108 109 bp = mbuf_Contiguous(bp); 110 olen = len = mbuf_Length(bp); --- 77 unchanged lines hidden --- | 103{ 104 u_char *bufp; 105 int len, olen, rlen; 106 struct mbuf *nbp; 107 u_char work[MAX_HDR + MAX_VJHEADER]; /* enough to hold TCP/IP header */ 108 109 bp = mbuf_Contiguous(bp); 110 olen = len = mbuf_Length(bp); --- 77 unchanged lines hidden --- |