Revision 153f02da sysdep/bsd/sysio.h

View differences:

sysdep/bsd/sysio.h
38 38
 */
39 39

  
40 40
#define INIT_MREQ4(maddr,ifa) \
41
  { .imr_multiaddr = ipa_to_in4(maddr), .imr_interface = ipa_to_in4(ifa->addr->ip) }
41
  { .imr_multiaddr = ipa_to_in4(maddr), .imr_interface = ip4_to_in4(ifa->sysdep) }
42 42

  
43 43
static inline int
44 44
sk_setup_multicast4(sock *s)
45 45
{
46
  struct in_addr ifa = ipa_to_in4(s->iface->addr->ip);
46
  struct in_addr ifa = ip4_to_in4(s->iface->sysdep);
47 47
  u8 ttl = s->ttl;
48 48
  u8 n = 0;
49 49

  

Also available in: Unified diff