summaryrefslogtreecommitdiffstats
path: root/proto/ospf/packet.c
diff options
context:
space:
mode:
authorOndrej Filip <feela@network.cz>2000-03-08 13:50:28 +0100
committerOndrej Filip <feela@network.cz>2000-03-08 13:50:28 +0100
commit30147b89ff3a389ad40096505f3d1a5ba1705736 (patch)
treeb9acec9a51e54221c54de8061609689aa87c000f /proto/ospf/packet.c
parent839380d7ecd133531ead2403c6dbc74950dad13c (diff)
downloadbird-30147b89ff3a389ad40096505f3d1a5ba1705736.tar
bird-30147b89ff3a389ad40096505f3d1a5ba1705736.zip
Sending of DBDes. (Checksum and length calculation NOT done.)
Diffstat (limited to 'proto/ospf/packet.c')
-rw-r--r--proto/ospf/packet.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/proto/ospf/packet.c b/proto/ospf/packet.c
index 1e9706a..b0ab477 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);