View | Details | Raw Unified | Return to bug 660
Collapse All | Expand All

(-)b/util/netevent.c (-1 / +4 lines)
 Lines 504-509   comm_point_send_udp_msg_if(struct comm_point *c, sldns_buffer* packet, Link Here 
504
		cmsg->cmsg_type = IP_PKTINFO;
504
		cmsg->cmsg_type = IP_PKTINFO;
505
		memmove(CMSG_DATA(cmsg), &r->pktinfo.v4info,
505
		memmove(CMSG_DATA(cmsg), &r->pktinfo.v4info,
506
			sizeof(struct in_pktinfo));
506
			sizeof(struct in_pktinfo));
507
		/* unset the ifindex to not bypass the routing tables */
508
		((struct in_pktinfo *) CMSG_DATA(cmsg))->ipi_ifindex = 0;
507
		cmsg->cmsg_len = CMSG_LEN(sizeof(struct in_pktinfo));
509
		cmsg->cmsg_len = CMSG_LEN(sizeof(struct in_pktinfo));
508
#elif defined(IP_SENDSRCADDR)
510
#elif defined(IP_SENDSRCADDR)
509
		msg.msg_controllen = CMSG_SPACE(sizeof(struct in_addr));
511
		msg.msg_controllen = CMSG_SPACE(sizeof(struct in_addr));
 Lines 524-529   comm_point_send_udp_msg_if(struct comm_point *c, sldns_buffer* packet, Link Here 
524
		cmsg->cmsg_type = IPV6_PKTINFO;
526
		cmsg->cmsg_type = IPV6_PKTINFO;
525
		memmove(CMSG_DATA(cmsg), &r->pktinfo.v6info,
527
		memmove(CMSG_DATA(cmsg), &r->pktinfo.v6info,
526
			sizeof(struct in6_pktinfo));
528
			sizeof(struct in6_pktinfo));
529
		/* unset the ifindex to not bypass the routing tables */
530
		((struct in6_pktinfo *) CMSG_DATA(cmsg))->ipi6_ifindex = 0;
527
		cmsg->cmsg_len = CMSG_LEN(sizeof(struct in6_pktinfo));
531
		cmsg->cmsg_len = CMSG_LEN(sizeof(struct in6_pktinfo));
528
	} else {
532
	} else {
529
		/* try to pass all 0 to use default route */
533
		/* try to pass all 0 to use default route */
530
- 

Return to bug 660