More mark.c debug stuff

This commit is contained in:
MissValeska 2014-03-29 15:13:11 -07:00
commit 1cd30dd79e
2 changed files with 24 additions and 17 deletions

View File

@ -1,5 +1,5 @@
http://netsukuku.freaknet.org
##New Donations options have been added, Including tip4commit! Scroll down please!
@ -73,6 +73,21 @@ This will run netsukuku in restricted mode and share your internet connection.
(Netsukuku should be able to use any network interface you have, Even VPNs that emulate ethernet
such as tinc.)
# How to donate
We love netsukuku, However, We can't work on it if we don't have money for an internet connection, Or money for food. Not all of us are not traditionally employed, And we need donations to continue being able to work, And devote as much time as we can to this wonderful project!
This project is a dream come true for many of us, And we would love it if you would help us mantain this dream for as long as possible! Thank you for reading. :)
[We will distribute any donated money amongst ourselves, and take that as incentive to work harder on the project. However, We will, Also, Provide additional crypto currency addresses if you want to donate to a specific person, Or prefer crypto-currencies.]
* [Tip4Commit!](Tip4Commit!:http://tip4commit.com/projects/687) (http://tip4commit.com/projects/687)
* [Jercos' Bitcoin Address](Jercos' Bitcoin Address:1BAbi4aHjdN7znNLuDa6dgs4rZLU3Tq9ka) (1BAbi4aHjdN7znNLuDa6dgs4rZLU3Tq9ka)
* [MissValeska's Bitcoin Address](MissValeska's Bitcoin Address:1Py3CmmaDk2bCUsLGprFkewGQunaKB7jmv) (1Py3CmmaDk2bCUsLGprFkewGQunaKB7jmv)
* [MissValeska's Litecoin Address](MissValeska's Litecoin Address:LcjJW2hDHS9oCxCWAb3WLexyJECSZ2Rp2s) (LcjJW2hDHS9oCxCWAb3WLexyJECSZ2Rp2s)
* [Communial Paypal Account](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=K5QNFRAXBYPY6)
## Manual Dependencies
You can manually download the dependencies of netsukuku if you want,
@ -228,19 +243,6 @@ You can browse the archive here:
http://lists.dyne.org/netsukuku/
http://dir.gmane.org/gmane.network.peer-to-peer.netsukuku
# How to donate
We love netsukuku, However, We can't work on it if we don't have money for an internet connection, Or money for food. Not all of us are not traditionally employed, And we need donations to continue being able to work, And devote as much time as we can to this wonderful project!
This project is a dream come true for many of us, And we would love it if you would help us mantain this dream for as long as possible! Thank you for reading. :)
[We will distribute any donated money amongst ourselves, and take that as incentive to work harder on the project. However, We will, Also, Provide additional crypto currency addresses if you want to donate to a specific person, Or prefer crypto-currencies.]
* [Jercos' Bitcoin Address](Jercos' Bitcoin Address:1BAbi4aHjdN7znNLuDa6dgs4rZLU3Tq9ka) (1BAbi4aHjdN7znNLuDa6dgs4rZLU3Tq9ka)
* [MissValeska's Bitcoin Address](MissValeska's Bitcoin Address:1Py3CmmaDk2bCUsLGprFkewGQunaKB7jmv) (1Py3CmmaDk2bCUsLGprFkewGQunaKB7jmv)
* [MissValeska's Litecoin Address](MissValeska's Litecoin Address:LcjJW2hDHS9oCxCWAb3WLexyJECSZ2Rp2s) (LcjJW2hDHS9oCxCWAb3WLexyJECSZ2Rp2s)
* [Communial Paypal Account](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=K5QNFRAXBYPY6)
# Bug report

View File

@ -55,6 +55,7 @@ static int dumped;
int table_init(const char *table, iptc_handle_t *t)
{
*t=iptc_init(table);
error("In table_int, t: %s and errno %d", table,errno);
if (!(*t)) {
error("In table_init, table %s: -> %s", table,iptc_strerror(errno));
err_ret(ERR_NETFIL,-1);
@ -73,6 +74,7 @@ int insert_rule(const char *rule,iptc_handle_t *t,const char *chain,int pos)
{
int res;
res=iptc_insert_entry(chain,(struct ipt_entry*)rule,0,t);
error("res is: %d rule is: %p chain is: %s pos is: %d t is: %p errno is: %d", res, rule, chain, pos, t, errno);
if (!res) {
error("In insert_rule: %s.",iptc_strerror(errno));
err_ret(ERR_NETRUL,-1);
@ -89,6 +91,7 @@ int append_rule(const char *rule,iptc_handle_t *t,const char *chain)
{
int res;
res=iptc_append_entry(chain,(struct ipt_entry*)rule,t);
error("res is: %d, chain: %s, rule: %s, t: %s, Errno is: %d",res,chain,rule,t,errno);
if (!res) {
error("In append_rule: %s.",iptc_strerror(errno));
err_ret(ERR_NETRUL,-1);
@ -105,7 +108,7 @@ int commit_rules(iptc_handle_t *t)
{
int res;
res=iptc_commit(t);
error("This is the value of res: %i This is the value of t is: %p", res, t);
error("This is the value of res: %i This is the value of t is: %p errno is: %d", res, t, errno);
if (!res) {
error("In commit_rules: %s.",iptc_strerror(errno));
err_ret(ERR_NETCOM,-1);
@ -321,11 +324,13 @@ int store_rules()
dr.sz=IGW_FILTER_RULE_SZ;
memcpy(dr.e,d,dr.sz);
dr.chain=CHAIN_PREROUTING;
commit_rules(&t);
error("This is store_rules, And the value of t is: %p", t);
commit_rules(&t);
return 0;
}
else {
error("This is store_rules, And the value of t is: %p", t);
error("This is store_rules else, And the value of t is: %p", t);
commit_rules(&t);
error("In store_rules: %s.",iptc_strerror(errno));
err_ret(ERR_NETSTO,-1);