diff options
Diffstat (limited to 'proto/ospf/packet.c')
-rw-r--r-- | proto/ospf/packet.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/proto/ospf/packet.c b/proto/ospf/packet.c index 1e9706a5..b0ab477f 100644 --- a/proto/ospf/packet.c +++ b/proto/ospf/packet.c @@ -23,7 +23,7 @@ fill_ospf_pkt_hdr(struct ospf_iface *ifa, void *buf, u8 h_type) pkt->type=h_type; pkt->routerid=htonl(p->cf->global->router_id); - pkt->areaid=htonl(ifa->area); + pkt->areaid=htonl(ifa->an); pkt->autype=htons(ifa->autype); pkt->checksum=0; } @@ -101,7 +101,7 @@ ospf_rx_hook(sock *sk, int size) /* FIXME: Do authetification */ - if(ps->areaid!=ifa->area) + if(ps->areaid!=ifa->an) { log("%s: Bad OSPF packet received: other area %ld", p->name, ps->areaid); log("%s: Discarding",p->name); |