if_gif.c (92081) | if_gif.c (92725) |
---|---|
1/* $FreeBSD: head/sys/net/if_gif.c 92081 2002-03-11 09:26:07Z mux $ */ | 1/* $FreeBSD: head/sys/net/if_gif.c 92725 2002-03-19 21:54:18Z alfred $ */ |
2/* $KAME: if_gif.c,v 1.47 2001/05/01 05:28:42 itojun Exp $ */ 3 4/* 5 * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without 9 * modification, are permitted provided that the following conditions --- 74 unchanged lines hidden (view full) --- 84static MALLOC_DEFINE(M_GIF, "gif", "Generic Tunnel Interface"); 85static LIST_HEAD(, gif_softc) gif_softc_list; 86 87void (*ng_gif_input_p)(struct ifnet *ifp, struct mbuf **mp, int af); 88void (*ng_gif_input_orphan_p)(struct ifnet *ifp, struct mbuf *m, int af); 89void (*ng_gif_attach_p)(struct ifnet *ifp); 90void (*ng_gif_detach_p)(struct ifnet *ifp); 91 | 2/* $KAME: if_gif.c,v 1.47 2001/05/01 05:28:42 itojun Exp $ */ 3 4/* 5 * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without 9 * modification, are permitted provided that the following conditions --- 74 unchanged lines hidden (view full) --- 84static MALLOC_DEFINE(M_GIF, "gif", "Generic Tunnel Interface"); 85static LIST_HEAD(, gif_softc) gif_softc_list; 86 87void (*ng_gif_input_p)(struct ifnet *ifp, struct mbuf **mp, int af); 88void (*ng_gif_input_orphan_p)(struct ifnet *ifp, struct mbuf *m, int af); 89void (*ng_gif_attach_p)(struct ifnet *ifp); 90void (*ng_gif_detach_p)(struct ifnet *ifp); 91 |
92int gif_clone_create __P((struct if_clone *, int)); 93int gif_clone_destroy __P((struct ifnet *)); | 92int gif_clone_create(struct if_clone *, int); 93int gif_clone_destroy(struct ifnet *); |
94 95struct if_clone gif_cloner = IF_CLONE_INITIALIZER("gif", 96 gif_clone_create, gif_clone_destroy, IF_MAXUNIT); 97 | 94 95struct if_clone gif_cloner = IF_CLONE_INITIALIZER("gif", 96 gif_clone_create, gif_clone_destroy, IF_MAXUNIT); 97 |
98static int gifmodevent __P((module_t, int, void *)); 99void gif_delete_tunnel __P((struct gif_softc *)); 100static int gif_encapcheck __P((const struct mbuf *, int, int, void *)); | 98static int gifmodevent(module_t, int, void *); 99void gif_delete_tunnel(struct gif_softc *); 100static int gif_encapcheck(const struct mbuf *, int, int, void *); |
101 102#ifdef INET 103extern struct domain inetdomain; 104struct protosw in_gif_protosw = 105{ SOCK_RAW, &inetdomain, 0/*IPPROTO_IPV[46]*/, PR_ATOMIC|PR_ADDR, 106 in_gif_input, (pr_output_t*)rip_output, 0, rip_ctloutput, 107 0, 108 0, 0, 0, 0, --- 718 unchanged lines hidden --- | 101 102#ifdef INET 103extern struct domain inetdomain; 104struct protosw in_gif_protosw = 105{ SOCK_RAW, &inetdomain, 0/*IPPROTO_IPV[46]*/, PR_ATOMIC|PR_ADDR, 106 in_gif_input, (pr_output_t*)rip_output, 0, rip_ctloutput, 107 0, 108 0, 0, 0, 0, --- 718 unchanged lines hidden --- |