Ticket #19: 03_cmsg_too_large.patch
| File 03_cmsg_too_large.patch, 0.9 kB (added by Sjoerd Simons <sjoerd@…>, 4 years ago) |
|---|
-
avahi-core/socket.c
465 465 struct iovec io; 466 466 #ifdef IP_PKTINFO 467 467 struct cmsghdr *cmsg; 468 size_t cmsg_data[( CMSG_SPACE(sizeof(struct in_pktinfo)) / sizeof(size_t)) + 1];468 uint8_t cmsg_data[CMSG_SPACE(sizeof(struct in_pktinfo))]; 469 469 #elif defined(IP_SENDSRCADDR) 470 470 struct cmsghdr *cmsg; 471 size_t cmsg_data[( CMSG_SPACE(sizeof(struct in_addr)) / sizeof(size_t)) + 1];471 uint8_t cmsg_data[CMSG_SPACE(sizeof(struct in_addr))]; 472 472 #endif 473 473 474 474 assert(fd >= 0); … … 551 551 struct msghdr msg; 552 552 struct iovec io; 553 553 struct cmsghdr *cmsg; 554 size_t cmsg_data[ (CMSG_SPACE(sizeof(struct in6_pktinfo))/sizeof(size_t)) + 1];554 size_t cmsg_data[CMSG_SPACE(sizeof(struct in6_pktinfo))]; 555 555 556 556 assert(fd >= 0); 557 557 assert(p);
