summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikael Magnusson <mikma@users.sourceforge.net>2019-04-01 17:53:21 +0200
committerMikael Magnusson <mikma@users.sourceforge.net>2019-04-02 00:27:38 +0200
commitc832adae05cff20ea65d565f1f382a5cff34d4eb (patch)
tree47babac6a6787ac2f970a0c601b70a0e8bcade1f
parent24210a2deddf0cbf6a0e46e3b24f96130d1a3ad9 (diff)
Filter: Allow using defines in remote_endpoint
-rw-r--r--filter/config.Y6
1 files changed, 3 insertions, 3 deletions
diff --git a/filter/config.Y b/filter/config.Y
index e405cf06..74ebd600 100644
--- a/filter/config.Y
+++ b/filter/config.Y
@@ -131,7 +131,7 @@ f_new_tlv_item(u32 type, u32 v1)
}
static struct f_tree *
-f_new_tlv_remote_ep(u32 asn, struct f_val ep)
+f_new_tlv_remote_ep(u32 asn, ip_addr ip)
{
struct f_tree *t = f_new_tree();
t->right = t;
@@ -139,7 +139,7 @@ f_new_tlv_remote_ep(u32 asn, struct f_val ep)
struct tlv v;
v.type = TLV_REMOTE_ENDPOINT;
v.u.remote_endpoint.asn = asn;
- v.u.remote_endpoint.ip = ep.val.ip;
+ v.u.remote_endpoint.ip = ip;
t->from.val.tlv = v;
t->to.val.tlv = v;
return t;
@@ -785,7 +785,7 @@ tlv_item:
'(' TUNNEL_ENCAP ',' cnum ',' text ')' { $$ = f_new_tlv_encap($4, $6); }
| '(' UDP_DEST_PORT ',' cnum ')' { $$ = f_new_tlv_item(TLV_UDP_DEST_PORT, $4); }
| '(' COLOR ',' cnum ')' { $$ = f_new_tlv_item(TLV_COLOR, $4); }
- | '(' REMOTE_ENDPOINT ',' NUM ',' fipa ')' { $$ = f_new_tlv_remote_ep($4, $6); }
+ | '(' REMOTE_ENDPOINT ',' NUM ',' ipa ')' { $$ = f_new_tlv_remote_ep($4, $6); }
set_item:
pair_item