On p, okt 05, 2012 at 13:46:19 +0200, Gerhard Roth wrote:
> Hi,
> 
> I trying to revive part of an old patch that was submitted by mpf
> in 2007. If adds support for DNS server negotiation to the IPCP
> part of sppp(4). If the PPP server provides IP addresses for
> DNS servers, they will appear in the ifconfig(8) output.
> 
> A simple ifstated(8) script could then be used to re-write resolv.conf,
> e.g.
> 
>       # ifconfig pppoe | sed -n 's/^[[:space:]]*dns.:/nameserver/p'
[...]


/usr/src/sbin/ifconfig # make clean obj all
rm -f a.out [Ee]rrs mklog core *.core y.tab.h  ifconfig ifconfig.o brconfig.o 
pbkdf2.o  ifconfig.ln brconfig.ln pbkdf2.ln     .man-linted ifconfig.8.manlint
/usr/src/sbin/ifconfig/obj -> /usr/obj/sbin/ifconfig
cc -O2 -pipe    -DINET6 -I/usr/src/sbin/ifconfig/../bioctl -c 
/usr/src/sbin/ifconfig/ifconfig.c
/usr/src/sbin/ifconfig/ifconfig.c: In function 'sppp_status':
/usr/src/sbin/ifconfig/ifconfig.c:4267: error: 'struct sppp' has no member 
named 'dns_addrs'
/usr/src/sbin/ifconfig/ifconfig.c:4269: error: 'struct sppp' has no member 
named 'dns_addrs'
/usr/src/sbin/ifconfig/ifconfig.c:4270: error: 'struct sppp' has no member 
named 'dns_addrs'
/usr/src/sbin/ifconfig/ifconfig.c:4272: error: 'struct sppp' has no member 
named 'dns_addrs'
*** Error code 1

Stop in /usr/src/sbin/ifconfig (line 92 of /usr/share/mk/sys.mk).




Did I miss some part of the diff?


Daniel

-- 
LÉVAI Dániel
PGP key ID = 0x83B63A8F
Key fingerprint = DBEC C66B A47A DFA2 792D  650C C69B BE4C 83B6 3A8F

Reply via email to