Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Jul 2016 16:28:58 -0400
From:      Ryan Stone <rysto32@gmail.com>
To:        Andrew Gallatin <gallatin@netflix.com>
Cc:        freebsd-transport@freebsd.org
Subject:   Re: in_broadcast() called for almost every packet in ip_output()
Message-ID:  <CAFMmRNyeUiru=t3i5ymhQiCnNivV9-=PYK6F0ak0swZo2M969A@mail.gmail.com>
In-Reply-To: <CAFMmRNxjpZMVbRLv-xqYNTXjCUh6=oDPfqK_cM47i64bRs51eA@mail.gmail.com>
References:  <CAFMmRNx%2Bx9GNDgDHO5oyoj-S%2BCK9bRvJhpNNFf3%2BPk0p2SQeSQ@mail.gmail.com> <CADLQ3sLyytm0HMsSChhWD108t6iPpquXH2E2R7Wc42FpaAP1Rw@mail.gmail.com> <CAFMmRNyi1-K%2BKX6bY2bx7_hiq2PDPJa-QJatBf0QdtriGnJ5fw@mail.gmail.com> <559f1d0e-9d35-f458-bff5-b69a03297cf0@netflix.com> <CAFMmRNxjpZMVbRLv-xqYNTXjCUh6=oDPfqK_cM47i64bRs51eA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hang on a sec.  At this point in ip_output(), we already have the route.
Can't we just calculate the broadcast address using the route and then skip
in_broadcast() entirely?



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFMmRNyeUiru=t3i5ymhQiCnNivV9-=PYK6F0ak0swZo2M969A>