Heikki Hannikainen
eecaccfcbf
reduce debug log
...
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@399 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-06-05 06:26:47 +00:00
Heikki Hannikainen
392ff19778
http status view: fix memory leak
...
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@398 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-06-05 06:26:39 +00:00
Heikki Hannikainen
61d73578fb
= client_heard: less debug log
...
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@397 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-06-05 06:26:24 +00:00
Heikki Hannikainen
98b8540a99
Initial implementation of status.json availability
...
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@396 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-06-04 22:39:30 +00:00
Heikki Hannikainen
dc7cb8d75a
= replace some LOG_CRIT with _NOTICE
...
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@395 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-06-04 22:32:03 +00:00
Heikki Hannikainen
f7ed58fceb
http thread: quicker shutdown
...
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@394 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-06-04 22:10:17 +00:00
Heikki Hannikainen
c151709a0c
+ make the libevent http thread start and shut down
...
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@393 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-06-04 16:13:43 +00:00
Heikki Hannikainen
141e77d498
Initial work towards an embedded HTTP server. I hate to do it, but HTTP uploads need it.
...
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@392 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-06-04 15:19:49 +00:00
Heikki Hannikainen
03b3c86f89
+ source documentation (new modules)
...
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@391 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-06-04 14:50:58 +00:00
Heikki Hannikainen
332da2c956
Fixes to match new Q construct processing. Use proper login process in the
...
fake IS server so that the servers feel at home with it.
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@390 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-06-04 14:45:44 +00:00
Heikki Hannikainen
cc2891faeb
= quiet debug print from tests Makefile
...
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@389 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-06-04 14:44:50 +00:00
Heikki Hannikainen
ac2124f87b
messaging test: implement tests for courtesy positions
...
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@388 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-06-04 14:44:28 +00:00
Heikki Hannikainen
75bb1fd557
IS.pm: added debug printing
...
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@387 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-06-04 14:44:02 +00:00
Heikki Hannikainen
2e6ffa34a5
runproduct tests: kill an existing aprsc instance, if a test set crashes and
...
leaves it running.
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@386 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-06-04 14:43:38 +00:00
Heikki Hannikainen
af7c2af110
nmea parser test: don't add random junk to end of NMEA packet, so that
...
javaprssrvr will properly parse it and pass it according to the filter.
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@385 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-06-04 14:42:33 +00:00
Heikki Hannikainen
903f49810d
IS_Fake: support for a real login procedure and validation of the client
...
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@384 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-06-04 14:41:51 +00:00
Heikki Hannikainen
04b99655a9
istest: more debug output when needed. Support for no_random_helper.
...
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@383 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-06-04 14:41:19 +00:00
Heikki Hannikainen
cdbefc8e43
Q algorithm: Update to match java server 4.0
...
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@382 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-06-04 14:38:24 +00:00
Heikki Hannikainen
392a41ec40
Implement courtesy position transmission with messaging.
...
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@381 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-06-04 14:37:54 +00:00
Heikki Hannikainen
d7e955c496
uplink thread: sleep in shorter steps (200ms instead of 1s or 4s) so that the
...
thread shuts down quicker.
Collect the server name of the upstream server in c->username so that it can
be used in the Q algorithm.
Verify that the login to the upstream actually works.
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@380 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-06-04 14:35:50 +00:00
Heikki Hannikainen
9c588943b4
accept thread: use a quicker polling loop to make the thread shut down quicker (200ms instead of 1000ms)
...
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@379 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-06-04 14:34:18 +00:00
Heikki Hannikainen
54dab6371e
= tests IS_Fake: support selecting the fake server's callsign
...
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@378 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-06-03 18:07:32 +00:00
Heikki Hannikainen
d7965b0673
Tests: disable qconstr-unverified tests now, as there are no
...
unverified clients allowed for the time being.
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@377 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-06-02 17:48:04 +00:00
Heikki Hannikainen
edfa838f85
qconstr-verified: update test according to javaprssrvr 4.0 changes
...
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@376 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-06-02 17:47:37 +00:00
Heikki Hannikainen
78b1ed629c
When logging in to a remote server, verify that we actually manage to log in
...
successfully based on the logresp message. Disconnect the uplink if the
login goes wrong, instead of timing out.
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@375 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-06-02 17:43:50 +00:00
Heikki Hannikainen
88df2e183b
worker: switch close_client to client_close and make it callable from elsewhere
...
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@374 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-06-02 17:30:37 +00:00
Heikki Hannikainen
3a7fcb1516
Q construct/APRS-IS parsing: Reject path element calls with invalid chars,
...
including '*' which is only valid before the Q construct. Also fixed some
logging bugs.
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@373 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-06-02 17:02:44 +00:00
Heikki Hannikainen
c33e4c9cc3
Bump version number from 0.0.1 to 0.1.0, this is actually starting to work.
...
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@372 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-06-02 17:01:18 +00:00
Heikki Hannikainen
6aa35c080e
Force C locale to make ctype functions (and a bunch of others)
...
to behave consistently even if the user uses some other
locale.
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@371 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-06-02 17:00:59 +00:00
Heikki Hannikainen
e139a611fb
According to http://www.aprs-is.net/ServerDesign.aspx , the server must
...
initially transmit it's software name and version string
(# <software> <version>). It'll be recorded at least by javaprssrvr
clients. So, do that, instead of saying "Hello <clientaddr>".
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@370 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-06-02 17:00:23 +00:00
Heikki Hannikainen
3930aaeb3d
tests updates for supporting javaprssrvr 4.0:
...
- don't use N0CALL, as it's filtered
- in dupecheck test, do not use an invalid Q construct without igate
callsign, test that sort of invalid packet in the qconstr-verified test
- runproduct.pm fixes for chdir() to javaprssrvr dir
- fix some error returns from IS.pm/istest.pm to show the correct line sent
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@369 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-06-01 06:10:07 +00:00
Heikki Hannikainen
24ac53d9d1
+ TODO item
...
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@368 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-05-31 05:59:58 +00:00
Heikki Hannikainen
ada486ac54
= just an indentation fix
...
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@367 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-05-30 22:38:53 +00:00
Heikki Hannikainen
61bd2f8e5f
+ expire client_heard_list entries
...
+ put found entries in the beginning of client_heard_list so that
the following lookups (frequently really soon after) will be
faster
+ accounting+status json reporting for client_heard_list
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@366 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-05-30 21:56:07 +00:00
Heikki Hannikainen
ec67313248
+ Almost completely implement messaging support for aprsc: keep
...
track of heard stations per client, and pass messages to them.
With tests. Expiration missing, and courtesy posits.
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@365 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-05-29 21:12:59 +00:00
Heikki Hannikainen
7a8658fcfe
+ fix some tests to run on javaprssrvr
...
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@364 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-05-28 21:59:47 +00:00
Heikki Hannikainen
98d039c430
= switch all tests to use custom ports which are less likely to overlap
...
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@363 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-05-28 21:38:25 +00:00
Heikki Hannikainen
9270576d6c
+ when a validated client logs in for the second time using the same
...
username, disconnect the old client.
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@362 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-05-28 19:05:23 +00:00
Heikki Hannikainen
49062bebe9
= less debug log
...
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@361 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-05-28 19:02:54 +00:00
Heikki Hannikainen
f3b3df46bd
+ uplink: collect server's software version info
...
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@360 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-05-18 19:41:44 +00:00
Heikki Hannikainen
72efa065d8
= clean up c->addr_s / addr_ss, replace with addr_loc (local addr) and addr_rem (remote address)
...
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@359 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-05-18 18:35:32 +00:00
Heikki Hannikainen
51afd46837
+ status improvements: client list and server uname/operator info
...
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@358 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-05-18 17:37:22 +00:00
Heikki Hannikainen
eab3c83095
= parse_aprs: disable debug log
...
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@357 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-05-18 17:36:50 +00:00
Heikki Hannikainen
cd8145738b
+ more q construct tests
...
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@356 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-05-17 22:50:20 +00:00
Heikki Hannikainen
1ebc142d19
= support IPv6 fake IS server in the tests
...
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@355 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-05-17 22:50:05 +00:00
Heikki Hannikainen
7508485b09
= When allocating space for the new packet (after Q processing), do not
...
require space for two Q constructs when the construct is actually being
replaced.
= Use a larger buffer for the new replacement Q construct
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@354 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-05-17 22:26:16 +00:00
Heikki Hannikainen
7e714c26ce
= qc processor: make sure not to overrun the new Q construct buffer when
...
generating a new qAI trace construct
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@353 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-05-17 22:24:24 +00:00
Heikki Hannikainen
7604632c2c
= outgoing: added a bunch of commented out debug logs
...
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@352 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-05-17 22:21:43 +00:00
Heikki Hannikainen
4840fcd166
= shorter sleep for dupecheck to reduce latency
...
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@351 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-05-17 22:21:07 +00:00
Heikki Hannikainen
41a3022e24
= removed newlines from hlog() calls
...
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@350 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-05-17 22:18:32 +00:00