diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2004-05-28 18:39:10 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2004-05-28 18:39:10 +0000 |
commit | 831d4b2edaf2875a6f07d2d8f046a52d9b6ce953 (patch) | |
tree | ba7afd0f8f3262765c0ab1cc4877949c658fa43e /usr.sbin/bgpd/session.h | |
parent | 83d23ae0746114f947c8dd433de3dc7935c7c2bb (diff) |
detect absence of PF_KEY interface and/or the TCP_MD5SIG setsockopts
at runtime and disable said subsystems if so. helps the guys porting bgpd
to $otherBSD, and is actually the right thing to do. claudio ok
Diffstat (limited to 'usr.sbin/bgpd/session.h')
-rw-r--r-- | usr.sbin/bgpd/session.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/usr.sbin/bgpd/session.h b/usr.sbin/bgpd/session.h index 7c92857285e..23232ab3731 100644 --- a/usr.sbin/bgpd/session.h +++ b/usr.sbin/bgpd/session.h @@ -1,4 +1,4 @@ -/* $OpenBSD: session.h,v 1.52 2004/05/08 18:21:55 henning Exp $ */ +/* $OpenBSD: session.h,v 1.53 2004/05/28 18:39:09 henning Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -123,6 +123,11 @@ struct capa_mp { u_int8_t safi; }; +struct bgpd_sysdep { + u_int8_t no_pfkey; + u_int8_t no_md5sig; +}; + struct ctl_conn { TAILQ_ENTRY(ctl_conn) entries; struct imsgbuf ibuf; @@ -216,9 +221,9 @@ void control_accept(int); void control_close(int); /* pfkey.c */ -int pfkey_establish(struct peer *p); -int pfkey_remove(struct peer *p); -int pfkey_init(void); +int pfkey_establish(struct peer *); +int pfkey_remove(struct peer *); +int pfkey_init(struct bgpd_sysdep *); /* printconf.c */ void print_config(struct bgpd_config *, struct network_head *, struct peer *, |