From 3228febfa127dddae703d2f642df0d15565fdf18 Mon Sep 17 00:00:00 2001 From: dlg Date: Mon, 19 Feb 2018 00:29:29 +0000 Subject: [PATCH] initialise sc_df to 0 in clone create rather than setting sc_ttl badly --- sys/net/if_etherip.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/net/if_etherip.c b/sys/net/if_etherip.c index 3c09a675ac0..762b54b2a79 100644 --- a/sys/net/if_etherip.c +++ b/sys/net/if_etherip.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_etherip.c,v 1.36 2018/02/19 00:26:26 dlg Exp $ */ +/* $OpenBSD: if_etherip.c,v 1.37 2018/02/19 00:29:29 dlg Exp $ */ /* * Copyright (c) 2015 Kazuya GODA * @@ -137,7 +137,7 @@ etherip_clone_create(struct if_clone *ifc, int unit) ifc->ifc_name, unit); sc->sc_ttl = ip_defttl; - sc->sc_ttl = htons(0); + sc->sc_df = htons(0); ifp->if_softc = sc; ifp->if_ioctl = etherip_ioctl; -- 2.20.1