diff mbox

[nftables] scanner: Add udplite value for parsing it.

Message ID 1401201011-25109-1-git-send-email-alvaroneay@gmail.com
State Accepted
Headers show

Commit Message

Alvaro Neira May 27, 2014, 2:30 p.m. UTC
From: Álvaro Neira Ayuso <alvaroneay@gmail.com>

When we add a udplite rule, we can't because we have forgot
to add this parameter in the scanner and nft doesn't detect it.

Signed-off-by: Alvaro Neira Ayuso <alvaroneay@gmail.com>
---
 src/scanner.l |    1 +
 1 file changed, 1 insertion(+)

Comments

Pablo Neira Ayuso May 28, 2014, 9:24 a.m. UTC | #1
On Tue, May 27, 2014 at 04:30:11PM +0200, Alvaro Neira Ayuso wrote:
> From: Álvaro Neira Ayuso <alvaroneay@gmail.com>
> 
> When we add a udplite rule, we can't because we have forgot
> to add this parameter in the scanner and nft doesn't detect it.

Applied. For the record, I have renamed the title of this patch to:

scanner: Add udplite token

Please, try to select better patch titles, the idea is that a quick
glance via git log --oneline provides a description sufficiently
expressive to the reader so you only need to read the full description
in case you want details. Thanks.
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/src/scanner.l b/src/scanner.l
index 8371e6f..ff03e2a 100644
--- a/src/scanner.l
+++ b/src/scanner.l
@@ -363,6 +363,7 @@  addrstring	({macaddr}|{ip4addr}|{ip6addr})
 "cpi"			{ return CPI; }
 
 "udp"			{ return UDP; }
+"udplite"		{ return UDPLITE; }
 "sport"			{ return SPORT; }
 "dport"			{ return DPORT; }