summaryrefslogtreecommitdiffstats
path: root/lib/ip.c
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2008-08-25 13:19:49 +0200
committerMartin Mares <mj@ucw.cz>2008-08-25 13:19:49 +0200
commit057021df0d699f9c21368ab0fa51fe821cc9a544 (patch)
tree729c776649d05dfc1378988bbddd4d5fac8d97f7 /lib/ip.c
parent6c36c4b66be5c67a8d5cfa9578aa5a85ebebab6d (diff)
downloadbird-057021df0d699f9c21368ab0fa51fe821cc9a544.tar
bird-057021df0d699f9c21368ab0fa51fe821cc9a544.zip
Fix behavior of ipa_opposite().
It was giving wrong results on /30 networks.
Diffstat (limited to 'lib/ip.c')
-rw-r--r--lib/ip.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/ip.c b/lib/ip.c
index b940bf5..0afe979 100644
--- a/lib/ip.c
+++ b/lib/ip.c
@@ -153,13 +153,14 @@ int ipa_classify(ip_addr x) { DUMMY }
/**
* ipa_opposite - return address of point-to-point neighbor
* @x: IP address of our end of the link
+ * @pxlen: network prefix length
*
* ipa_opposite() returns an address of the opposite end of a numbered
* point-to-point link.
*
* This function is available in IPv4 version only.
*/
-ip_addr ipa_opposite(ip_addr x) { DUMMY }
+ip_addr ipa_opposite(ip_addr x, int pxlen) { DUMMY }
/**
* ipa_class_mask - guess netmask according to address class