The tag comes after iface in iked.conf(5).
authortobhe <tobhe@openbsd.org>
Sun, 21 Mar 2021 22:18:00 +0000 (22:18 +0000)
committertobhe <tobhe@openbsd.org>
Sun, 21 Mar 2021 22:18:00 +0000 (22:18 +0000)
sbin/iked/print.c

index c971811..0ad4930 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: print.c,v 1.1 2021/03/05 22:03:51 tobhe Exp $ */
+/*     $OpenBSD: print.c,v 1.2 2021/03/21 22:18:00 tobhe Exp $ */
 
 /*
  * Copyright (c) 2019-2021 Tobias Heider <tobias.heider@stusta.de>
@@ -231,12 +231,12 @@ print_policy(struct iked_policy *pol)
                    0));
        }
 
-       if (pol->pol_tag[0] != '\0')
-               print_verbose(" tag \"%s\"", pol->pol_tag);
-
        if (pol->pol_iface != 0 && if_indextoname(pol->pol_iface, iface) != NULL)
                print_verbose(" iface %s", iface);
 
+       if (pol->pol_tag[0] != '\0')
+               print_verbose(" tag \"%s\"", pol->pol_tag);
+
        if (pol->pol_tap != 0)
                print_verbose(" tap \"enc%u\"", pol->pol_tap);