3 ms·
> They essentially picked up a print out of some source code they found laying on the ground in a park with a sticky note on top saying "DO NOT USE" and then t
by jcelerier 6y ago
> They essentially picked up a print out of some source code they found laying on the ground in a park with a sticky note on top saying "DO NOT USE" and then threw it into their security-focused product for shits and giggles.
to be fair mDNS is complex and shitty enough to use that it'd likely have been worse if they reimplemented it themselves.
I mean just look at the official Apple code:
- https://github.com/SteveKChiu/bonjour-embedded/blob/master/mDNSShared/dnssd_clientshim.c#L428 https://github.com/SteveKChiu/bonjour-embedded/blob/master/m...
- https://github.com/SteveKChiu/bonjour-embedded/blob/master/mDNSShared/dnssd_clientshim.c#L755 https://github.com/SteveKChiu/bonjour-embedded/blob/master/m...
- and the best, that 8kloc single file which implements the main logic of it https://github.com/SteveKChiu/bonjour-embedded/blob/master/mDNSCore/mDNS.c https://github.com/SteveKChiu/bonjour-embedded/blob/master/m...
makes my eyes bleed every time