diff options
author | Ondrej Zajicek <santiago@crfreenet.org> | 2009-09-08 17:06:47 +0200 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2009-09-08 17:06:47 +0200 |
commit | c15e569065e80f91b4c9c77b86640aac72aa0a47 (patch) | |
tree | 3642d78a327ded168c7cc5eb75c4b756b02bbb01 /proto/ospf/topology.c | |
parent | be862406627da3bd1facea9309b3f32e67422eab (diff) | |
download | bird-c15e569065e80f91b4c9c77b86640aac72aa0a47.tar bird-c15e569065e80f91b4c9c77b86640aac72aa0a47.zip |
Make endianity swapping simpler.
Diffstat (limited to 'proto/ospf/topology.c')
-rw-r--r-- | proto/ospf/topology.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/proto/ospf/topology.c b/proto/ospf/topology.c index cadf4ea..47d8367 100644 --- a/proto/ospf/topology.c +++ b/proto/ospf/topology.c @@ -211,7 +211,7 @@ originate_rt_lsa_body(struct ospf_area *oa, u16 *length) ln->data = (ifa->iface->addr->flags & IA_UNNUMBERED) ? ifa->iface->index : ipa_to_u32(ifa->iface->addr->ip); ln->metric = ifa->cost; - ln->notos = 0; + ln->padding = 0; i++; master = 1; } @@ -226,7 +226,7 @@ originate_rt_lsa_body(struct ospf_area *oa, u16 *length) ln->id = ipa_to_u32(ifa->drip); ln->data = ipa_to_u32(ifa->iface->addr->ip); ln->metric = ifa->cost; - ln->notos = 0; + ln->padding = 0; i++; master = 1; } @@ -241,7 +241,7 @@ originate_rt_lsa_body(struct ospf_area *oa, u16 *length) ln->id = neigh->rid; ln->data = ipa_to_u32(ifa->iface->addr->ip); ln->metric = ifa->cost; - ln->notos = 0; + ln->padding = 0; i++; master = 1; } @@ -268,7 +268,7 @@ originate_rt_lsa_body(struct ospf_area *oa, u16 *length) ln->id = ipa_to_u32(a->prefix); ln->data = ipa_to_u32(ipa_mkmask(a->pxlen)); ln->metric = ifa->cost; - ln->notos = 0; + ln->padding = 0; i++; } } @@ -282,7 +282,7 @@ originate_rt_lsa_body(struct ospf_area *oa, u16 *length) ln->id = ipa_to_u32(sn->px.addr); ln->data = ipa_to_u32(ipa_mkmask(sn->px.len)); ln->metric = sn->cost; - ln->notos = 0; + ln->padding = 0; i++; } |