diff options
author | ajs <ajs> | 2004-11-20 02:06:59 +0000 |
---|---|---|
committer | ajs <ajs> | 2004-11-20 02:06:59 +0000 |
commit | a113290b29b12bc66ed2d726b7d2ff971b50b8f2 (patch) | |
tree | 9e742d207a6a74c84738e9abf86dbb804e399293 /zebra/rtadv.c | |
parent | d3cd86f5876e014e59268b60e8077d7e8b4f5332 (diff) | |
download | quagga-a113290b29b12bc66ed2d726b7d2ff971b50b8f2.tar.bz2 quagga-a113290b29b12bc66ed2d726b7d2ff971b50b8f2.tar.xz |
2004-11-19 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
* global: Replace strerror with safe_strerror. And vtysh/vtysh.c
needs to include "log.h" to pick up the declaration.
Diffstat (limited to 'zebra/rtadv.c')
-rw-r--r-- | zebra/rtadv.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/zebra/rtadv.c b/zebra/rtadv.c index cb29a67e..770f975b 100644 --- a/zebra/rtadv.c +++ b/zebra/rtadv.c @@ -301,7 +301,7 @@ rtadv_send_packet (int sock, struct interface *ifp) if (ret < 0) { zlog_err ("rtadv_send_packet: sendmsg %d (%s)\n", - errno, strerror(errno)); + errno, safe_strerror(errno)); } } @@ -425,7 +425,7 @@ rtadv_read (struct thread *thread) if (len < 0) { - zlog_warn ("router solicitation recv failed: %s.", strerror (errno)); + zlog_warn ("router solicitation recv failed: %s.", safe_strerror (errno)); return len; } @@ -443,13 +443,13 @@ rtadv_make_socket (void) if ( zserv_privs.change (ZPRIVS_RAISE) ) zlog_err ("rtadv_make_socket: could not raise privs, %s", - strerror (errno) ); + safe_strerror (errno) ); sock = socket (AF_INET6, SOCK_RAW, IPPROTO_ICMPV6); if ( zserv_privs.change (ZPRIVS_LOWER) ) zlog_err ("rtadv_make_socket: could not lower privs, %s", - strerror (errno) ); + safe_strerror (errno) ); /* When we can't make ICMPV6 socket simply back. Router advertisement feature will not be supported. */ @@ -480,7 +480,7 @@ rtadv_make_socket (void) sizeof (struct icmp6_filter)); if (ret < 0) { - zlog_info ("ICMP6_FILTER set fail: %s", strerror (errno)); + zlog_info ("ICMP6_FILTER set fail: %s", safe_strerror (errno)); return ret; } @@ -1223,7 +1223,7 @@ if_join_all_router (int sock, struct interface *ifp) ret = setsockopt (sock, IPPROTO_IPV6, IPV6_JOIN_GROUP, (char *) &mreq, sizeof mreq); if (ret < 0) - zlog_warn ("can't setsockopt IPV6_JOIN_GROUP: %s", strerror (errno)); + zlog_warn ("can't setsockopt IPV6_JOIN_GROUP: %s", safe_strerror (errno)); zlog_info ("rtadv: %s join to all-routers multicast group", ifp->name); @@ -1244,7 +1244,7 @@ if_leave_all_router (int sock, struct interface *ifp) ret = setsockopt (sock, IPPROTO_IPV6, IPV6_LEAVE_GROUP, (char *) &mreq, sizeof mreq); if (ret < 0) - zlog_warn ("can't setsockopt IPV6_LEAVE_GROUP: %s", strerror (errno)); + zlog_warn ("can't setsockopt IPV6_LEAVE_GROUP: %s", safe_strerror (errno)); zlog_info ("rtadv: %s leave from all-routers multicast group", ifp->name); |