Revision e81b440f proto/ospf/hello.c

View differences:

proto/ospf/hello.c
48 48
  struct proto_ospf *po = ifa->oa->po;
49 49
  struct proto *p = &po->proto;
50 50
  char *beg = "Bad OSPF HELLO packet from ", *rec = " received: ";
51
  unsigned int size, i, twoway, oldpriority, eligible, peers;
52
  u32 olddr, oldbdr, oldiface_id, tmp;
51
  unsigned int size, i, twoway, eligible, peers;
52
  u32 tmp;
53 53
  u32 *pnrid;
54 54

  
55 55
  size = ntohs(ps_i->length);
......
188 188
  if (!twoway)
189 189
    ospf_neigh_sm(n, INM_1WAYREC);
190 190

  
191
  olddr = n->dr;
192
  oldbdr = n->bdr;
193
  oldpriority = n->priority;
191
  u32 olddr = n->dr;
192
  u32 oldbdr = n->bdr;
193
  u32 oldpriority = n->priority;
194 194
#ifdef OSPFv3
195
  oldiface_id = n->iface_id;
195
  u32 oldiface_id = n->iface_id;
196 196
#endif
197 197

  
198 198
  n->dr = ntohl(ps->dr);

Also available in: Unified diff