mbuf.h rev 1.142

Bruce Evans bde at zeta.org.au
Wed May 19 02:18:49 PDT 2004


On Tue, 18 May 2004, Gleb Smirnoff wrote:

> ...
>   what was the reason for moving ip_claim_next_hop() from ip_var.h
> to mbuf.h? As far as I understand mbuf.h contains declarations to
> mbuf interface, which is lower than IP protocol, or sockets.
>
> m_claim_next_hop() is not really a pure mbuf function, while all other
> functions in mbuf.h are.
>
> After rev 1.142 including mbuf.h requires including of netinet/in.h,
> and this is not logically correct.

It's not quite that bad.  It doesn't need a complete struct sockaddr_in
typem so it doesn't require including netinet/in.h.

Bruce


More information about the freebsd-current mailing list