Commit Graph
18 Commits
Author SHA1 Message Date
Kim 08f873adc7 Roll up year to 2016 2016-04-22 22:50:26 +08:00
Kim dfa9e17c1b Add help option
* updated cli option 'help'

- all 5 apps supports cli option '-h' without error exit code
- supports long option '--help'

* fixed bad line brake
2016-04-21 06:22:58 +08:00
Max Lv ac5f26c6fa Fix #585 2016-04-17 19:38:10 +08:00
Max Lv 114128668c Refine helper functions 2016-04-16 00:43:27 +08:00
Syrone Wong ebe79bbbd8 Refine memory management (#579)
- Added one macro to avoid dangling pointers
- Added two functions to perform NULL pointer check
  since the allocation is not guaranteed by C library, although it
  is a rare case, just for sanity
- Add NULL pointer check to brealloc() and bfree() and for sanity as well

Signed-off-by: Syrone Wong <wong.syrone@gmail.com>
2016-04-15 09:16:38 -07:00
Syrone Wong 53c6a09b93 Reset errno to 0 before checking it
errno is never set to zero by any system call or library function,
and it's programmer's resposibility to reset it before doing checks.
Otherwise the error might be misleading.

Signed-off-by: Syrone Wong <wong.syrone@gmail.com>
2016-04-15 08:35:16 -07:00
aipsel cd0b5c8586 Fix to avoid memory leak.
If received data is invalid, this method can cause memory leak.
2015-12-29 00:45:10 +08:00
aipsel b86ecbbd5c add check to avoid Segmentation fault 2015-12-27 18:20:04 +08:00
Max Lv b0600a8784 Refine buffer handling 2015-11-30 15:03:04 +08:00
Max Lv 99f4c9e50e fix #461 2015-11-22 10:37:56 +08:00
Max Lv 772de6fdeb fix #444 2015-11-08 10:34:20 +08:00
Max Lv d5f77c447b fix #444 2015-10-30 20:55:40 +08:00
Max Lv 25c575cb78 clean up 2015-10-29 15:41:36 +08:00
Max Lv f19390724b fix #393 2015-09-08 22:26:51 +08:00
Max Lv 096e1eca5d fix a build issue 2015-08-12 12:42:09 +08:00
Max Lv 4c508e1ed4 add ip addr support 2015-08-12 12:27:59 +08:00
Max Lv 7f9e158f85 fix a build issue 2015-08-12 09:53:33 +08:00
Max Lv 5f3c2e1256 Add ss-manager for multi-user control and traffic statistics. 2015-08-11 18:57:18 +09:00