---------------------------------------------------------------------- * LOGGING CODE * ---------------------------------------------------------------------- */ @addtogroup Logging * * The logging functions provide logging of different items ranging from logging * a simple message, through logging an association details to logging the * current state of the NAT
| 2515 | * @param direction Direction of packet |
| 2516 | */ |
| 2517 | static void |
| 2518 | logsctperror(char* errormsg, uint32_t vtag, int error, int direction) |
| 2519 | { |
| 2520 | char dir; |
| 2521 | switch (direction) { |
| 2522 | case SN_TO_LOCAL: |
| 2523 | dir = 'L'; |
| 2524 | break; |
| 2525 | case SN_TO_GLOBAL: |
| 2526 | dir = 'G'; |
| 2527 | break; |
| 2528 | default: |
| 2529 | dir = '*'; |
| 2530 | break; |
| 2531 | } |
| 2532 | SctpAliasLog("->%c %s (vt=%u) %d\n", dir, errormsg, ntohl(vtag), error); |
| 2533 | } |
| 2534 | |
| 2535 | /** @ingroup Logging |
| 2536 | * @brief Log what the parser parsed |
no test coverage detected