$OpenBSD: patch-conf_c,v 1.3 2013/11/27 14:14:22 jca Exp $
--- conf.c.orig	Tue Nov 26 16:32:01 2013
+++ conf.c	Tue Nov 26 16:32:10 2013
@@ -746,11 +746,12 @@ void conf_ifmetrics(FILE *output, int ifs, struct if_d
 	 * ignore interfaces named "pfsync" since their mtu
 	 * is dynamic and controlled by the kernel
 	 */
-	if (!MIN_ARG(ifname, "pfsync") && (if_mtu != default_mtu(ifname) &&
-	    default_mtu(ifname) != MTU_IGNORE) && if_mtu != 0)
-		fprintf(output, " mtu %u\n", if_mtu);
-	if (if_metric)
-		fprintf(output, " metric %u\n", if_metric);
+	if (!MIN_ARG(ifname, "pfsync") &&
+	    (if_data.ifi_mtu != default_mtu(ifname) &&
+	    default_mtu(ifname) != MTU_IGNORE) && if_data.ifi_mtu != 0)
+		fprintf(output, " mtu %u\n", if_data.ifi_mtu);
+	if (if_data.ifi_metric)
+		fprintf(output, " metric %u\n", if_data.ifi_metric);
 
 	if (get_nwinfo(ifname, tmpc, TMPSIZ, NWID) != 0) {
 		fprintf(output, " nwid %s\n", tmpc);
