diff options
-rw-r--r-- | zebra/ChangeLog | 4 | ||||
-rw-r--r-- | zebra/rtadv.c | 7 |
2 files changed, 9 insertions, 2 deletions
diff --git a/zebra/ChangeLog b/zebra/ChangeLog index 945fa57b..6cae04bd 100644 --- a/zebra/ChangeLog +++ b/zebra/ChangeLog @@ -1,3 +1,7 @@ +2004-01-06 Greg Troxel <gdt@t1.ir.bbn.com> + + * rtadv.c (rtadv_send_packet): Change perror to zlog_err. + 2004-01-05 Greg Troxel <gdt@fnord.ir.bbn.com> * kernel_socket.c (ifm_read): Major cleanup. Use Sowmini's code to find the sockaddr_dl in all cases, narrowing the Solaris ifdef diff --git a/zebra/rtadv.c b/zebra/rtadv.c index bfe8f631..61abd95d 100644 --- a/zebra/rtadv.c +++ b/zebra/rtadv.c @@ -276,8 +276,11 @@ rtadv_send_packet (int sock, struct interface *ifp) pkt->ipi6_ifindex = ifp->ifindex; ret = sendmsg (sock, &msg, 0); - if (ret <0) - perror ("sendmsg"); + if (ret < 0) + { + zlog_err ("rtadv_send_packet: sendmsg %d (%s)\n", + errno, strerror(errno)); + } } int |