diff options
author | David Lamparter <equinox@opensourcerouting.org> | 2015-09-15 11:11:45 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-06-09 16:50:20 +0200 |
commit | 233cc0fb5a36d88bec7336c4a7c36b41243743d3 (patch) | |
tree | 9f4caa4ccd43e93b382f1e8d5553b8060ed7757f /ospfd | |
parent | *: make sure zebra.h is always included first (diff) | |
download | frr-233cc0fb5a36d88bec7336c4a7c36b41243743d3.tar.xz frr-233cc0fb5a36d88bec7336c4a7c36b41243743d3.zip |
ospfd: fix unused warning in ospf_write
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'ospfd')
-rw-r--r-- | ospfd/ospf_packet.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ospfd/ospf_packet.c b/ospfd/ospf_packet.c index a714683b0..3f80bf214 100644 --- a/ospfd/ospf_packet.c +++ b/ospfd/ospf_packet.c @@ -645,8 +645,8 @@ ospf_write (struct thread *thread) struct listnode *node; #ifdef WANT_OSPF_WRITE_FRAGMENT static u_int16_t ipid = 0; -#endif /* WANT_OSPF_WRITE_FRAGMENT */ u_int16_t maxdatasize; +#endif /* WANT_OSPF_WRITE_FRAGMENT */ #define OSPF_WRITE_IPHL_SHIFT 2 int pkt_count = 0; @@ -675,9 +675,10 @@ ospf_write (struct thread *thread) * and reliability - not more data, than our * socket can accept */ +#ifdef WANT_OSPF_WRITE_FRAGMENT maxdatasize = MIN (oi->ifp->mtu, ospf->maxsndbuflen) - sizeof (struct ip); - +#endif /* WANT_OSPF_WRITE_FRAGMENT */ /* Get one packet from queue. */ op = ospf_fifo_head (oi->obuf); assert (op); |