Commit Graph

159 Commits

Author SHA1 Message Date
MissValeska
86699a7a11 Changed variable type. 2014-08-17 10:08:31 -07:00
MissValeska
9fbb56d12c Fixed some more warnings. 2014-08-17 09:51:19 -07:00
MissValeska
6b234354cd Improved install script and fixed some warnings. 2014-08-17 09:35:46 -07:00
MissValeska
186a64f4ac Changed request to char * 2014-08-17 09:20:10 -07:00
MissValeska
4b7dbb6ede Removed fix 2014-08-17 09:14:32 -07:00
MissValeska
ddb12a1f37 fixed char * compilation error 2014-08-17 08:53:03 -07:00
MissValeska
cb8258ce6e Merge branch 'master' of https://github.com/Netsukuku/netsukuku
really dunno why this is necessary, netbeans
2014-08-17 08:28:33 -07:00
MissValeska
6101dfe6df Removed unneccesary variable, Okay sorry, I know I am not giving that much information, But this is really just compilation fixes which I am using git for so I can send them to my testing machine. 2014-08-17 08:27:29 -07:00
MissValeska
2c216e4b17 Function addition 2014-08-17 08:09:10 -07:00
MissValeska
67a11b69a9 Function argument correction 2014-08-17 07:56:02 -07:00
MissValeska
18634081fa Variable name correction 2014-08-17 07:48:21 -07:00
MissValeska
17aa8921b3 I used the defines BUFFER_LENGTH and REQUEST_LENGTH instead of 250 in the console client and bindings. 2014-08-17 00:06:22 -07:00
MissValeska
b13c3bf5de I have done a LOT of work! I have changed the whole paradigm of the ntk console client and console bindings! I have changed it from peer to peer to server-client because there was no point doing it the other way, And that way was hard and I didn't really know what I was doing. I followed some IBM examples, And didn't try to extrapolate.
I have done a little bit of work trying to resolve some compilation errors, However, I cannot check if there are any compilation errors now because my root partition is full, again. My compiler needs to do something with /tmp so I can only see a portion of the error logs, All of which are warnings up until the no space error.

I will do some more testing and debugging on my other machine, Help is appreciated, Enjoy!
2014-08-15 22:51:54 -07:00
MissValeska
bd9a10620f Wow! That was a lot of work! But, Netsukuku now has (or should have) a functioni
ng console with the bindings in ntkd to receive, process, and respond to command
s! Now, I just need to test stuff, And figure out how to deal with server_opt be
cause that is a type and not just a struct. Anyway, Enjoy!
2014-08-04 00:04:46 -07:00
MissValeska
f47aae4605 Ugh! This console "should" work, But it doesn't! I tested the same thing and was able to get it to work in another file! Something about these functions and what ever is causing a segmentation fault! fgets is not setting request, Even though it does in my test file! Anyway, I'll keep working on this, However, I have been working on this for a while, I would appreciate any help anyone would like to give! Thank you for reading! 2014-06-07 04:52:30 -07:00
MissValeska
a7b9b6cf51 I added more complete comments, And cleaned up some stuff. 2014-06-05 10:23:55 -07:00
MissValeska
c6209e0436 I've removed some stuff that wasn't really needed, Like that second thread, And I've added more uptime information, Along with some other stuff. This still produces a segmentation fault, Though, So, I will need to keep working/get help on and with this. Anyway, Thank you for reading! 2014-06-04 19:41:12 -07:00
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
b9e764d89d Removed hidden folder 2014-05-20 15:13:19 -07:00
Valeska
1f403df0c4 Added ignore for hidden folders and gedit backups 2014-05-20 15:11:17 -07:00
Valeska
8d4e4b1d10 Unneccessary 2014-05-20 15:10:18 -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
Michele Bini
83cc78f40b Merge pull request #4 from idonin/master
First version of Makefile for Openwrt
2014-05-20 16:13:33 +02:00
idonin
1c63763518 Update Makefile 2014-05-20 14:12:01 +04:00
idonin
bdac37b630 Update Makefile 2014-05-20 14:10:59 +04:00
idonin
a2db8e075c Create Makefile 2014-05-20 14:09:22 +04:00
Valeska
3084295a56 I added archlinux options.
I had to go to the official arch linux website and read through the package list to help someone, I, Also, Had to read on an arch linux wiki for the pacman command.
2014-05-14 02:39:57 -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