Browse Source

More mark.c debug stuff

MissValeska 10 years ago
parent
commit
1cd30dd79e
2 changed files with 24 additions and 17 deletions
  1. 16
    14
      README.md
  2. 8
    3
      src/mark.c

+ 16
- 14
README.md View File

1
 http://netsukuku.freaknet.org
1
 http://netsukuku.freaknet.org
2
-
2
+##New Donations options have been added, Including tip4commit! Scroll down please!
3
 
3
 
4
 
4
 
5
 
5
 
73
 (Netsukuku should be able to use any network interface you have, Even VPNs that emulate ethernet
73
 (Netsukuku should be able to use any network interface you have, Even VPNs that emulate ethernet
74
 such as tinc.)
74
 such as tinc.)
75
 
75
 
76
+# How to donate
77
+
78
+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!
79
+
80
+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. :)
81
+
82
+[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.]
83
+
84
+* [Tip4Commit!](Tip4Commit!:http://tip4commit.com/projects/687) (http://tip4commit.com/projects/687)
85
+
86
+* [Jercos' Bitcoin Address](Jercos' Bitcoin Address:1BAbi4aHjdN7znNLuDa6dgs4rZLU3Tq9ka) (1BAbi4aHjdN7znNLuDa6dgs4rZLU3Tq9ka)
87
+* [MissValeska's Bitcoin Address](MissValeska's Bitcoin Address:1Py3CmmaDk2bCUsLGprFkewGQunaKB7jmv) (1Py3CmmaDk2bCUsLGprFkewGQunaKB7jmv)
88
+* [MissValeska's Litecoin Address](MissValeska's Litecoin Address:LcjJW2hDHS9oCxCWAb3WLexyJECSZ2Rp2s) (LcjJW2hDHS9oCxCWAb3WLexyJECSZ2Rp2s)
89
+* [Communial Paypal Account](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=K5QNFRAXBYPY6)
90
+
76
 ## Manual Dependencies
91
 ## Manual Dependencies
77
 
92
 
78
 You can manually download the dependencies of netsukuku if you want, 
93
 You can manually download the dependencies of netsukuku if you want, 
228
   http://lists.dyne.org/netsukuku/
243
   http://lists.dyne.org/netsukuku/
229
   http://dir.gmane.org/gmane.network.peer-to-peer.netsukuku
244
   http://dir.gmane.org/gmane.network.peer-to-peer.netsukuku
230
 
245
 
231
-# How to donate
232
-
233
-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!
234
-
235
-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. :)
236
-
237
-[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.]
238
-
239
-* [Jercos' Bitcoin Address](Jercos' Bitcoin Address:1BAbi4aHjdN7znNLuDa6dgs4rZLU3Tq9ka) (1BAbi4aHjdN7znNLuDa6dgs4rZLU3Tq9ka)
240
-* [MissValeska's Bitcoin Address](MissValeska's Bitcoin Address:1Py3CmmaDk2bCUsLGprFkewGQunaKB7jmv) (1Py3CmmaDk2bCUsLGprFkewGQunaKB7jmv)
241
-* [MissValeska's Litecoin Address](MissValeska's Litecoin Address:LcjJW2hDHS9oCxCWAb3WLexyJECSZ2Rp2s) (LcjJW2hDHS9oCxCWAb3WLexyJECSZ2Rp2s)
242
-* [Communial Paypal Account](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=K5QNFRAXBYPY6)
243
-
244
 # Bug report
246
 # Bug report
245
 
247
 
246
 
248
 

+ 8
- 3
src/mark.c View File

55
 int table_init(const char *table, iptc_handle_t *t)
55
 int table_init(const char *table, iptc_handle_t *t)
56
 {
56
 {
57
 	*t=iptc_init(table);
57
 	*t=iptc_init(table);
58
+	error("In table_int, t: %s and errno %d", table,errno);
58
 	if (!(*t)) {
59
 	if (!(*t)) {
59
 		error("In table_init, table %s: -> %s", table,iptc_strerror(errno));
60
 		error("In table_init, table %s: -> %s", table,iptc_strerror(errno));
60
 		err_ret(ERR_NETFIL,-1);
61
 		err_ret(ERR_NETFIL,-1);
73
 {
74
 {
74
 	int res;
75
 	int res;
75
 	res=iptc_insert_entry(chain,(struct ipt_entry*)rule,0,t);
76
 	res=iptc_insert_entry(chain,(struct ipt_entry*)rule,0,t);
77
+	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);
76
 	if (!res) {
78
 	if (!res) {
77
 		error("In insert_rule: %s.",iptc_strerror(errno));
79
 		error("In insert_rule: %s.",iptc_strerror(errno));
78
 		err_ret(ERR_NETRUL,-1);
80
 		err_ret(ERR_NETRUL,-1);
89
 {
91
 {
90
 	int res;
92
 	int res;
91
 	res=iptc_append_entry(chain,(struct ipt_entry*)rule,t);
93
 	res=iptc_append_entry(chain,(struct ipt_entry*)rule,t);
94
+	error("res is: %d, chain: %s, rule: %s, t: %s, Errno is: %d",res,chain,rule,t,errno);
92
 	if (!res) {
95
 	if (!res) {
93
 		error("In append_rule: %s.",iptc_strerror(errno));
96
 		error("In append_rule: %s.",iptc_strerror(errno));
94
 		err_ret(ERR_NETRUL,-1);
97
 		err_ret(ERR_NETRUL,-1);
105
 {
108
 {
106
 	int res;
109
 	int res;
107
 	res=iptc_commit(t);
110
 	res=iptc_commit(t);
108
-	error("This is the value of res: %i This is the value of t is: %p", res, t);
111
+	error("This is the value of res: %i This is the value of t is: %p errno is: %d", res, t, errno);
109
 	if (!res) {
112
 	if (!res) {
110
 		error("In commit_rules: %s.",iptc_strerror(errno));
113
 		error("In commit_rules: %s.",iptc_strerror(errno));
111
 		err_ret(ERR_NETCOM,-1);
114
 		err_ret(ERR_NETCOM,-1);
321
 			dr.sz=IGW_FILTER_RULE_SZ;
324
 			dr.sz=IGW_FILTER_RULE_SZ;
322
 			memcpy(dr.e,d,dr.sz);
325
 			memcpy(dr.e,d,dr.sz);
323
 			dr.chain=CHAIN_PREROUTING;
326
 			dr.chain=CHAIN_PREROUTING;
324
-			commit_rules(&t);
327
+            error("This is store_rules, And the value of t is: %p", t);
328
+            commit_rules(&t);
325
 			return 0;
329
 			return 0;
326
 		}
330
 		}
327
 		else {
331
 		else {
328
-            		error("This is store_rules, And the value of t is: %p", t);
332
+
333
+            error("This is store_rules else, And the value of t is: %p", t);
329
 			commit_rules(&t);
334
 			commit_rules(&t);
330
 			error("In store_rules: %s.",iptc_strerror(errno));
335
 			error("In store_rules: %s.",iptc_strerror(errno));
331
 			err_ret(ERR_NETSTO,-1);
336
 			err_ret(ERR_NETSTO,-1);

Loading…
Cancel
Save