]> git.proxmox.com Git - mirror_frr.git/blobdiff - babeld/neighbour.c
Merge pull request #3540 from donaldsharp/staic
[mirror_frr.git] / babeld / neighbour.c
index 3db121fd263ea9114cb84ffcdef7fe3b602790f5..83f05bb5cf337698dc0b8622ee7394d26c6ba45e 100644 (file)
@@ -20,6 +20,10 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 THE SOFTWARE.
 */
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 #include <stdlib.h>
 #include <string.h>
 #include <stdio.h>
@@ -38,6 +42,7 @@ THE SOFTWARE.
 #include "route.h"
 #include "message.h"
 #include "resend.h"
+#include "babel_errors.h"
 
 struct neighbour *neighs = NULL;
 
@@ -89,7 +94,8 @@ find_neighbour(const unsigned char *address, struct interface *ifp)
 
     neigh = malloc(sizeof(struct neighbour));
     if(neigh == NULL) {
-        zlog_err("malloc(neighbour): %s", safe_strerror(errno));
+        flog_err(EC_BABEL_MEMORY, "malloc(neighbour): %s",
+                 safe_strerror(errno));
         return NULL;
     }