if_gif.c (276148) | if_gif.c (276215) |
---|---|
1/*- 2 * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 16 unchanged lines hidden (view full) --- 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * 29 * $KAME: if_gif.c,v 1.87 2001/10/19 08:50:27 itojun Exp $ 30 */ 31 32#include <sys/cdefs.h> | 1/*- 2 * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 16 unchanged lines hidden (view full) --- 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * 29 * $KAME: if_gif.c,v 1.87 2001/10/19 08:50:27 itojun Exp $ 30 */ 31 32#include <sys/cdefs.h> |
33__FBSDID("$FreeBSD: head/sys/net/if_gif.c 276148 2014-12-23 16:17:37Z ae $"); | 33__FBSDID("$FreeBSD: head/sys/net/if_gif.c 276215 2014-12-25 21:32:37Z ae $"); |
34 35#include "opt_inet.h" 36#include "opt_inet6.h" 37 38#include <sys/param.h> 39#include <sys/systm.h> 40#include <sys/jail.h> 41#include <sys/kernel.h> --- 71 unchanged lines hidden (view full) --- 113#define GIF_LIST_LOCK(x) mtx_lock(&V_gif_mtx) 114#define GIF_LIST_UNLOCK(x) mtx_unlock(&V_gif_mtx) 115 116void (*ng_gif_input_p)(struct ifnet *ifp, struct mbuf **mp, int af); 117void (*ng_gif_input_orphan_p)(struct ifnet *ifp, struct mbuf *m, int af); 118void (*ng_gif_attach_p)(struct ifnet *ifp); 119void (*ng_gif_detach_p)(struct ifnet *ifp); 120 | 34 35#include "opt_inet.h" 36#include "opt_inet6.h" 37 38#include <sys/param.h> 39#include <sys/systm.h> 40#include <sys/jail.h> 41#include <sys/kernel.h> --- 71 unchanged lines hidden (view full) --- 113#define GIF_LIST_LOCK(x) mtx_lock(&V_gif_mtx) 114#define GIF_LIST_UNLOCK(x) mtx_unlock(&V_gif_mtx) 115 116void (*ng_gif_input_p)(struct ifnet *ifp, struct mbuf **mp, int af); 117void (*ng_gif_input_orphan_p)(struct ifnet *ifp, struct mbuf *m, int af); 118void (*ng_gif_attach_p)(struct ifnet *ifp); 119void (*ng_gif_detach_p)(struct ifnet *ifp); 120 |
121#ifdef INET 122extern int in_gif_output(struct ifnet *, struct mbuf *, int, uint8_t); 123extern int in_gif_encapcheck(const struct mbuf *, int, int, void *); 124extern int in_gif_attach(struct gif_softc *); 125#endif 126#ifdef INET6 127extern int in6_gif_output(struct ifnet *, struct mbuf *, int, uint8_t); 128extern int in6_gif_encapcheck(const struct mbuf *, int, int, void *); 129extern int in6_gif_attach(struct gif_softc *); 130#endif | |
131static int gif_set_tunnel(struct ifnet *, struct sockaddr *, 132 struct sockaddr *); 133static void gif_delete_tunnel(struct ifnet *); 134static int gif_ioctl(struct ifnet *, u_long, caddr_t); 135static int gif_transmit(struct ifnet *, struct mbuf *); 136static void gif_qflush(struct ifnet *); 137static int gif_clone_create(struct if_clone *, int, caddr_t); 138static void gif_clone_destroy(struct ifnet *); --- 961 unchanged lines hidden --- | 121static int gif_set_tunnel(struct ifnet *, struct sockaddr *, 122 struct sockaddr *); 123static void gif_delete_tunnel(struct ifnet *); 124static int gif_ioctl(struct ifnet *, u_long, caddr_t); 125static int gif_transmit(struct ifnet *, struct mbuf *); 126static void gif_qflush(struct ifnet *); 127static int gif_clone_create(struct if_clone *, int, caddr_t); 128static void gif_clone_destroy(struct ifnet *); --- 961 unchanged lines hidden --- |