Revision ab164971 proto/ospf/packet.c

View differences:

proto/ospf/packet.c
269 269
  struct proto_ospf *po = ifa->oa->po;
270 270
  // struct proto *p = &po->proto;
271 271

  
272
  int src_local = ipa_in_net(sk->faddr, ifa->addr->prefix, ifa->addr->pxlen);
273
  int dst_local = ipa_equal(sk->laddr, ifa->addr->ip);
274
  int dst_mcast = ipa_equal(sk->laddr, AllSPFRouters) || ipa_equal(sk->laddr, AllDRouters);
272
  int src_local, dst_local UNUSED, dst_mcast; 
273
  src_local = ipa_in_net(sk->faddr, ifa->addr->prefix, ifa->addr->pxlen);
274
  dst_local = ipa_equal(sk->laddr, ifa->addr->ip);
275
  dst_mcast = ipa_equal(sk->laddr, AllSPFRouters) || ipa_equal(sk->laddr, AllDRouters);
275 276

  
276 277
#ifdef OSPFv2
277 278
  /* First, we eliminate packets with strange address combinations.

Also available in: Unified diff