Ticket #9: avahi-0.6.5-bz179448.patch
| File avahi-0.6.5-bz179448.patch, 1.4 kB (added by Jason Vas Dias <jvdias@…>, 6 years ago) |
|---|
-
avahi-0.6.5/avahi-core/socket.c
old new 456 456 struct iovec io; 457 457 #ifdef IP_PKTINFO 458 458 struct cmsghdr *cmsg; 459 uint8_t cmsg_data[CMSG_SPACE(sizeof(struct in_pktinfo))];459 struct cmsghdr cmsg_data[( CMSG_SPACE(sizeof(struct in_addr)) / sizeof(struct cmsghdr)) + 1]; 460 460 #elif defined(IP_SENDSRCADDR) 461 461 struct cmsghdr *cmsg; 462 uint8_t cmsg_data[CMSG_SPACE(sizeof(struct in_addr))];462 struct cmsghdr cmsg_data[( CMSG_SPACE(sizeof(struct in_addr)) / sizeof(struct cmsghdr)) + 1]; 463 463 #endif 464 464 465 465 assert(fd >= 0); … … 542 542 struct msghdr msg; 543 543 struct iovec io; 544 544 struct cmsghdr *cmsg; 545 uint8_t cmsg_data[CMSG_SPACE(sizeof(struct in6_pktinfo))];545 struct cmsghdr cmsg_data[(CMSG_SPACE(sizeof(struct in6_pktinfo))/sizeof(struct msghdr)) + 1]; 546 546 547 547 assert(fd >= 0); 548 548 assert(p); … … 596 596 AvahiDnsPacket *p= NULL; 597 597 struct msghdr msg; 598 598 struct iovec io; 599 uint8_t aux[1024];599 struct cmsghdr aux[1024 / sizeof(struct cmsghdr)]; /* for alignment on ia64 ! */ 600 600 ssize_t l; 601 601 struct cmsghdr *cmsg; 602 602 int found_addr = 0; … … 726 726 AvahiDnsPacket *p = NULL; 727 727 struct msghdr msg; 728 728 struct iovec io; 729 uint8_t aux[64];729 struct cmsghdr aux[1024 / sizeof(struct cmsghdr)]; 730 730 ssize_t l; 731 731 int ms; 732 732 struct cmsghdr *cmsg;
