ng_vjc.c (68876) | ng_vjc.c (69922) |
---|---|
1 2/* 3 * ng_vjc.c 4 * 5 * Copyright (c) 1996-1999 Whistle Communications, Inc. 6 * All rights reserved. 7 * 8 * Subject to the following obligations and disclaimer of warranty, use and --- 22 unchanged lines hidden (view full) --- 31 * SERVICES, LOSS OF USE, DATA OR PROFITS, HOWEVER CAUSED AND UNDER ANY 32 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 33 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 34 * THIS SOFTWARE, EVEN IF WHISTLE COMMUNICATIONS IS ADVISED OF THE POSSIBILITY 35 * OF SUCH DAMAGE. 36 * 37 * Author: Archie Cobbs <archie@freebsd.org> 38 * | 1 2/* 3 * ng_vjc.c 4 * 5 * Copyright (c) 1996-1999 Whistle Communications, Inc. 6 * All rights reserved. 7 * 8 * Subject to the following obligations and disclaimer of warranty, use and --- 22 unchanged lines hidden (view full) --- 31 * SERVICES, LOSS OF USE, DATA OR PROFITS, HOWEVER CAUSED AND UNDER ANY 32 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 33 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 34 * THIS SOFTWARE, EVEN IF WHISTLE COMMUNICATIONS IS ADVISED OF THE POSSIBILITY 35 * OF SUCH DAMAGE. 36 * 37 * Author: Archie Cobbs <archie@freebsd.org> 38 * |
39 * $FreeBSD: head/sys/netgraph/ng_vjc.c 68876 2000-11-18 15:17:43Z dwmalone $ | 39 * $FreeBSD: head/sys/netgraph/ng_vjc.c 69922 2000-12-12 18:52:14Z julian $ |
40 * $Whistle: ng_vjc.c,v 1.17 1999/11/01 09:24:52 julian Exp $ 41 */ 42 43/* 44 * This node performs Van Jacobson IP header (de)compression. 45 * You must have included net/slcompress.c in your kernel compilation. 46 */ 47 --- 179 unchanged lines hidden (view full) --- 227 NULL, 228 ng_vjc_constructor, 229 ng_vjc_rcvmsg, 230 ng_vjc_rmnode, 231 ng_vjc_newhook, 232 NULL, 233 NULL, 234 ng_vjc_rcvdata, | 40 * $Whistle: ng_vjc.c,v 1.17 1999/11/01 09:24:52 julian Exp $ 41 */ 42 43/* 44 * This node performs Van Jacobson IP header (de)compression. 45 * You must have included net/slcompress.c in your kernel compilation. 46 */ 47 --- 179 unchanged lines hidden (view full) --- 227 NULL, 228 ng_vjc_constructor, 229 ng_vjc_rcvmsg, 230 ng_vjc_rmnode, 231 ng_vjc_newhook, 232 NULL, 233 NULL, 234 ng_vjc_rcvdata, |
235 ng_vjc_rcvdata, | |
236 ng_vjc_disconnect, 237 ng_vjc_cmds 238}; 239NETGRAPH_INIT(vjc, &ng_vjc_typestruct); 240 241/************************************************************************ 242 NETGRAPH NODE METHODS 243 ************************************************************************/ --- 163 unchanged lines hidden (view full) --- 407 return (error); 408} 409 410/* 411 * Receive data 412 */ 413static int 414ng_vjc_rcvdata(hook_p hook, struct mbuf *m, meta_p meta, | 235 ng_vjc_disconnect, 236 ng_vjc_cmds 237}; 238NETGRAPH_INIT(vjc, &ng_vjc_typestruct); 239 240/************************************************************************ 241 NETGRAPH NODE METHODS 242 ************************************************************************/ --- 163 unchanged lines hidden (view full) --- 406 return (error); 407} 408 409/* 410 * Receive data 411 */ 412static int 413ng_vjc_rcvdata(hook_p hook, struct mbuf *m, meta_p meta, |
415 struct mbuf **ret_m, meta_p *ret_meta) | 414 struct mbuf **ret_m, meta_p *ret_meta, struct ng_mesg **resp) |
416{ 417 const node_p node = hook->node; 418 const priv_p priv = (priv_p) node->private; 419 int error = 0; 420 421 if (hook == priv->ip) { /* outgoing packet */ 422 u_int type = TYPE_IP; 423 --- 203 unchanged lines hidden --- | 415{ 416 const node_p node = hook->node; 417 const priv_p priv = (priv_p) node->private; 418 int error = 0; 419 420 if (hook == priv->ip) { /* outgoing packet */ 421 u_int type = TYPE_IP; 422 --- 203 unchanged lines hidden --- |