MCPcopy Create free account
hub / github.com/F-Stack/f-stack / logsctperror

Function logsctperror

freebsd/netinet/libalias/alias_sctp.c:2517–2533  ·  view source on GitHub ↗

---------------------------------------------------------------------- * 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

Source from the content-addressed store, hash-verified

2515 * @param direction Direction of packet
2516 */
2517static void
2518logsctperror(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

Callers 8

SctpAliasFunction · 0.85
GetAsconfVtagsFunction · 0.85
AddGlobalIPAddressesFunction · 0.85
RmGlobalIPAddressesFunction · 0.85
IsASCONFackFunction · 0.85
IsADDorDELFunction · 0.85
RmSctpAssocFunction · 0.85
sctp_CheckTimersFunction · 0.85

Calls 1

SctpAliasLogFunction · 0.85

Tested by

no test coverage detected