patch-src_mDNSUNP_c 1.0 KB

1234567891011121314151617181920212223242526272829
  1. $OpenBSD: patch-src_mDNSUNP_c,v 1.2 2008/06/09 23:46:20 okan Exp $
  2. --- src/mDNSUNP.c.orig Sat Apr 19 15:17:23 2008
  3. +++ src/mDNSUNP.c Sat May 31 14:29:04 2008
  4. @@ -159,22 +159,8 @@ struct ifi_info *get_ifi_info(int family, int doaliase
  5. /* include get_ifi_info2 */
  6. for (ptr = buf; ptr < buf + ifc.ifc_len; ) {
  7. ifr = (struct ifreq *) ptr;
  8. -
  9. - len = GET_SA_LEN(ifr->ifr_addr);
  10. -
  11. - /* This is completely whacked, and I really need to
  12. - * find out why this is the case, but I need to
  13. - * release a 0.2.2, and as the next stable won't
  14. - * have the apple mDNS included, I guess it's a
  15. - * small price to pay.
  16. - */
  17. -#ifdef FREEBSD
  18. - ptr += sizeof(ifr->ifr_name) + len; /* for next one in buffer */
  19. - // ptr += sizeof(*ifr);
  20. -#else
  21. -
  22. - ptr += sizeof(struct ifreq); /* for next one in buffer */
  23. -#endif
  24. + len = GET_SA_LEN(ifr->ifr_addr);
  25. + ptr += sizeof(ifr->ifr_name) + len; /* for next one in buffer */
  26. // fprintf(stderr, "intf %d name=%s AF=%d\n", index, ifr->ifr_name, ifr->ifr_addr.sa_family);