diff options
author | 2018-02-19 00:29:29 +0000 | |
---|---|---|
committer | 2018-02-19 00:29:29 +0000 | |
commit | 3228febfa127dddae703d2f642df0d15565fdf18 (patch) | |
tree | af4b67748e1af86ffd81d293483f9da7341dc5ed | |
parent | add code to support configuration of tunnel traffic fragmentation (diff) | |
download | wireguard-openbsd-3228febfa127dddae703d2f642df0d15565fdf18.tar.xz wireguard-openbsd-3228febfa127dddae703d2f642df0d15565fdf18.zip |
initialise sc_df to 0 in clone create rather than setting sc_ttl badly
-rw-r--r-- | sys/net/if_etherip.c | 4 |
1 files 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 <goda@openbsd.org> * @@ -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; |