ip: consolidate IPv6 link-local-address functions. 79/20179/4
authorJon Loeliger <jdl@netgate.com>
Thu, 13 Jun 2019 16:02:26 +0000 (11:02 -0500)
committerJon Loeliger <jdl@netgate.com>
Mon, 17 Jun 2019 21:03:33 +0000 (16:03 -0500)
commitdfa47ddf85adc1245647d4108a1a7a15c2b79969
tree76a637d562001e8f5a16112b61c35f40926d352e
parent72f2a3acb797797416a96dc10312ccd431126de7
ip: consolidate IPv6 link-local-address functions.

Two codes diverged in the packet processor
And sorry I could not use them both
Long I stood being but one developer
And studied one as far as I could
To where the code said bitwise OR

Then took the other, as just could see,
And having perhaps the better bit,
Because it followed the RFC
And used the cryptic XOR in C,
Had run them both a fair bit.

And both equally ran that morning
With packets dropped and flowing.
Oh, I flagged the first for dropping!
Yet knowing bug leads to debuging
I hoped I'd never be returning.

I shall be commiting this with a sigh
Somewhere ages and ages hence:
Two codes diverged by a bit, and I,
I made the packets flow on by,
And that has made all the difference.

Type: fix
Change-Id: If2698726d5501fde76211994f8efc37119345352
Signed-off-by: Jon Loeliger <jdl@netgate.com>
src/vnet/ip/ip6_neighbor.c [changed mode: 0755->0644]
src/vnet/ip/ip6_packet.h