Invalid argument in IPv6-config

Valery Soldatov vssold at gmail.com
Thu Jul 14 09:11:54 UTC 2011


Hello,
I am trying to make DHCPv6-server wint ISC-DHCP 4.2.1-P1 under OpenBSD 4.9
amd64.
I use a simple config file:

subnet6 2001:0db8:0:a::/64 {
range6 2001:0db8:0:a:1::01 2a02:5800:0:a:1::99;
option dhcp6.name-servers 2001:0db8:0:a::144:1;
}

Server starts with "/usr/sbin/dhcpd -6 -f -d -cf /home/dhcpd6.conf re0"
and then I see attempts to get address from Win7 client:

Internet Systems Consortium DHCP Server 4.2.1-P1
Copyright 2004-2011 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Wrote 0 leases to leases file.
Bound to *:547
Listening on Socket/7/re0/2001:0db8:0:a::/64
Sending on   Socket/7/re0/2001:0db8:0:a::/64
Solicit message from fe80::74c5:96cb:ac0c:c065 port 546, transaction ID
0xAF9AE000
Picking pool address 2001:0db8:0:a:1::99
Sending Advertise to fe80::74c5:96cb:ac0c:c065 port 546
send_packet6: Invalid argument
 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<!!!!!!!!!<<<<<<<<<<<<<
dhcpv6: send_packet6() sent -1 of 109 bytes

Tcpdump shows received packets and no transmitted.. Firewall is turned off.

Could You please help me with "Invalid argument"? I googled for a few hours,
and did not find solution. I installed this DHCP server on another server
(32bit) and got the same result.
The only thing I found suspictious is in config.log, but it did not print
any error messages on screen during installation.

configure:7535: gcc -c -g -O2  conftest.c >&5

In file included from conftest.c:35:

/usr//include/sys/socket.h:105: error: expected specifier-qualifier-list
before 'off_t'
/usr//include/sys/socket.h:162: error: expected specifier-qualifier-list
before 'u_int8_t'
/usr//include/sys/socket.h:180: error: expected specifier-qualifier-list
before 'u_int8_t'
/usr//include/sys/socket.h:249: error: expected specifier-qualifier-list
before 'uid_t'
/usr//include/sys/socket.h:394: error: expected specifier-qualifier-list
before 'socklen_t'
/usr//include/sys/socket.h:420: error: expected specifier-qualifier-list
before 'socklen_t'
/usr//include/sys/socket.h:476: error: expected specifier-qualifier-list
before 'caddr_t'
In file included from conftest.c:35:

/usr//include/sys/socket.h:491: error: expected declaration specifiers or
'...' before 'socklen_t'
/usr//include/sys/socket.h:492: error: expected declaration specifiers or
'...' before 'socklen_t'
/usr//include/sys/socket.h:493: error: expected declaration specifiers or
'...' before 'socklen_t'
/usr//include/sys/socket.h:494: error: expected declaration specifiers or
'...' before 'uid_t'
/usr//include/sys/socket.h:494: error: expected declaration specifiers or
'...' before 'gid_t'
/usr//include/sys/socket.h:495: error: expected declaration specifiers or
'...' before 'socklen_t'
/usr//include/sys/socket.h:496: error: expected declaration specifiers or
'...' before 'socklen_t'
/usr//include/sys/socket.h:497: error: expected declaration specifiers or
'...' before 'socklen_t'
/usr//include/sys/socket.h:499: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'recv'
/usr//include/sys/socket.h:500: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'recvfrom'
/usr//include/sys/socket.h:501: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'recvmsg'
/usr//include/sys/socket.h:502: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'send'
/usr//include/sys/socket.h:503: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'sendto'
/usr//include/sys/socket.h:505: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'sendmsg'
/usr//include/sys/socket.h:506: error: expected declaration specifiers or
'...' before 'socklen_t'
conftest.c: In function 'main':

conftest.c:41: error: 'struct sockaddr' has no member named 'sa_len'

configure:7541: $? = 1

configure: failed program was:

| /* confdefs.h.  */


I used usual installation procedure: ./configure, gmake, gmake install.
What is my mistake?

Val.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20110714/d6709753/attachment.html>


More information about the dhcp-users mailing list