summaryrefslogtreecommitdiffstats
path: root/sbin/ipfw/ipfw2.h
diff options
context:
space:
mode:
authorluigi <luigi@FreeBSD.org>2009-12-15 09:46:27 +0000
committerluigi <luigi@FreeBSD.org>2009-12-15 09:46:27 +0000
commit84d17b9dde0bca3ba11491efd293d666259c204f (patch)
tree6801a26cde90c352ef557ec26fb56589ca42c654 /sbin/ipfw/ipfw2.h
parent507718c519a5c35f2ef041763a9715b79c33b177 (diff)
downloadFreeBSD-src-84d17b9dde0bca3ba11491efd293d666259c204f.zip
FreeBSD-src-84d17b9dde0bca3ba11491efd293d666259c204f.tar.gz
implement a new match option,
lookup {dst-ip|src-ip|dst-port|src-port|uid|jail} N which searches the specified field in table N and sets tablearg accordingly. With dst-ip or src-ip the option replicates two existing options. When used with other arguments, the option can be useful to quickly dispatch traffic based on other fields. Work supported by the Onelab project. MFC after: 1 week
Diffstat (limited to 'sbin/ipfw/ipfw2.h')
-rw-r--r--sbin/ipfw/ipfw2.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sbin/ipfw/ipfw2.h b/sbin/ipfw/ipfw2.h
index d3ce7fb..b393a7d 100644
--- a/sbin/ipfw/ipfw2.h
+++ b/sbin/ipfw/ipfw2.h
@@ -186,6 +186,7 @@ enum tokens {
TOK_FIB,
TOK_SETFIB,
+ TOK_LOOKUP,
};
/*
* the following macro returns an error message if we run out of
OpenPOWER on IntegriCloud