artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ed7a9f2
)
initialise sc_df to 0 in clone create rather than setting sc_ttl badly
author
dlg
<dlg@openbsd.org>
Mon, 19 Feb 2018 00:29:29 +0000
(
00:29
+0000)
committer
dlg
<dlg@openbsd.org>
Mon, 19 Feb 2018 00:29:29 +0000
(
00:29
+0000)
sys/net/if_etherip.c
patch
|
blob
|
history
diff --git
a/sys/net/if_etherip.c
b/sys/net/if_etherip.c
index
3c09a67
..
762b54b
100644
(file)
--- a/
sys/net/if_etherip.c
+++ b/
sys/net/if_etherip.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: if_etherip.c,v 1.3
6 2018/02/19 00:26:26
dlg Exp $ */
+/* $OpenBSD: if_etherip.c,v 1.3
7 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;