MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / proto2a

Function proto2a

socket_info.h:562–574  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

560}
561
562static inline char *proto2a(int proto)
563{
564 static char b[PROTO_NAME_MAX_SIZE+1];
565 char *p;
566
567 /* print the proto name */
568 p = proto2str( proto, b);
569
570 /* make it null terminated */
571 *p = '\0';
572
573 return b;
574}
575
576
577#define MAX_SOCKET_STR ( 4 + 1 + IP_ADDR_MAX_STR_SIZE+1+INT2STR_MAX_LEN+1)

Callers 5

mi_print_blacklist_ruleFunction · 0.85
msg_sendFunction · 0.85
sock_mgm_newFunction · 0.85
proto_ipsec_sendFunction · 0.85
receive_tm_replFunction · 0.85

Calls 1

proto2strFunction · 0.85

Tested by

no test coverage detected