diff options
author | Paul Jakma <paul.jakma@hpe.com> | 2016-01-18 10:12:10 +0000 |
---|---|---|
committer | Paul Jakma <paul.jakma@hpe.com> | 2016-02-26 14:11:46 +0000 |
commit | 9099f9b2a66e86f8a90d7fe18f61bd2bb1bc6744 (patch) | |
tree | 1ce5d2e4ecff6b57eb00d40b1a91b3f363ff35fe /bgpd | |
parent | 954c7d6bcd04c2cf037965adda0f9d11afdcd165 (diff) | |
download | quagga-9099f9b2a66e86f8a90d7fe18f61bd2bb1bc6744.tar.bz2 quagga-9099f9b2a66e86f8a90d7fe18f61bd2bb1bc6744.tar.xz |
*: use an ifindex_t type, defined in lib/if.h, for ifindex values
Diffstat (limited to 'bgpd')
-rw-r--r-- | bgpd/bgp_btoa.c | 2 | ||||
-rw-r--r-- | bgpd/bgp_network.c | 2 | ||||
-rw-r--r-- | bgpd/bgp_zebra.c | 2 | ||||
-rw-r--r-- | bgpd/bgpd.h | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/bgpd/bgp_btoa.c b/bgpd/bgp_btoa.c index 284b2806..b408efdd 100644 --- a/bgpd/bgp_btoa.c +++ b/bgpd/bgp_btoa.c @@ -144,7 +144,7 @@ main (int argc, char **argv) size_t len; int source_as; int dest_as; - int ifindex; + ifindex_t ifindex; int family; struct in_addr sip; struct in_addr dip; diff --git a/bgpd/bgp_network.c b/bgpd/bgp_network.c index 7a227139..51a6f602 100644 --- a/bgpd/bgp_network.c +++ b/bgpd/bgp_network.c @@ -365,7 +365,7 @@ bgp_update_source (struct peer *peer) int bgp_connect (struct peer *peer) { - unsigned int ifindex = 0; + ifindex_t ifindex = 0; /* Make socket for the peer. */ peer->fd = sockunion_socket (&peer->su); diff --git a/bgpd/bgp_zebra.c b/bgpd/bgp_zebra.c index af312e3c..4ec15d0d 100644 --- a/bgpd/bgp_zebra.c +++ b/bgpd/bgp_zebra.c @@ -757,7 +757,7 @@ bgp_zebra_announce (struct prefix *p, struct bgp_info *info, struct bgp *bgp, sa /* We have to think about a IPv6 link-local address curse. */ if (p->family == AF_INET6) { - unsigned int ifindex; + ifindex_t ifindex; struct in6_addr *nexthop; struct zapi_ipv6 api; diff --git a/bgpd/bgpd.h b/bgpd/bgpd.h index 455034f5..5be5a19c 100644 --- a/bgpd/bgpd.h +++ b/bgpd/bgpd.h @@ -340,7 +340,7 @@ struct peer time_t readtime; /* Last read time */ time_t resettime; /* Last reset time */ - unsigned int ifindex; /* ifindex of the BGP connection. */ + ifindex_t ifindex; /* ifindex of the BGP connection. */ char *ifname; /* bind interface name. */ char *update_if; union sockunion *update_source; |