1
0
mirror of https://gitlab.labs.nic.cz/labs/bird.git synced 2024-05-11 16:54:54 +00:00

Follow-up commit on integrated BIRD

Use net_addr for interface address prefixes, support net_addr in
configuration parser.
This commit is contained in:
Ondrej Zajicek (work)
2015-11-12 02:03:59 +01:00
parent fe9f1a6ded
commit d44e686e9b
22 changed files with 163 additions and 149 deletions

View File

@@ -19,9 +19,8 @@ struct pool;
struct ifa { /* Interface address */
node n;
struct iface *iface; /* Interface this address belongs to */
net_addr prefix; /* Network prefix */
ip_addr ip; /* IP address of this host */
ip_addr prefix; /* Network prefix */
unsigned pxlen; /* Prefix length */
ip_addr brd; /* Broadcast address */
ip_addr opposite; /* Opposite end of a point-to-point link */
unsigned scope; /* Interface address scope */
@@ -148,8 +147,7 @@ struct iface_patt_node {
node n;
int positive;
byte *pattern;
ip_addr prefix;
int pxlen;
net_addr prefix;
};
struct iface_patt {