diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2015-09-15 02:11:45 -0700 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-06-09 10:50:20 -0400 |
| commit | 233cc0fb5a36d88bec7336c4a7c36b41243743d3 (patch) | |
| tree | 9f4caa4ccd43e93b382f1e8d5553b8060ed7757f | |
| parent | 7a2fbbf0ee98f16021c4b809f342ee6cf4b7f8ac (diff) | |
ospfd: fix unused warning in ospf_write
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
| -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 a714683b06..3f80bf214b 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); |
