Yahoo Groups archive

Milter-greylist

Index last updated: 2026-04-28 23:32 UTC

Message

Re: Make error - structure has no member named `sin6_scope_id'

2006-01-13 by tirilimpspoolteist

--- In milter-greylist@yahoogroups.com, Emmanuel Dreyfus <manu@n...>
wrote:

> Quick fix: Add an #undef AF_INET6 after the includes in pending.c

Great, it works.
> 
> But we need a better fix? Can we see your struct sockaddr_in6
definition?
> It should be in /usr/include/netinet6/in6.h

Well I'm compiling kernel, so from kernel-2.4.32 source in6.h file I
found:

struct sockaddr_in6 {
 unsigned short int      sin6_family;    /* AF_INET6 */
 __u16          sin6_port;      /* Transport layer port # */
 __u32           sin6_flowinfo;  /* IPv6 flow
information */   struct in6_addr         sin6_addr;      /* IPv6
address */
 __u32           sin6_scope_id;  /* scope id (new in RFC2553) */
};

But somehow I think that system still reads from somewhere the old 2.2
kernel headers, as there I found:

struct sockaddr_in6 {
 unsigned short int      sin6_family;    /* AF_INET6 */
 __u16                   sin6_port;      /* Transport layer port # */
 __u32                   sin6_flowinfo;  /* IPv6 flow information */
 struct in6_addr         sin6_addr;      /* IPv6 address */
};

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.