Revision 9669362f proto/ospf/lsack.c

View differences:

proto/ospf/lsack.c
15 15
  struct ospf_packet *op;
16 16
  struct ospf_lsack_packet *pk;
17 17
  sock *sk=n->ifa->ip_sk;
18
  struct proto *p=&n->ifa->proto->proto;
18 19
  u16 len;
19 20

  
20 21
  DBG("Sending direct ACK to %I for Type: %u, ID: %I, RT: %I\n",n->rid,
......
30 31
  op->length=htons(len);
31 32
  ospf_pkt_finalize(n->ifa, op);
32 33
  sk_send_to(sk,len, n->ip, OSPF_PROTO);
34
  debug("%s: LS ack sent to %I\n", p->name, n->ip);
33 35
}
34 36

  
35 37
void
......
160 162

  
161 163
  if((n=find_neigh(ifa, nrid))==NULL)
162 164
  {
163
    debug("%s: Received lsack from unknown neigbor! (%I)\n", p->name,
165
    debug("%s: Received LS ack from unknown neigbor! (%I)\n", p->name,
164 166
      nrid);
165 167
    return ;
166 168
  }
167 169

  
168 170
  if(n->state<NEIGHBOR_EXCHANGE) return;
169
  
171

  
172
  debug("%s: Received LS ack from %I\n", p->name,
173
      n->ip);
174

  
170 175
  nolsa=(ntohs(ps->ospf_packet.length)-sizeof(struct ospf_lsack_packet))/
171 176
    sizeof(struct ospf_lsa_header);
172 177
  DBG("Received %d lsa ack(s)\n",nolsa);
......
180 185
    if(lsa_comp(&lsa,&en->lsa)!=CMP_SAME)
181 186
    {
182 187
      log("Strange LS acknoledgement from %I",n->rid);
188
      log("Id: %I, Rt: %I, Type: %u",lsa.id, lsa.rt, lsa.type);
189
      log("I have: Age: %u, Seqno: %u", en->lsa.age, en->lsa.sn);
190
      log("He has: Age: %u, Seqno: %u", lsa.age, lsa.sn);
183 191
      continue;
184 192
    }
185 193

  

Also available in: Unified diff