diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2004-01-01 23:46:48 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2004-01-01 23:46:48 +0000 |
commit | 4e446d5117aca066229a6eea302910120954f524 (patch) | |
tree | 4d69a449c6974ead1261a8a0dd5f6016b7252b2b /usr.sbin/bgpd/imsg.c | |
parent | e739f0ace9d26fdcc465c4a0677813ff7e940037 (diff) |
listen on a AF_LOCAL socket for imsgs too.
only implemented type yet is IMSG_CTL_SHOW_NEIGHBOR which sends back
the struct peer for all neighbors.
will be used by bgpdctl
Diffstat (limited to 'usr.sbin/bgpd/imsg.c')
-rw-r--r-- | usr.sbin/bgpd/imsg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/bgpd/imsg.c b/usr.sbin/bgpd/imsg.c index f59a35eeda7..1d2a8d4abab 100644 --- a/usr.sbin/bgpd/imsg.c +++ b/usr.sbin/bgpd/imsg.c @@ -1,4 +1,4 @@ -/* $OpenBSD: imsg.c,v 1.16 2004/01/01 23:40:25 henning Exp $ */ +/* $OpenBSD: imsg.c,v 1.17 2004/01/01 23:46:47 henning Exp $ */ /* * Copyright (c) 2003 Henning Brauer <henning@openbsd.org> @@ -63,7 +63,7 @@ imsg_get(struct imsgbuf *ibuf, struct imsg *imsg) ssize_t datalen = 0; size_t av, left; - av = ibuf->r.wpos; + av = ibuf->r.wpos; if (IMSG_HEADER_SIZE > av) return (0); |