Commit Graph

108 Commits

Author SHA1 Message Date
MissValeska
e542a51345 Wow! I've done A LOT of work on the netsukuku console recently! I still haven't set up any way for ntkd to receive the commands, Or done much of anything in netsukuku itself recently except change some stuff in the exclude function to prevent possible errors if an interface had the same name up until the end of the one specified. I.E if it had tunl012, It wouldn't work because it had tunl0 in the beginning. Now, It will read from the entire length of the variable, And if it doesn't match it entirely, Then it is okay.
Anyway! The netsukuku console is almost ready! I just keep getting this weird issue around fgets() not working at all in console(). It causes the program to spam  the > symbol. It functions in main()! However, After that, It has a segmentation fault. I've been trying everything I can think of, One thing made it not do a segmentation fault, However! The fgets() inside of console() still didn't work, So, It just spammed endlessly. Anyone who can, Please help! I've been working on this for a while! :/
2014-06-04 03:47:49 -07:00
MissValeska
d238933703 The Netsukuku console has been mostly fixed, I've made A LOT of changes! However, I keep getting a weird segmentation fault about iogetline.c not being found or something. I can't find it on my system, Apparently it's part of some version of glibc. However, apt-file search didn't bring up any results when I searched for it, And glibc is installed already. Anyway, Any help would be appreciated! Thank you for reading! 2014-06-03 10:55:39 -07:00
MissValeska
04d4dd7a1e The Netsukuku Console *should* work now! However! I have not set up anything inside of netsukuku to actually read and respond to these commands, So, It is useless currently. Please feel free to edit this or provide suggestions about things I may be doing wrong! I've never done IPC before! Thank you for reading! ^_^ 2014-06-02 22:06:48 -07:00
MissValeska
b55ebb4275 ntkd.pid location was incorrect 2014-06-02 00:28:28 -07:00
MissValeska
9e20200410 I've been working on a console for netsukuku! As the exclude argument almost definitely works now, I can work on other things. I, Also, Will need a console for further testing of netsukuku, And of the exclude argument. If any of you can help, Or test, I would very much appreciate it if you were to do so! Thank you for reading. :) 2014-06-02 00:14:19 -07:00
MissValeska
15ddf1c45b Fixed a variable declaration 2014-06-01 20:58:16 -07:00
MissValeska
9d790fcc07 Okay, Testing again, I've been doing a bunch of reading of netsukuku's code, Hopefully this will work. 2014-06-01 20:51:10 -07:00
MissValeska
0f9b385a31 Okay, So, I seem to have fixed the compilation errors, I will begin testing now. 2014-06-01 18:35:16 -07:00
MissValeska
c57ad438ed More testing, Re-enabled exclude functions. 2014-06-01 17:40:56 -07:00
MissValeska
e148dc2389 Okay, There are some compilation errors, And, While the check_interfaces function will work, It will only work if the interface lists are already populated. Which, Doesn't seem to happen until after the argument section of netsukuku. I guess we will have to, Either, Call those functions somehow (In a way that won't cause them to be called twice, And, Thus, Create duplicates.), Or, Use the exclude_interfaces function. However, That function is probably sub-par, I don't know how well it will really work with the rest of netsukuku.
Much more work and testing is required, I will just comment this code out for now, I am going to look into the feasibility of porting netsukuku to windows.
2014-05-26 20:58:40 -07:00
MissValeska
19ce039cee I added a lot of stuff! I fully set up exclude_interface to ignore inactive interfaces, and optarg, Along with a small list of other interfaces. I did some bug fixing, And looked into how netsukuku sets it's interfaces by default, And added some stuff to deal with that too.
I, Also, Figured out that, The entire exclude_interface function is probably unnecessary, And can be fully replaced with just check_excluded, Which would be much simpler, Easier, And elegant. Along with the fact that, It will probably just work.
2014-05-26 20:21:17 -07:00
MissValeska
3b039c4e55 More testing 2014-05-26 16:31:35 -07:00
MissValeska
b8c8d1142b Added the beginnings of a function to check if a second exclude argument is excluding something that was already added into netsukuku's interface list, And removes it. 2014-05-26 02:28:30 -07:00
MissValeska
b16541893c I decreased the amount of code, Improved the readiablity, And, Hopefully, Fixed some bugs. 2014-05-26 02:17:47 -07:00
MissValeska
27f363f9b1 Oh, My, GOD! You may think I was just doing afk the past week or so, But, You'd be wrong, So, So, SO wrong. I've spent almost every day working as hard as I can on this commit here. It should work perfectly now, It should properly exclude interfaces, And, It should automatically exclude inactive ones. More testing is needed, Especially testing of running the -e argument multiple times, I.E -e eth0 -e wlan0. Anyway, Thank you for reading, And for downloading. 2014-05-26 00:10:30 -07:00
MissValeska
a7bbd6dff7 Sorry, I should have read more about goto, I understand now, And it should work now. 2014-05-20 15:20:38 -07:00
MissValeska
d286e89ddd Here is a vagrant file I have been testing with, You will have to use vde_switch in order to run netsukuku without being disconnected from ssh. Also, I've done some work on the exclude argument, I'm testing some goto stuff right now, I'm primarily pushing this for testing purposes across multiple devices. 2014-05-20 15:08:09 -07:00
MissValeska
f976e01bc3 The Exclude argument should only use active interfaces. 2014-05-20 14:17:55 -07:00
MissValeska
6e7d252878 Everything should now be okay, Just, Don't leave any interfaces disabled. We still need to figure out how to handle excluding multiple interfaces, And for ignoring disabled ones. 2014-05-13 20:13:02 -07:00
MissValeska
e5eaf16cab The Exclude argument should now work, And some unneccesary debugging stuff has been removed. 2014-05-13 19:04:42 -07:00
MissValeska
e06db959e8 Exclude would work, If there wasn't a segmentation fault. 2014-05-13 17:45:00 -07:00
MissValeska
7333da2f7c gah, So many errors with this exclude thing. 2014-05-13 15:47:43 -07:00
MissValeska
01042aaadc I've done A LOT of work on an exclude interface argument. I.E us all interfaces except this one. It does not work yet, Any help anyone provides in fixing it will be appreciated. 2014-05-12 16:28:24 -07:00
MissValeska
ccb9620a0a I corrected a grammatical error in hook.c, And I removed some unnecessary debug lines. 2014-05-11 20:10:42 -07:00
MissValeska
d585116c1c Sorry, I forgot a semi-colan 2014-05-10 12:47:04 -07:00
MissValeska
267988b246 Added err again 2014-05-10 12:45:33 -07:00
MissValeska
bf7e67f9aa Packet Fragmentation should be totally fixed now, This needs extensive testing 2014-05-10 12:41:30 -07:00
MissValeska
2231df0ea7 Almost done with packet fragmentation 2014-05-09 16:23:50 -07:00
MissValeska
ec70f4cb47 Changed SIGKILL to SIGINT, So Netsukuku will clean and save everything properly. I, Also, Added more stuff to inet_sendto for packet division in the case of errno 90. Still working 2014-05-07 18:57:20 -07:00
MissValeska
54195c8b76 I spent a few hours adding a kill argument to ntkd, You can now kill an instance of ntkd by just running another with -k 2014-05-07 16:01:57 -07:00
MissValeska
4a097a27f1 Memory Management Error fixes 2014-05-03 12:10:51 -07:00
MissValeska
1cd30dd79e More mark.c debug stuff 2014-03-29 15:13:11 -07:00
MissValeska
dc972ec120 Old stuff 2014-03-29 15:10:39 -07:00
MissValeska
1c571ff8ea I added more debugging print lines, I am pushing this because of a weird kernel panic on my system. I will test this on other systems. 2014-03-29 14:21:46 -07:00
MissValeska
67816d3e7d I don't actually remember, It's probaby debug stuff. 2014-03-24 22:30:13 -07:00
MissValeska
9918b99634 We are having a LOT of weird issues now, I need to do a lot of debugging, Please help. 2014-03-18 18:29:15 -07:00
MissValeska
b28ac22fb3 A million changes, tunl0 was only ever used for checking if the ipip module is loaded. So, Instead of trying to modify it to check if it exists, We now just use get tunnel. We improved some errors and added some of our own. We made more changes than I can remember right now, Please enjoy. 2014-03-17 21:42:37 -07:00
MissValeska
15baa56a87 Oh my god! I fixed the tunl0 issues by renaming it to tunl1 and creating tunl1 on my system first, Amongst other things I don't remember. 2014-03-16 04:17:57 -07:00
MissValeska
1dadd0e8b4 Oh my god! So many things have changed, IGS is so close, If not already working! 2014-03-13 20:19:40 -07:00
MissValeska
75d68083c3 IGS Maayyyy be working!! 2014-03-10 16:01:29 -07:00
Valeska
cdca542720 Added bug fixed with hack line 2014-03-10 15:30:18 -07:00
MissValeska
b7f8a6cdb9 I, FINALLY, Fixed the bug where netsukuku just crashed in restricted mode, Without restoring /etc/resolv.conf. However! I did this by bypassing fatal(). This is kind of a hack, Netsukuku will probably be able to restore /etc/resolv.conf without this, Once the tunl0 bug is fixed, Thus preventing fatal from being called. 2014-03-10 15:25:53 -07:00
MissValeska
c61afcb0db IMPORTANT: Added that a bug prevents ntk from discovering nodes. 2014-03-10 04:20:31 -07:00
MissValeska
c01b79d3bd Added ntk wifi not discovering bug 2014-03-10 03:44:12 -07:00
Valeska
469695f40e More bugs added 2014-03-04 13:55:25 -08:00
Valeska
40d0b66e24 Added more bugs, Will add more soon. 2014-03-01 18:32:51 -08:00
MissValeska
eb91be8f93 I fixed the compilation errors, And netsukuku now works correctly! Probably 2014-02-28 02:14:43 -08:00
Valeska
ea6f5248d4 More Linux Kernel Detections 2014-02-14 16:13:38 -08:00
Valeska
cf72a5ec59 Linux Kernel Version checking
For compatibility between new and old distributions of linux.
2014-02-14 16:12:55 -08:00
Valeska
9b8df0cd35 I Imported more of Michele Bini's fixes. 2014-02-12 19:02:24 -08:00
Valeska
5cbded5473 Copied Michele Bini's threading fixes.
https://github.com/Netsukuku/netsukuku/compare/debian-lenny-compilation-fixes

Some of these are specifically for debian lenny 2008! Do NOT use them all, They will break your installation of netsukuku. I will try to set it up properly.
2014-02-12 19:00:33 -08:00
Valeska
e636fdb93c I improved the wording of the help list. 2013-10-01 05:21:24 -07:00
Michele Bini
c8139087d0 Added missing file src/libiptc/ipt_CONNMARK.h 2013-09-30 17:22:52 +02:00
Michele Bini
5727e2f1a5 Compilation fix for recent autotools 2013-09-30 09:34:13 +02:00
Michele Bini
6e03e0dee2 Compilation fixes from the 2010 debianized release 2013-09-30 09:29:12 +02:00
Michele Bini
e0a0364f14 Fixes for compiling libiptc with recent netfilter headers 2013-09-30 09:25:50 +02:00
Michele Bini
75e218b7f2 Compilation fix for more recent GCC compiler 2013-09-30 09:20:59 +02:00
Kirill Sotnikov
f1761cad9a git repo init 2013-09-16 13:53:25 +04:00