[prev in list] [next in list] [prev in thread] [next in thread]
List: openbsd-bugs
Subject: library/968: in6addr_any and in6addr_loopback missing from libc
From: assar () stacken ! kth ! se
Date: 1999-10-29 0:18:10
[Download RAW message or body]
>Number: 968
>Category: library
>Synopsis: in6addr_any and in6addr_loopback missing from libc
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: bugs
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Nov 9 04:50:02 MST 1999
>Last-Modified:
>Originator: Assar Westerlund
>Organization:
none
>Release: 2.5 and 2.6-current
>Environment:
System : OpenBSD 2.5 and 2.6-current
Architecture: OpenBSD.{i386,sparc}
Machine : i386,sparc
>Description:
There are no definitions for `in6addr_any' or `in6addr_loopback' in
libc. There are declarations for these in <netinet/in.h> but they're
missing from the library. These variables are required by RFC2553.
>How-To-Repeat:
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <machine/endian.h>
#include <netinet/in.h>
int
main(void)
{
struct sockaddr_in6 sa;
memset (&sa, 0, sizeof(sa));
sa.sin6_family = AF_INET6;
sa.sin6_port = htons(4711);
sa.sin6_addr = in6addr_any;
return 0;
}
foo.c:15: Undefined symbol `_in6addr_any' referenced from text segment
>Fix:
Add the obvious lines to some appropriate file in lib/libc/net
>Audit-Trail:
>Unformatted:
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic