X-Git-Url: https://git.distorted.org.uk/~mdw/tripe/blobdiff_plain/f88b41d65f2284fb974b40ff5915db730f4bad55..7737eb87d283d46b7a90caba20ac75c3214451d3:/server/peer.c diff --git a/server/peer.c b/server/peer.c index 377dcc59..27ac4a78 100644 --- a/server/peer.c +++ b/server/peer.c @@ -816,7 +816,7 @@ void p_setifname(peer *p, const char *name) const addr *p_addr(peer *p) { return (&p->spec.sa); } -/* --- @p_init@ --- * +/* --- @p_bind@ --- * * * Arguments: @struct addrinfo *ailist@ = addresses to bind to * @@ -825,7 +825,7 @@ const addr *p_addr(peer *p) { return (&p->spec.sa); } * Use: Initializes the peer system; creates the socket. */ -void p_init(struct addrinfo *ailist) +void p_bind(struct addrinfo *ailist) { int fd; int len = PKBUFSZ; @@ -883,6 +883,19 @@ void p_init(struct addrinfo *ailist) } } +} + +/* --- @p_init@ --- * + * + * Arguments: --- + * + * Returns: --- + * + * Use: Initializes the peer system. + */ + +void p_init(void) +{ sym_create(&byname); am_create(&byaddr); }