Commit 2c151460 authored by Matthieu Boutier's avatar Matthieu Boutier Committed by Juliusz Chroboczek

Simpler install filter (don't match ifindex).

parent abe653ba
......@@ -1096,12 +1096,11 @@ redistribute_filter(const unsigned char *prefix, unsigned short plen,
int
install_filter(const unsigned char *prefix, unsigned short plen,
const unsigned char *src_prefix, unsigned short src_plen,
unsigned int ifindex,
struct filter_result *result)
{
int res;
res = do_filter(install_filters, NULL, prefix, plen,
src_prefix, src_plen, NULL, ifindex, 0, result);
src_prefix, src_plen, NULL, 0, 0, result);
if(res < 0)
res = INFINITY;
return res;
......
......@@ -64,5 +64,5 @@ int redistribute_filter(const unsigned char *prefix, unsigned short plen,
struct filter_result *result);
int install_filter(const unsigned char *prefix, unsigned short plen,
const unsigned char *src_prefix, unsigned short src_plen,
unsigned int ifindex, struct filter_result *result);
struct filter_result *result);
int finalise_config(void);
......@@ -963,7 +963,7 @@ kernel_route(int operation, const unsigned char *dest, unsigned short plen,
ipv4 = v4mapped(gate);
install_filter(dest, plen, src, src_plen, ifindex, &filter_result);
install_filter(dest, plen, src, src_plen, &filter_result);
if(filter_result.table) {
table = filter_result.table;
} else if(src_plen == 0) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment