if_pfsync.c (248207) | if_pfsync.c (249925) |
---|---|
1/*- 2 * Copyright (c) 2002 Michael Shalayeff 3 * Copyright (c) 2012 Gleb Smirnoff <glebius@FreeBSD.org> 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 44 unchanged lines hidden (view full) --- 53 * 1.128 - cleanups 54 * 1.146 - bzero() mbuf before sparsely filling it with data 55 * 1.170 - SIOCSIFMTU checks 56 * 1.126, 1.142 - deferred packets processing 57 * 1.173 - correct expire time processing 58 */ 59 60#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2002 Michael Shalayeff 3 * Copyright (c) 2012 Gleb Smirnoff <glebius@FreeBSD.org> 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 44 unchanged lines hidden (view full) --- 53 * 1.128 - cleanups 54 * 1.146 - bzero() mbuf before sparsely filling it with data 55 * 1.170 - SIOCSIFMTU checks 56 * 1.126, 1.142 - deferred packets processing 57 * 1.173 - correct expire time processing 58 */ 59 60#include <sys/cdefs.h> |
61__FBSDID("$FreeBSD: head/sys/netpfil/pf/if_pfsync.c 248207 2013-03-12 13:42:47Z glebius $"); | 61__FBSDID("$FreeBSD: head/sys/netpfil/pf/if_pfsync.c 249925 2013-04-26 12:50:32Z glebius $"); |
62 63#include "opt_inet.h" 64#include "opt_inet6.h" 65#include "opt_pf.h" 66 67#include <sys/param.h> 68#include <sys/bus.h> 69#include <sys/endian.h> --- 180 unchanged lines hidden (view full) --- 250 "PFSYNC statistics (struct pfsyncstats, net/if_pfsync.h)"); 251SYSCTL_INT(_net_pfsync, OID_AUTO, carp_demotion_factor, CTLFLAG_RW, 252 &VNET_NAME(pfsync_carp_adj), 0, "pfsync's CARP demotion factor adjustment"); 253 254static int pfsync_clone_create(struct if_clone *, int, caddr_t); 255static void pfsync_clone_destroy(struct ifnet *); 256static int pfsync_alloc_scrub_memory(struct pfsync_state_peer *, 257 struct pf_state_peer *); | 62 63#include "opt_inet.h" 64#include "opt_inet6.h" 65#include "opt_pf.h" 66 67#include <sys/param.h> 68#include <sys/bus.h> 69#include <sys/endian.h> --- 180 unchanged lines hidden (view full) --- 250 "PFSYNC statistics (struct pfsyncstats, net/if_pfsync.h)"); 251SYSCTL_INT(_net_pfsync, OID_AUTO, carp_demotion_factor, CTLFLAG_RW, 252 &VNET_NAME(pfsync_carp_adj), 0, "pfsync's CARP demotion factor adjustment"); 253 254static int pfsync_clone_create(struct if_clone *, int, caddr_t); 255static void pfsync_clone_destroy(struct ifnet *); 256static int pfsync_alloc_scrub_memory(struct pfsync_state_peer *, 257 struct pf_state_peer *); |
258static int pfsyncoutput(struct ifnet *, struct mbuf *, struct sockaddr *, 259 struct route *); | 258static int pfsyncoutput(struct ifnet *, struct mbuf *, 259 const struct sockaddr *, struct route *); |
260static int pfsyncioctl(struct ifnet *, u_long, caddr_t); 261 262static int pfsync_defer(struct pf_state *, struct mbuf *); 263static void pfsync_undefer(struct pfsync_deferral *, int); 264static void pfsync_undefer_state(struct pf_state *, int); 265static void pfsync_defer_tmo(void *); 266 267static void pfsync_request_update(u_int32_t, u_int64_t); --- 974 unchanged lines hidden (view full) --- 1242{ 1243 V_pfsyncstats.pfsyncs_badact++; 1244 1245 m_freem(m); 1246 return (-1); 1247} 1248 1249static int | 260static int pfsyncioctl(struct ifnet *, u_long, caddr_t); 261 262static int pfsync_defer(struct pf_state *, struct mbuf *); 263static void pfsync_undefer(struct pfsync_deferral *, int); 264static void pfsync_undefer_state(struct pf_state *, int); 265static void pfsync_defer_tmo(void *); 266 267static void pfsync_request_update(u_int32_t, u_int64_t); --- 974 unchanged lines hidden (view full) --- 1242{ 1243 V_pfsyncstats.pfsyncs_badact++; 1244 1245 m_freem(m); 1246 return (-1); 1247} 1248 1249static int |
1250pfsyncoutput(struct ifnet *ifp, struct mbuf *m, struct sockaddr *dst, | 1250pfsyncoutput(struct ifnet *ifp, struct mbuf *m, const struct sockaddr *dst, |
1251 struct route *rt) 1252{ 1253 m_freem(m); 1254 return (0); 1255} 1256 1257/* ARGSUSED */ 1258static int --- 1145 unchanged lines hidden --- | 1251 struct route *rt) 1252{ 1253 m_freem(m); 1254 return (0); 1255} 1256 1257/* ARGSUSED */ 1258static int --- 1145 unchanged lines hidden --- |