Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Sep 2001 11:56:20 +0200
From:      Bernd Walter <ticso@mail.cicely.de>
To:        Bill Fenner <fenner@research.att.com>
Cc:        karels@bsdi.com, arch@FreeBSD.ORG
Subject:   Re: Causing <netinet/in.h> to depend on <sys/socket.h>
Message-ID:  <20010910115619.A4979@cicely20.cicely.de>
In-Reply-To: <200109072125.OAA25298@windsor.research.att.com>; from fenner@research.att.com on Fri, Sep 07, 2001 at 02:25:02PM -0700
References:  <200109072125.OAA25298@windsor.research.att.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Sep 07, 2001 at 02:25:02PM -0700, Bill Fenner wrote:
> 
> Sorry for making people guess what I was talking about.
> 
> Concretely, http://www.ietf.org/internet-drafts/draft-ietf-idmr-msf-api-02.txt
> requires that #including <netinet/in.h> results in definitions like
> the following:
> 
> 
> struct group_req {
>    uint32_t                gr_interface; /* interface index */
>    struct sockaddr_storage gr_group;     /* group address */
> };
> 
> struct group_source_req {
>    uint32_t                gsr_interface; /* interface index */
>    struct sockaddr_storage gsr_group;     /* group address */
>    struct sockaddr_storage gsr_source;    /* source address */
> };
> 
> struct group_filter {
>    uint32_t                gf_interface; /* interface index */
>    struct sockaddr_storage gf_group;     /* multicast address */
>    uint32_t                gf_fmode;     /* filter mode */
>    uint32_t                gf_numsrc;    /* number of sources */
>    struct sockaddr_storage gf_slist[1];  /* source address */
> };

If it is defined as protocol independend it doesn't belong into a
protocol dependend header.
E.g. I don't want to include netinet/in.h in an IPv6 only application.

-- 
B.Walter              COSMO-Project         http://www.cosmo-project.de
ticso@cicely.de         Usergroup           info@cosmo-project.de


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010910115619.A4979>