On 10/25/2012 09:53 AM, LEVAI Daniel wrote: > 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 >
Daniel, the patch contained a modification to sys/net/if_sppp.h adding 'u_int32_t dns_addrs[2]' to struct sppp. Could you please check if that patch applied? In case it did, do a 'make build' so that /usr/include/net/if_sppp.h gets updated. Gerhard
