Przeglądaj źródła

More mark.c debug stuff

MissValeska 10 lat temu
rodzic
commit
1cd30dd79e
2 zmienionych plików z 24 dodań i 17 usunięć
  1. 16
    14
      README.md
  2. 8
    3
      src/mark.c

+ 16
- 14
README.md Wyświetl plik

@@ -1,5 +1,5 @@
1 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,6 +73,21 @@ This will run netsukuku in restricted mode and share your internet connection.
73 73
 (Netsukuku should be able to use any network interface you have, Even VPNs that emulate ethernet
74 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 91
 ## Manual Dependencies
77 92
 
78 93
 You can manually download the dependencies of netsukuku if you want, 
@@ -228,19 +243,6 @@ You can browse the archive here:
228 243
   http://lists.dyne.org/netsukuku/
229 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 246
 # Bug report
245 247
 
246 248
 

+ 8
- 3
src/mark.c Wyświetl plik

@@ -55,6 +55,7 @@ static int dumped;
55 55
 int table_init(const char *table, iptc_handle_t *t)
56 56
 {
57 57
 	*t=iptc_init(table);
58
+	error("In table_int, t: %s and errno %d", table,errno);
58 59
 	if (!(*t)) {
59 60
 		error("In table_init, table %s: -> %s", table,iptc_strerror(errno));
60 61
 		err_ret(ERR_NETFIL,-1);
@@ -73,6 +74,7 @@ int insert_rule(const char *rule,iptc_handle_t *t,const char *chain,int pos)
73 74
 {
74 75
 	int res;
75 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 78
 	if (!res) {
77 79
 		error("In insert_rule: %s.",iptc_strerror(errno));
78 80
 		err_ret(ERR_NETRUL,-1);
@@ -89,6 +91,7 @@ int append_rule(const char *rule,iptc_handle_t *t,const char *chain)
89 91
 {
90 92
 	int res;
91 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 95
 	if (!res) {
93 96
 		error("In append_rule: %s.",iptc_strerror(errno));
94 97
 		err_ret(ERR_NETRUL,-1);
@@ -105,7 +108,7 @@ int commit_rules(iptc_handle_t *t)
105 108
 {
106 109
 	int res;
107 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 112
 	if (!res) {
110 113
 		error("In commit_rules: %s.",iptc_strerror(errno));
111 114
 		err_ret(ERR_NETCOM,-1);
@@ -321,11 +324,13 @@ int store_rules()
321 324
 			dr.sz=IGW_FILTER_RULE_SZ;
322 325
 			memcpy(dr.e,d,dr.sz);
323 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 329
 			return 0;
326 330
 		}
327 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 334
 			commit_rules(&t);
330 335
 			error("In store_rules: %s.",iptc_strerror(errno));
331 336
 			err_ret(ERR_NETSTO,-1);

Loading…
Anuluj
Zapisz