aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
* Fix default PID location for FreeBSD (#31)Emanuel Haupt2023-05-17
| | | When on FreeBSD, the PID file should be written to /var/run instead of /run.
* fixed unaligned pointer access to packed memberlns2020-06-22
| | | | | | | | pdesc.c:233:2: warning: converting a packed ‘icmp_echo_packet_t’ pointer (alignment 1) to a ‘uint16_t’ {aka ‘short unsigned int’} pointer (alignment 2) may result in an unaligned pointer value [-Waddress-of-packed-member] 233 | pkt->checksum = htons(calc_icmp_checksum((uint16_t*)pkt, pkt_len)); | ^~~
* set ip_pkt to NULL during definitionToni Uhlig2020-05-27
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* define PACKAGE_STRING if HAVE_CONFIG_H undefined (useful if compiling w/o ↵Toni Uhlig2020-05-27
| | | | | | configure/make) Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* re-enabled and improved logging of packet headers and payload (SEND)Toni Uhlig2020-05-27
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* re-enabled and improved logging of packet headers and payloadToni Uhlig2020-05-27
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* splitted bigfat anon enum in pconfig.h into multiple smaller ones hoping to ↵Toni Uhlig2020-05-27
| | | | | | | | improve readability * clang-format headers Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* moved HAVE_PCAP pre-processor conditional before pqueueToni Uhlig2020-05-24
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* added deprecation text for -P/--passwd optionToni Uhlig2020-04-05
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* initial clang-format fileToni Uhlig2020-03-25
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* Got rid of those non working extended options, because:removed_extended_optionsToni Uhlig2020-03-22
| | | | | | | | | | | * legendary spaghetti code * did not work at all, caused several buffer overflows * pain-in-the-ass to maintain and test * badly reviewed from my side :/ * improved and working "extended options" may be added later * basically reverts most of #8 Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* moved queueing code for out-of-order payload data into subroutineToni Uhlig2020-03-21
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* braces for conditionsToni Uhlig2020-03-21
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* moved payload queueing code into subroutineToni Uhlig2020-03-16
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* reduced statement nesting depth of function handle_packetToni Uhlig2020-03-16
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* fixed invalid sequence count during auth (`--passwd`)Toni Uhlig2020-03-15
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* ignore incomplete packets instead of exit(0), only allow packet queueing if ↵Toni Uhlig2020-03-15
| | | | | | state allows it Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* fixed mingw build caused by an invalid explicit function type castToni Uhlig2020-03-14
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* sequence number timeout table uses now correct time_t for timestampsToni Uhlig2020-03-14
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* improved icmp/forward descriptor structs and use -Wextra for all buildsToni Uhlig2020-03-14
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* moved header byte-re-ordering code into a subroutineToni Uhlig2020-03-12
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* moved proxy descriptor search into getter functionToni Uhlig2020-03-12
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* moved authentication request/response code to subroutinesToni Uhlig2020-03-07
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* Revert "gitlab-ci: use archlinux:latest"Toni Uhlig2020-03-01
| | | | This reverts commit 32ff9ee7fadf6f3e1e705c49a8545fca2cc3d4bc.
* gitlab-ci: use archlinux:latestToni Uhlig2020-03-01
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* code formattingToni Uhlig2020-02-22
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* handle incoming tunnel request in a subroutineToni Uhlig2020-02-21
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* Run clang-format on old ptk.c/.h filesErik Simon2020-02-20
|
* removed superfluous explicit numeric castsToni Uhlig2019-12-05
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* log at least an info message if our receive window is not big enoughToni Uhlig2019-12-04
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* reduced function signature and removed dead code in acknowledge handlingToni Uhlig2019-12-03
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* fixed missing variable initialize - before used in conditionToni Uhlig2019-12-03
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* fixed missing challenge response memcpyToni Uhlig2019-12-03
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* removed superfluous if statementToni Uhlig2019-12-02
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* reduced handle_data unnecessary complex function signatureToni Uhlig2019-12-01
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* print sequence number for superfluous ACK's recvToni Uhlig2019-11-30
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* indentationToni Uhlig2019-09-11
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* configure.ac: enable ASAN, LSAN and UBSANToni Uhlig2019-09-11
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* configure.ac: enable assertions explicitlyToni Uhlig2019-09-11
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* typ0s fixedToni Uhlig2019-09-09
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* refactored queue_packet by shrinking the function signature to the minimaToni Uhlig2019-09-09
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* removed unused function prototype, improved termination msgsToni Uhlig2019-09-05
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* Revert "added fallback random source ("/dev/urandom") for systems with low ↵Toni Uhlig2019-08-18
| | | | | | entropy available and "/dev/random" activated" This reverts commit 9f2cf5f50a337d73058c43e88453cb2926b49fb3.
* added fallback random source ("/dev/urandom") for systems with low entropy ↵Toni Uhlig2019-08-11
| | | | | | available and "/dev/random" activated Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* fixed ci errorToni Uhlig2019-07-14
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* SHA512 challenge response authenticationToni Uhlig2019-07-13
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* use arc4random() for coverity builds, yet another format specifier fixToni Uhlig2019-07-06
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* fixed format specifier issuesToni Uhlig2019-07-06
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* handle_extended_options should use proxy_desc_t* instead of a incomplete ↵Toni Uhlig2019-07-04
| | | | | | void* as 1st argument Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* use $(srcdir) instead of $(abs_srcdir) in Makefile.am, so makedist works againToni Uhlig2019-06-30
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>