Commit Graph

192 Commits

Author SHA1 Message Date
MissValeska
01fd7798ca merging 2014-10-15 21:35:27 -07:00
MissValeska
e52842f8d8 Modified the console time function to always produce a non-negative and correct value. 2014-09-25 14:03:24 -07:00
Valeska
719232b6f9 A comment to explain how inet_send works with the EMSGSIZE case.
I almost made a very complicated and unneeded change instead of just leaving it as it is because I didn't think of this. So I want this to be here so everyone can understand how this works.
2014-09-21 16:15:48 -07:00
Alexander von Gluck IV
eb6648d7ec Revert "gmap: Limit new IPv4 nodes to a class-b private network"
This reverts commit 1dc21e5bc5.

* May bike-shed the ipv4 address to a class A.
2014-09-19 18:18:42 -05:00
Alexander von Gluck IV
1dc21e5bc5 gmap: Limit new IPv4 nodes to a class-b private network
* 172 is generally used for auto-config... so it fits
  well with the ad-hoc mesh nature of Netsukuku
* IPv6 could be limited to a uni-cast local address
  as well.
2014-09-19 14:37:48 -05:00
Alexander von Gluck IV
ba6c7a6bf9 headers: Fix missing header comments 2014-09-17 10:36:24 -05:00
Alexander von Gluck IV
3c840072e0 qspn-empiric: If we return non-void we have to return *something* 2014-09-17 07:54:18 -05:00
Alexander von Gluck IV
e264723db2 all: Automatic style cleanup, KnR. No functional change.
* Style varied wildly between files and within files.
* find . -name "*.c" -exec indent {} -ut -ts4 -kr -psl \;
* find . -name "*.h" -exec indent {} -ut -ts4 -kr -psl \;
2014-09-17 07:41:24 -05:00
Alexander von Gluck IV
5d78d45402 build: Cleanup, add qspn to default build 2014-09-17 07:28:51 -05:00
Alexander von Gluck IV
6dacd92b5c build: drop remaining autotools cruft 2014-09-17 12:09:26 +00:00
Alexander von Gluck IV
c5352bb134 ntk-console-server: Show current IP address. This needs improved. 2014-09-16 19:04:20 -05:00
Alexander von Gluck IV
39bf5ab020 ntk-console-server: Show basic internet connectivity 2014-09-16 18:59:03 -05:00
Alexander von Gluck IV
8264979309 ntk-console-server: Show basic current interfaces 2014-09-15 18:43:14 -05:00
Alexander von Gluck IV
cea41ed409 ntk-console: Begin returning valid results in ntk-console-server 2014-09-15 18:06:26 -05:00
Alexander von Gluck IV
2694b1cda4 ntk-console-server: Remove debugging info 2014-09-15 17:43:43 -05:00
Alexander von Gluck IV
9439a67b34 Scons: Update outdated language 2014-09-14 20:08:35 -05:00
Alexander von Gluck IV
98e77ded15 ntk-console: Fix retransmit on console 2014-09-14 15:56:36 -05:00
Alexander von Gluck IV
eb12395dcb ntk-console: Cleanup commands, accept command packets
* console commands now read as standardized struct packets
* responses are still character arrays
2014-09-14 15:38:40 -05:00
Alexander von Gluck IV
84e377eff5 ntk-console: Additional cleanup, no functional change 2014-09-14 12:51:50 -05:00
Alexander von Gluck IV
e23eaafd7b inet: Remove unused unused variables 2014-09-14 12:47:40 -05:00
Alexander von Gluck IV
fd551da7b4 ntk: Don't return in function that doesn't use returns 2014-09-14 12:15:26 -05:00
Alexander von Gluck IV
cf9063f92b ntk: Clean up console spawning
* Fix a few incorrect header dependencies
2014-09-14 12:12:48 -05:00
Alexander von Gluck IV
c92713f4d5 misc: Fix missed improper inline 2014-09-14 11:58:17 -05:00
Alexander von Gluck IV
c6eb6b7a40 ntk-console: Add missing string.h 2014-09-14 11:56:50 -05:00
Alexander von Gluck IV
be6e9d3511 ntk: Fix incorrect inline statements
* That isn't how you use those.
2014-09-14 11:44:16 -05:00
Alexander von Gluck IV
bc054faf0c Console: Add common console header to keep API in sync 2014-09-14 11:43:50 -05:00
Alexander von Gluck IV
2627ba6350 Build: Place ntk-console as part of core build 2014-09-14 11:16:41 -05:00
Alexander von Gluck IV
d262a621ac Build: Drop messy, poorly written autotools
* Move back to a SCons build system
* Place scons script at base of project
2014-09-14 11:09:41 -05:00
Alexander von Gluck IV
0a5463d759 Ntk-console: Clean up file descriptors.
* Fork incomming console connections to support
  multiple connections at once.
* Rework ntpd console connection acceptance.
2014-09-14 10:40:39 -05:00
Alexander von Gluck IV
bc3f496788 Ntk-console: Stop using fixed buffer width.
* Detect end of string in console and act on that.
* Open console connection on startup
* Terminate console connection on exit
2014-09-14 09:50:08 -05:00
Alexander von Gluck IV
3a842c2d4c Ntk-console: Clean up command line parsing
* Make console application function
* No more segfaults
* Apply KnR style
2014-09-13 20:14:14 -05:00
MissValeska
5d49293e08 Pointer fixed. 2014-08-17 10:22:50 -07:00
MissValeska
ef639756da Pointer fixed. 2014-08-17 10:21:35 -07:00
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