change perror to zlog_err

This commit is contained in:
gdt 2004-01-06 18:23:02 +00:00
parent 4bfbea8cc3
commit 9ccabd1cdb
2 changed files with 9 additions and 2 deletions

View File

@ -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

View File

@ -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