| 560 | } |
| 561 | |
| 562 | static 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) |
no test coverage detected