]> granicus.if.org Git - libnl/commitdiff
lib/route: preserve old ABI for rtnl_link_get_pmtudisc()
authorThomas Haller <thaller@redhat.com>
Sat, 5 Nov 2016 17:08:02 +0000 (18:08 +0100)
committerThomas Haller <thaller@redhat.com>
Sat, 5 Nov 2016 17:08:05 +0000 (18:08 +0100)
Yes, rtnl_link_get_pmtudisc() was not in a public header.
But dropping it from ABI results in warnings of ABI checkers.

Just avoid that.

lib/route/link/ipgre.c

index 184f37ab2dc1adee9aa346d9c6576874415dc16d..714590f9d674156cd5e180cf2f598e7f9eb2ab96 100644 (file)
@@ -818,6 +818,13 @@ uint8_t rtnl_link_ipgre_get_pmtudisc(struct rtnl_link *link)
        return ipgre->pmtudisc;
 }
 
+uint8_t rtnl_link_get_pmtudisc(struct rtnl_link *link)
+{
+       /* rtnl_link_ipgre_get_pmtudisc() was wrongly named. Keep this
+        * to preserve ABI. */
+       return rtnl_link_ipgre_get_pmtudisc (link);
+}
+
 static void __init ipgre_init(void)
 {
        rtnl_link_register_info(&ipgre_info_ops);