]> git.puffer.fish Git - mirror/frr.git/commitdiff
lib: fix a couple more doc comments 4795/head
authorRenato Westphal <renato@opensourcerouting.org>
Wed, 7 Aug 2019 01:16:21 +0000 (22:16 -0300)
committerRenato Westphal <renato@opensourcerouting.org>
Wed, 21 Aug 2019 14:41:14 +0000 (11:41 -0300)
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
lib/if.c
lib/prefix.c

index 9ee2f02e624785b73f249e967a0abccc72f30195..a08c06695ecfd0448a8109926f87eb9b876ea51c 100644 (file)
--- a/lib/if.c
+++ b/lib/if.c
@@ -337,7 +337,7 @@ struct interface *if_lookup_by_index_all_vrf(ifindex_t ifindex)
        return NULL;
 }
 
-/* Lookup interface by IPv4 address. */
+/* Lookup interface by IP address. */
 struct interface *if_lookup_exact_address(void *src, int family,
                                          vrf_id_t vrf_id)
 {
@@ -369,7 +369,7 @@ struct interface *if_lookup_exact_address(void *src, int family,
        return NULL;
 }
 
-/* Lookup interface by IPv4 address. */
+/* Lookup interface by IP address. */
 struct connected *if_lookup_address(void *matchaddr, int family,
                                    vrf_id_t vrf_id)
 {
index 4780801bd6c52c423b572510fd66f4cc7dc0ef6c..ad8dea273e62578ffe0812221e9c4d06d8ff4fa4 100644 (file)
@@ -853,7 +853,7 @@ void prefix_ipv4_free(struct prefix_ipv4 *p)
        prefix_free((struct prefix *)p);
 }
 
-/* When string format is invalid return 0. */
+/* If given string is valid return 1 else return 0 */
 int str2prefix_ipv4(const char *str, struct prefix_ipv4 *p)
 {
        int ret;
@@ -1025,7 +1025,7 @@ void prefix_ipv6_free(struct prefix_ipv6 *p)
        prefix_free((struct prefix *)p);
 }
 
-/* If given string is valid return pin6 else return NULL */
+/* If given string is valid return 1 else return 0 */
 int str2prefix_ipv6(const char *str, struct prefix_ipv6 *p)
 {
        char *pnt;