diff options
author | gdt <gdt> | 2004-01-06 18:23:02 +0000 |
---|---|---|
committer | gdt <gdt> | 2004-01-06 18:23:02 +0000 |
commit | 9ccabd1cdb47cc932b6a43c9e28b6aac9f2a4a0c (patch) | |
tree | 83854726d7a1ef7236058885c841257a7215b6ce /zebra | |
parent | 4bfbea8cc369ef7bb4157efa4324e4ebf3b7374b (diff) |
change perror to zlog_err
Diffstat (limited to 'zebra')
-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 |