summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorPeter Hessler <phessler@cvs.openbsd.org>2015-04-25 21:44:27 +0000
committerPeter Hessler <phessler@cvs.openbsd.org>2015-04-25 21:44:27 +0000
commit40beb2b14a6c0623dcf0bf6613dc8a20e2a8f5ab (patch)
tree101b3b79b6d8b89a507571110111911ddbed9de1 /usr.sbin
parent014bf114c9394ae93fecb41a06c8304fd367356d (diff)
some people are capitalizing keywords, so ignore case when we test the tokens
OK henning@ benno@
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/bgpctl/irr_parser.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/usr.sbin/bgpctl/irr_parser.c b/usr.sbin/bgpctl/irr_parser.c
index 0c21209d518..e5598c35643 100644
--- a/usr.sbin/bgpctl/irr_parser.c
+++ b/usr.sbin/bgpctl/irr_parser.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: irr_parser.c,v 1.13 2015/04/25 13:23:01 phessler Exp $ */
+/* $OpenBSD: irr_parser.c,v 1.14 2015/04/25 21:44:26 phessler Exp $ */
/*
* Copyright (c) 2007 Henning Brauer <henning@openbsd.org>
@@ -231,22 +231,22 @@ parse_policy(char *key, char *val)
while ((tok = strsep(&val, " ")) != NULL) {
nextst = PO_NONE;
if (dir == IMPORT) {
- if (!strcmp(tok, "from"))
+ if (!strcasecmp(tok, "from"))
nextst = PO_PEER_KEY;
- else if (!strcmp(tok, "at"))
+ else if (!strcasecmp(tok, "at"))
nextst = PO_RTR_KEY;
- else if (!strcmp(tok, "action"))
+ else if (!strcasecmp(tok, "action"))
nextst = PO_ACTION_KEY;
- else if (!strcmp(tok, "accept"))
+ else if (!strcasecmp(tok, "accept"))
nextst = PO_FILTER_KEY;
} else if (dir == EXPORT) {
- if (!strcmp(tok, "to"))
+ if (!strcasecmp(tok, "to"))
nextst = PO_PEER_KEY;
- else if (!strcmp(tok, "at"))
+ else if (!strcasecmp(tok, "at"))
nextst = PO_RTR_KEY;
- else if (!strcmp(tok, "action"))
+ else if (!strcasecmp(tok, "action"))
nextst = PO_ACTION_KEY;
- else if (!strcmp(tok, "announce"))
+ else if (!strcasecmp(tok, "announce"))
nextst = PO_FILTER_KEY;
}