mirror of
https://github.com/ChronosX88/netsukuku.git
synced 2024-11-22 10:12:18 +00:00
Oh my god! So many things have changed, IGS is so close, If not already working!
This commit is contained in:
parent
9da1028493
commit
1dadd0e8b4
7
Install-Ntk-Debug.sh
Executable file
7
Install-Ntk-Debug.sh
Executable file
@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
make clean
|
||||||
|
autoreconf -i
|
||||||
|
CFLAGS="-g" ./configure
|
||||||
|
make
|
||||||
|
sudo make install
|
@ -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) {
|
||||||
|
@ -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:
|
||||||
#
|
#
|
||||||
|
Loading…
Reference in New Issue
Block a user