Revision 153f02da proto/babel/packets.c

View differences:

proto/babel/packets.c
1294 1294
      sk->iface->name, sk->faddr, sk->laddr);
1295 1295

  
1296 1296
  /* Silently ignore my own packets */
1297
  if (ipa_equal(ifa->iface->addr->ip, sk->faddr))
1297
  if (ipa_equal(sk->faddr, sk->saddr))
1298 1298
    return 1;
1299 1299

  
1300 1300
  if (!ipa_is_link_local(sk->faddr))
......
1329 1329
  sk->sport = ifa->cf->port;
1330 1330
  sk->dport = ifa->cf->port;
1331 1331
  sk->iface = ifa->iface;
1332
  sk->saddr = ifa->addr;
1332 1333

  
1333 1334
  sk->rx_hook = babel_rx_hook;
1334 1335
  sk->tx_hook = babel_tx_hook;

Also available in: Unified diff