Skip to content

Commit

Permalink
use P_PKTINFO or IP_SENDSRCADDR, but not both
Browse files Browse the repository at this point in the history
  • Loading branch information
alandekok committed Apr 3, 2018
1 parent ea106df commit e1a8cdf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/lib/udpfromto.c
Expand Up @@ -405,9 +405,8 @@ int sendfromto(int s, void *buf, size_t len, int flags,
pkt = (struct in_pktinfo *) CMSG_DATA(cmsg);
memset(pkt, 0, sizeof(*pkt));
pkt->ipi_spec_dst = s4->sin_addr;
# endif

# ifdef IP_SENDSRCADDR
# elif defined(IP_SENDSRCADDR)
struct cmsghdr *cmsg;
struct in_addr *in;

Expand Down

0 comments on commit e1a8cdf

Please sign in to comment.