diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2004-06-20 17:49:47 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2004-06-20 17:49:47 +0000 |
commit | 8fed60822a3bbddc0dbd13b43d561fbd47c7446c (patch) | |
tree | 2b51ffaf2c62c02419f8b2e136de51f23f383135 /usr.sbin/bgpd/session.h | |
parent | 73ccfbaa117160675169345630b3cbe6365ee6ba (diff) |
implement file descriptor passing in the imsg/msgbuf framework, and use
it to let the main process to prepare new listening sockets (socket() and
bind()) on behalf of the session engine, which of course cannot bind() to
ports < 1024 any more once it dropped privileges. with some help from theo,
claudio ok
Diffstat (limited to 'usr.sbin/bgpd/session.h')
-rw-r--r-- | usr.sbin/bgpd/session.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/bgpd/session.h b/usr.sbin/bgpd/session.h index d224198c37a..61a5a4d8951 100644 --- a/usr.sbin/bgpd/session.h +++ b/usr.sbin/bgpd/session.h @@ -1,4 +1,4 @@ -/* $OpenBSD: session.h,v 1.55 2004/06/09 13:01:44 henning Exp $ */ +/* $OpenBSD: session.h,v 1.56 2004/06/20 17:49:46 henning Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -210,6 +210,7 @@ int parse_config(char *, struct bgpd_config *, struct mrt_head *, /* config.c */ int merge_config(struct bgpd_config *, struct bgpd_config *, struct peer *, struct listen_addrs *); +void prepare_listeners(struct bgpd_config *); /* rde.c */ int rde_main(struct bgpd_config *, struct network_head *, |