diff options
author | remi <remi@cvs.openbsd.org> | 2019-11-19 09:55:56 +0000 |
---|---|---|
committer | remi <remi@cvs.openbsd.org> | 2019-11-19 09:55:56 +0000 |
commit | cea85d84ff22d7cf8a4adec920fd884f7fb9fa1e (patch) | |
tree | 809be98bf6167a38c8d084c84041a9864af9e4b1 /usr.sbin/ospfd/parse.y | |
parent | ae53f24837ad40760b9857c9b7d924e577dc69a9 (diff) |
Add point-to-point support for broadcast interfaces.
tested by Kapetanakis Giannis
ok claudio@
Diffstat (limited to 'usr.sbin/ospfd/parse.y')
-rw-r--r-- | usr.sbin/ospfd/parse.y | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/usr.sbin/ospfd/parse.y b/usr.sbin/ospfd/parse.y index 7d83c531017..6e4092d3f36 100644 --- a/usr.sbin/ospfd/parse.y +++ b/usr.sbin/ospfd/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.98 2019/06/07 04:57:45 dlg Exp $ */ +/* $OpenBSD: parse.y,v 1.99 2019/11/19 09:55:55 remi Exp $ */ /* * Copyright (c) 2004, 2005 Esben Norby <norby@openbsd.org> @@ -129,7 +129,7 @@ typedef struct { %token AREA INTERFACE ROUTERID FIBPRIORITY FIBUPDATE REDISTRIBUTE RTLABEL %token RDOMAIN RFC1583COMPAT STUB ROUTER SPFDELAY SPFHOLDTIME EXTTAG %token AUTHKEY AUTHTYPE AUTHMD AUTHMDKEYID -%token METRIC PASSIVE +%token METRIC P2P PASSIVE %token HELLOINTERVAL FASTHELLOINTERVAL TRANSMITDELAY %token RETRANSMITINTERVAL ROUTERDEADTIME ROUTERPRIORITY %token SET TYPE @@ -743,6 +743,10 @@ interfaceopts_l : interfaceopts_l interfaceoptsl nl ; interfaceoptsl : PASSIVE { iface->passive = 1; } + | TYPE P2P { + iface->p2p = 1; + iface->type = IF_TYPE_POINTOPOINT; + } | DEMOTE STRING { if (strlcpy(iface->demote_group, $2, sizeof(iface->demote_group)) >= @@ -833,6 +837,7 @@ lookup(char *s) {"msec", MSEC}, {"no", NO}, {"on", ON}, + {"p2p", P2P}, {"passive", PASSIVE}, {"rdomain", RDOMAIN}, {"redistribute", REDISTRIBUTE}, |