summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorclaudio <claudio@openbsd.org>2013-06-01 18:30:32 +0000
committerclaudio <claudio@openbsd.org>2013-06-01 18:30:32 +0000
commit857d7ef28a27ab8cb4165461a09ecf009624e0bf (patch)
treeef2d7cca849eaa39638da54d3c47b0f8d84125b1
parentDon't allow enabling LDP on loopback and carp interfaces. (diff)
downloadwireguard-openbsd-857d7ef28a27ab8cb4165461a09ecf009624e0bf.tar.xz
wireguard-openbsd-857d7ef28a27ab8cb4165461a09ecf009624e0bf.zip
A bit nicer error message.
-rw-r--r--usr.sbin/ldpd/parse.y6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/ldpd/parse.y b/usr.sbin/ldpd/parse.y
index b8dbe4faec9..deed3756bd6 100644
--- a/usr.sbin/ldpd/parse.y
+++ b/usr.sbin/ldpd/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.10 2013/06/01 18:26:40 claudio Exp $ */
+/* $OpenBSD: parse.y,v 1.11 2013/06/01 18:30:32 claudio Exp $ */
/*
* Copyright (c) 2004, 2005, 2008 Esben Norby <norby@openbsd.org>
@@ -290,8 +290,8 @@ interface : INTERFACE STRING {
YYERROR;
if (iface->media_type == IFT_LOOP ||
iface->media_type == IFT_CARP) {
- yyerror("unsupported interface type %s",
- iface->name);
+ yyerror("unsupported interface type on "
+ "interface %s", iface->name);
YYERROR;
}
LIST_INSERT_HEAD(&conf->iface_list, iface, entry);