FreeBSD kernel IPv4 code
|
#include <sys/cdefs.h>
#include "opt_ipstealth.h"
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/kernel.h>
#include <sys/malloc.h>
#include <sys/mbuf.h>
#include <sys/protosw.h>
#include <sys/sdt.h>
#include <sys/socket.h>
#include <sys/sysctl.h>
#include <net/if.h>
#include <net/if_types.h>
#include <net/if_var.h>
#include <net/if_dl.h>
#include <net/pfil.h>
#include <net/route.h>
#include <net/route/nhop.h>
#include <net/vnet.h>
#include <netinet/in.h>
#include <netinet/in_fib.h>
#include <netinet/in_kdtrace.h>
#include <netinet/in_systm.h>
#include <netinet/in_var.h>
#include <netinet/ip.h>
#include <netinet/ip_var.h>
#include <netinet/ip_icmp.h>
#include <netinet/ip_options.h>
#include <machine/in_cksum.h>
Go to the source code of this file.
Macros | |
#define | V_ipsendredirects VNET(ipsendredirects) |
Functions | |
__FBSDID ("$FreeBSD$") | |
static struct mbuf * | ip_redir_alloc (struct mbuf *m, struct nhop_object *nh, u_short ip_len, struct in_addr *osrc, struct in_addr *newgw) |
static int | ip_findroute (struct nhop_object **pnh, struct in_addr dest, struct mbuf *m) |
struct mbuf * | ip_tryforward (struct mbuf *m) |
#define V_ipsendredirects VNET(ipsendredirects) |
Definition at line 106 of file ip_fastfwd.c.
__FBSDID | ( | "$FreeBSD$" | ) |
|
static |
Definition at line 193 of file ip_fastfwd.c.
References fib4_lookup(), icmp_error(), ICMP_UNREACH, ICMP_UNREACH_HOST, and IPSTAT_INC.
Referenced by ip_tryforward().
|
static |
Definition at line 109 of file ip_fastfwd.c.
References in_ifaddr::ia_subnet, in_ifaddr::ia_subnetmask, ip_len, and in_addr::s_addr.
Referenced by ip_tryforward().
struct mbuf * ip_tryforward | ( | struct mbuf * | m | ) |
Definition at line 233 of file ip_fastfwd.c.
References icmp_error(), ICMP_REDIRECT, ICMP_REDIRECT_HOST, ICMP_TIMXCEED, ICMP_TIMXCEED_INTRANS, ICMP_UNREACH, ICMP_UNREACH_FILTER_PROHIB, ICMP_UNREACH_NEEDFRAG, in_localip(), INADDR_ANY, INADDR_BROADCAST, IP_DF, ip::ip_dst, ip_findroute(), ip_fragment(), ip::ip_hl, ip_len, ip::ip_len, ip_off, ip::ip_off, IP_PROBE, ip_redir_alloc(), ip::ip_sum, ip::ip_ttl, IPSTAT_INC, IPTTLDEC, in_addr::s_addr, sockaddr_in::sin_addr, sockaddr_in::sin_family, sockaddr_in::sin_len, V_inet_pfil_head, V_ip_doopts, and V_ipsendredirects.
Referenced by ip_input().