linux/net/bridge/netfilter/ebtable_broute.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 *  ebtable_broute
 *
 *	Authors:
 *	Bart De Schuymer <[email protected]>
 *
 *  April, 2002
 *
 *  This table lets you choose between routing and bridging for frames
 *  entering on a bridge enslaved nic. This table is traversed before any
 *  other ebtables table. See net/bridge/br_input.c.
 */

#include <linux/netfilter_bridge/ebtables.h>
#include <linux/module.h>
#include <linux/if_bridge.h>

#include "../br_private.h"

/* EBT_ACCEPT means the frame will be bridged
 * EBT_DROP means the frame will be routed
 */
static struct ebt_entries initial_chain =;

static struct ebt_replace_kernel initial_table =;

static const struct ebt_table broute_table =;

static unsigned int ebt_broute(void *priv, struct sk_buff *skb,
			       const struct nf_hook_state *s)
{}

static const struct nf_hook_ops ebt_ops_broute =;

static int broute_table_init(struct net *net)
{}

static void __net_exit broute_net_pre_exit(struct net *net)
{}

static void __net_exit broute_net_exit(struct net *net)
{}

static struct pernet_operations broute_net_ops =;

static int __init ebtable_broute_init(void)
{}

static void __exit ebtable_broute_fini(void)
{}

module_init();
module_exit(ebtable_broute_fini);
MODULE_LICENSE();
MODULE_DESCRIPTION();