From d44e686e9bcae5850115c0e1adfe24523dce61ee Mon Sep 17 00:00:00 2001 From: "Ondrej Zajicek (work)" Date: Thu, 12 Nov 2015 02:03:59 +0100 Subject: [PATCH] Follow-up commit on integrated BIRD Use net_addr for interface address prefixes, support net_addr in configuration parser. --- conf/confbase.Y | 40 +++++++++++++++++++++----------- lib/net.h | 5 +++- nest/config.Y | 13 +++++------ nest/iface.c | 31 +++++++++++-------------- nest/iface.h | 6 ++--- nest/neighbor.c | 2 +- nest/rt-dev.c | 4 ++-- proto/ospf/config.Y | 9 ++++---- proto/ospf/hello.c | 6 ++--- proto/ospf/iface.c | 32 +++++++++++++++++-------- proto/ospf/ospf.c | 9 ++------ proto/ospf/ospf.h | 4 ++-- proto/ospf/packet.c | 2 +- proto/ospf/topology.c | 54 +++++++++++++++++++++++++------------------ proto/radv/config.Y | 10 ++++---- proto/radv/packets.c | 25 ++++++++++---------- proto/radv/radv.c | 2 +- proto/radv/radv.h | 5 ++-- proto/static/config.Y | 7 +++--- proto/static/static.c | 35 +++++++++++++--------------- proto/static/static.h | 4 ++-- sysdep/unix/krt.Y | 7 +++--- 22 files changed, 163 insertions(+), 149 deletions(-) diff --git a/conf/confbase.Y b/conf/confbase.Y index 64a636cf..3ad0c5f0 100644 --- a/conf/confbase.Y +++ b/conf/confbase.Y @@ -41,6 +41,8 @@ CF_DECLS ip_addr a; ip4_addr ip4; ip6_addr ip6; + net_addr_union net; + net_addr *net_ptr; struct symbol *s; char *t; struct rtable_config *r; @@ -78,10 +80,11 @@ CF_DECLS %type expr_us %type