]> git.proxmox.com Git - mirror_frr.git/blobdiff - zebra/if_sysctl.c
zebra: Convert socket interface to use `union sockunion`
[mirror_frr.git] / zebra / if_sysctl.c
index df0831a9fc038b26a6df6a971b36e4dd584d70bf..44afd266bc1e1bfc0b0d8354163cf79c8aaa4ac4 100644 (file)
@@ -53,7 +53,7 @@ void ifstat_update_sysctl(void)
 
        /* Query buffer size. */
        if (sysctl(mib, MIBSIZ, NULL, &bufsiz, NULL, 0) < 0) {
-               flog_warn(ZEBRA_ERR_SYSCTL_FAILED, "sysctl() error by %s",
+               flog_warn(EC_ZEBRA_SYSCTL_FAILED, "sysctl() error by %s",
                          safe_strerror(errno));
                return;
        }
@@ -61,9 +61,9 @@ void ifstat_update_sysctl(void)
        /* We free this memory at the end of this function. */
        ref = buf = XMALLOC(MTYPE_TMP, bufsiz);
 
-       /* Fetch interface informations into allocated buffer. */
+       /* Fetch interface information into allocated buffer. */
        if (sysctl(mib, MIBSIZ, buf, &bufsiz, NULL, 0) < 0) {
-               flog_warn(ZEBRA_ERR_SYSCTL_FAILED, "sysctl error by %s",
+               flog_warn(EC_ZEBRA_SYSCTL_FAILED, "sysctl error by %s",
                          safe_strerror(errno));
                XFREE(MTYPE_TMP, ref);
                return;
@@ -104,7 +104,7 @@ void interface_list(struct zebra_ns *zns)
 
        /* Query buffer size. */
        if (sysctl(mib, MIBSIZ, NULL, &bufsiz, NULL, 0) < 0) {
-               flog_err_sys(ZEBRA_ERR_IFLIST_FAILED,
+               flog_err_sys(EC_ZEBRA_IFLIST_FAILED,
                             "Could not enumerate interfaces: %s",
                             safe_strerror(errno));
                return;
@@ -113,9 +113,9 @@ void interface_list(struct zebra_ns *zns)
        /* We free this memory at the end of this function. */
        ref = buf = XMALLOC(MTYPE_TMP, bufsiz);
 
-       /* Fetch interface informations into allocated buffer. */
+       /* Fetch interface information into allocated buffer. */
        if (sysctl(mib, MIBSIZ, buf, &bufsiz, NULL, 0) < 0) {
-               flog_err_sys(ZEBRA_ERR_IFLIST_FAILED,
+               flog_err_sys(EC_ZEBRA_IFLIST_FAILED,
                             "Could not enumerate interfaces: %s",
                             safe_strerror(errno));
                return;