Revision 99f5fc14 proto/ospf/iface.c

View differences:

proto/ospf/iface.c
69 69
  ipsk->dport = OSPF_PROTO;
70 70

  
71 71
#ifdef OSPFv2
72
  //  ipsk->saddr = ifa->iface->addr->ip;
73
  ipsk->saddr = IPA_NONE;
72
  /* FIXME - why there is IPA_NONE on multicast sockets ? */
73
  if (mc)
74
    ipsk->saddr = IPA_NONE;
75
  else
76
    ipsk->saddr = ifa->iface->addr->ip;
74 77
#else /* OSPFv3 */
75 78
  ipsk->saddr = ifa->lladdr;
76 79
#endif

Also available in: Unified diff