]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sd-radv: rename sd_radv_prefix_set_route_prefix() -> sd_radv_route_prefix_set_prefix()
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 27 Sep 2021 12:05:07 +0000 (21:05 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 11 Oct 2021 18:10:30 +0000 (03:10 +0900)
src/libsystemd-network/sd-radv.c
src/network/networkd-radv.c
src/systemd/sd-radv.h

index ae33894302b9da9fb290fde65cdb8e701edac376..2d91a406f836f8367f9b6ce842effd32cffec362 100644 (file)
@@ -936,7 +936,7 @@ _public_ int sd_radv_route_prefix_new(sd_radv_route_prefix **ret) {
 
 DEFINE_PUBLIC_TRIVIAL_REF_UNREF_FUNC(sd_radv_route_prefix, sd_radv_route_prefix, mfree);
 
-_public_ int sd_radv_prefix_set_route_prefix(sd_radv_route_prefix *p, const struct in6_addr *in6_addr,
+_public_ int sd_radv_route_prefix_set_prefix(sd_radv_route_prefix *p, const struct in6_addr *in6_addr,
                                              unsigned char prefixlen) {
         assert_return(p, -EINVAL);
         assert_return(in6_addr, -EINVAL);
index 34e6a41c34a536e2cace85557db3c9a6b2d27c3a..471f6d78e80df58eb9c523e1c73df19fb8a4f144 100644 (file)
@@ -952,7 +952,7 @@ int config_parse_route_prefix(
                 return 0;
         }
 
-        r = sd_radv_prefix_set_route_prefix(p->radv_route_prefix, &in6addr.in6, prefixlen);
+        r = sd_radv_route_prefix_set_prefix(p->radv_route_prefix, &in6addr.in6, prefixlen);
         if (r < 0) {
                 log_syntax(unit, LOG_WARNING, filename, line, r, "Failed to set route prefix, ignoring assignment: %m");
                 return 0;
index 6bf56def403a8058ef4ebf343ac6c4beb148c7c7..f597c2c33daaf2714ebf7629e82b29debac8edb5 100644 (file)
@@ -91,7 +91,7 @@ int sd_radv_route_prefix_new(sd_radv_route_prefix **ret);
 sd_radv_route_prefix *sd_radv_route_prefix_ref(sd_radv_route_prefix *ra);
 sd_radv_route_prefix *sd_radv_route_prefix_unref(sd_radv_route_prefix *ra);
 
-int sd_radv_prefix_set_route_prefix(sd_radv_route_prefix *p, const struct in6_addr *in6_addr, unsigned char prefixlen);
+int sd_radv_route_prefix_set_prefix(sd_radv_route_prefix *p, const struct in6_addr *in6_addr, unsigned char prefixlen);
 int sd_radv_route_prefix_set_lifetime(sd_radv_route_prefix *p, uint32_t valid_lifetime);
 
 _SD_DEFINE_POINTER_CLEANUP_FUNC(sd_radv, sd_radv_unref);