Oh my god! So many things have changed, IGS is so close, If not already working!

This commit is contained in:
MissValeska 2014-03-13 20:19:40 -07:00
parent 9da1028493
commit 1dadd0e8b4
3 changed files with 42 additions and 33 deletions

7
Install-Ntk-Debug.sh Executable file
View File

@ -0,0 +1,7 @@
#!/bin/sh
make clean
autoreconf -i
CFLAGS="-g" ./configure
make
sudo make install

View File

@ -603,6 +603,8 @@ int andns_gethostbyname(char *hname, inet_prefix *ip)
error(err_str); error(err_str);
err_ret(ERR_RSLRSL,-1); err_ret(ERR_RSLRSL,-1);
} }
fprintf(stderr, "Addr is %p, rdata is %p\n", (void*)addr, (void*) dp->pkt_answ->rdata);
if ((dp == NULL) || (dp->pkt_answ == NULL) || (dp->pkt_answ->rdata == NULL)) return -1;
memcpy(&addr, dp->pkt_answ->rdata, sizeof(uint32_t)); memcpy(&addr, dp->pkt_answ->rdata, sizeof(uint32_t));
addr=ntohl(addr); addr=ntohl(addr);
if ((res=inet_setip_raw(ip,&addr, AF_INET))==-1) { if ((res=inet_setip_raw(ip,&addr, AF_INET))==-1) {

View File

@ -26,7 +26,7 @@ masq_start() {
# echo "1" > /proc/sys/net/ipv4/ip_dynaddr # echo "1" > /proc/sys/net/ipv4/ip_dynaddr
# Masquerade # Masquerade
iptables -A POSTROUTING -t nat -j MASQUERADE -o ! lo iptables -A POSTROUTING -t nat -j MASQUERADE ! -o lo
# Static IP users: # Static IP users:
# #