summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ospf6ctl/parser.h
diff options
context:
space:
mode:
authorremi <remi@openbsd.org>2019-05-26 09:27:09 +0000
committerremi <remi@openbsd.org>2019-05-26 09:27:09 +0000
commit96950f83f814eb557c8e93f5cbe9e772782a20e0 (patch)
treee00bc4475940d869973832c5057e52cdfd5a47b9 /usr.sbin/ospf6ctl/parser.h
parentSync with the latest net/pfvar.h (diff)
downloadwireguard-openbsd-96950f83f814eb557c8e93f5cbe9e772782a20e0.tar.xz
wireguard-openbsd-96950f83f814eb557c8e93f5cbe9e772782a20e0.zip
Allow specifying area by number as well as id. No changes to outputs.
reads OK to kn@ OK denis@
Diffstat (limited to 'usr.sbin/ospf6ctl/parser.h')
-rw-r--r--usr.sbin/ospf6ctl/parser.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/ospf6ctl/parser.h b/usr.sbin/ospf6ctl/parser.h
index ae7ed925bed..b5bf971419b 100644
--- a/usr.sbin/ospf6ctl/parser.h
+++ b/usr.sbin/ospf6ctl/parser.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: parser.h,v 1.8 2010/09/04 21:31:04 tedu Exp $ */
+/* $OpenBSD: parser.h,v 1.9 2019/05/26 09:27:09 remi Exp $ */
/*
* Copyright (c) 2004 Esben Norby <norby@openbsd.org>
@@ -55,6 +55,7 @@ enum actions {
struct parse_result {
struct in6_addr addr;
+ struct in_addr area;
char ifname[IF_NAMESIZE];
int flags;
enum actions action;
@@ -63,6 +64,7 @@ struct parse_result {
struct parse_result *parse(int, char *[]);
int parse_addr(const char *, struct in6_addr *);
+int parse_area(const char *, struct in_addr *);
int parse_prefix(const char *, struct in6_addr *,
u_int8_t *);