ip_fastfwd.c (215317) | ip_fastfwd.c (215701) |
---|---|
1/*- 2 * Copyright (c) 2003 Andre Oppermann, Internet Business Solutions AG 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 --- 60 unchanged lines hidden (view full) --- 69 */ 70 71/* 72 * Many thanks to Matt Thomas of NetBSD for basic structure of ip_flow.c which 73 * is being followed here. 74 */ 75 76#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2003 Andre Oppermann, Internet Business Solutions AG 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 --- 60 unchanged lines hidden (view full) --- 69 */ 70 71/* 72 * Many thanks to Matt Thomas of NetBSD for basic structure of ip_flow.c which 73 * is being followed here. 74 */ 75 76#include <sys/cdefs.h> |
77__FBSDID("$FreeBSD: head/sys/netinet/ip_fastfwd.c 215317 2010-11-14 20:38:11Z dim $"); | 77__FBSDID("$FreeBSD: head/sys/netinet/ip_fastfwd.c 215701 2010-11-22 19:32:54Z dim $"); |
78 79#include "opt_ipfw.h" 80#include "opt_ipstealth.h" 81 82#include <sys/param.h> 83#include <sys/systm.h> 84#include <sys/kernel.h> 85#include <sys/malloc.h> --- 15 unchanged lines hidden (view full) --- 101#include <netinet/in_var.h> 102#include <netinet/ip.h> 103#include <netinet/ip_var.h> 104#include <netinet/ip_icmp.h> 105#include <netinet/ip_options.h> 106 107#include <machine/in_cksum.h> 108 | 78 79#include "opt_ipfw.h" 80#include "opt_ipstealth.h" 81 82#include <sys/param.h> 83#include <sys/systm.h> 84#include <sys/kernel.h> 85#include <sys/malloc.h> --- 15 unchanged lines hidden (view full) --- 101#include <netinet/in_var.h> 102#include <netinet/ip.h> 103#include <netinet/ip_var.h> 104#include <netinet/ip_icmp.h> 105#include <netinet/ip_options.h> 106 107#include <machine/in_cksum.h> 108 |
109STATIC_VNET_DEFINE(int, ipfastforward_active); | 109static VNET_DEFINE(int, ipfastforward_active); |
110#define V_ipfastforward_active VNET(ipfastforward_active) 111 112SYSCTL_VNET_INT(_net_inet_ip, OID_AUTO, fastforwarding, CTLFLAG_RW, 113 &VNET_NAME(ipfastforward_active), 0, "Enable fast IP forwarding"); 114 115static struct sockaddr_in * 116ip_findroute(struct route *ro, struct in_addr dest, struct mbuf *m) 117{ --- 500 unchanged lines hidden --- | 110#define V_ipfastforward_active VNET(ipfastforward_active) 111 112SYSCTL_VNET_INT(_net_inet_ip, OID_AUTO, fastforwarding, CTLFLAG_RW, 113 &VNET_NAME(ipfastforward_active), 0, "Enable fast IP forwarding"); 114 115static struct sockaddr_in * 116ip_findroute(struct route *ro, struct in_addr dest, struct mbuf *m) 117{ --- 500 unchanged lines hidden --- |