diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2023-04-19 15:27:47 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2023-04-19 15:27:47 +0000 |
commit | b6e581385f5bc1490cb4bb8b8cfb295e92501019 (patch) | |
tree | ec7fb16ee77a8aa411ddf11eec75270bd247d50e /usr.sbin/bgpd | |
parent | a4757c599d093d9445b300be611c4afcb69de506 (diff) |
Reshuffle the flowrule yacc rules to be in a more logical and alphabetical
order.
Diffstat (limited to 'usr.sbin/bgpd')
-rw-r--r-- | usr.sbin/bgpd/parse.y | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/usr.sbin/bgpd/parse.y b/usr.sbin/bgpd/parse.y index 34e5105ce4d..a0bb90b7e81 100644 --- a/usr.sbin/bgpd/parse.y +++ b/usr.sbin/bgpd/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.448 2023/04/18 13:31:14 tb Exp $ */ +/* $OpenBSD: parse.y,v 1.449 2023/04/19 15:27:46 claudio Exp $ */ /* * Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -1305,22 +1305,22 @@ flow_rules_l : flowrule flowrule : from | to - | proto | FLAGS { curflow->type = FLOWSPEC_TYPE_TCP_FLAGS; } flags + | FRAGMENT { + curflow->type = FLOWSPEC_TYPE_FRAG; + } flags; | icmpspec + | LENGTH lengthspec { + curflow->type = FLOWSPEC_TYPE_PKT_LEN; + } + | proto | TOS tos { curflow->type = FLOWSPEC_TYPE_DSCP; if (push_unary_numop(OP_EQ, $2 >> 2) == -1) YYERROR; } - | LENGTH lengthspec { - curflow->type = FLOWSPEC_TYPE_PKT_LEN; - } - | FRAGMENT { - curflow->type = FLOWSPEC_TYPE_FRAG; - } flags; ; flags : flag '/' flag { |