diff options
-rw-r--r-- | cmogstored.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cmogstored.h b/cmogstored.h index c12234b..f7fa022 100644 --- a/cmogstored.h +++ b/cmogstored.h @@ -615,6 +615,12 @@ verify(sizeof(in_port_t) <= sizeof(uint16_t)); */ struct mog_ni { char ni_host[INET6_ADDRSTRLEN + sizeof("[]") - 1]; + + /* + * we may not always be serving protocols with port numbers in them, + * so we embed space for the ":" in the ni_serv field to make managing + * syslog(3) format strings more flexible. + */ char ni_serv[sizeof(":65536")]; }; |