• Elliott Hughes's avatar
    <netinet/udp.h> should include <linux/udp.h>. · f8a2243e
    Elliott Hughes authored
    The comment about "other stuff" referred to pre-uapi headers. Everything
    in the current <linux/udp.h> should be exposed to userspace. The only
    problem is that BSD and Linux use different names for the members of
    struct udphdr. We can move the Linux udphdr out of the way and use an
    anonymous union to get the best of both worlds. (Though unfortunately
    this means that code that includes <linux/udp.h> directly instead of
    using <netinet/udp.h> now won't have any definition of struct udphdr.
    We've taken the stance in the past that you shouldn't include a linux/
    header if there's a standard equivalent --- you should rely on us
    transitively including it for you.)
    
    Change-Id: Ie625892441b0edd8df3b76d3fcf2cbe299077bc4
    f8a2243e
netinet_udp_test.cpp 1.47 KB