patch-rdnssd_icmp_c 681 B

1234567891011121314151617181920
  1. $Id: update-patches 24 2008-08-31 14:56:13Z wbx $
  2. --- ndisc6-0.9.8.orig/rdnssd/icmp.c 2008-05-01 14:52:28.000000000 +0200
  3. +++ ndisc6-0.9.8/rdnssd/icmp.c 2009-05-10 19:43:19.000000000 +0200
  4. @@ -47,6 +47,7 @@
  5. static int icmp_recv (int fd)
  6. {
  7. + struct cmsghdr *cmsg;
  8. struct nd_router_advert icmp6;
  9. uint8_t buf[65536 - sizeof (icmp6)], cbuf[CMSG_SPACE (sizeof (int))];
  10. struct iovec iov[2] =
  11. @@ -74,7 +75,7 @@ static int icmp_recv (int fd)
  12. || (icmp6.nd_ra_code != 0)) /* unknown ICMPv6 code */
  13. return -1;
  14. - for (struct cmsghdr *cmsg = CMSG_FIRSTHDR (&msg);
  15. + for (cmsg = CMSG_FIRSTHDR (&msg);
  16. cmsg != NULL;
  17. cmsg = CMSG_NXTHDR (&msg, cmsg))
  18. {