summaryrefslogtreecommitdiff
path: root/sys/net
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2018-02-08 21:55:35 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2018-02-08 21:55:35 +0000
commit8dba5e4ac5321365d7e9a8e3a219af6124eb19a2 (patch)
treeb6ab20047ebac35071b89e7807826789c5118014 /sys/net
parenta5ccb0348d81cce64b5d37508d5fc907690cba49 (diff)
handle SIOCGLIFPHYTTL and say that the ttl is always "copied"
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/if_mobileip.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/net/if_mobileip.c b/sys/net/if_mobileip.c
index 0eacbeb8420..38e740ab8b9 100644
--- a/sys/net/if_mobileip.c
+++ b/sys/net/if_mobileip.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_mobileip.c,v 1.3 2018/02/07 06:02:01 dlg Exp $ */
+/* $OpenBSD: if_mobileip.c,v 1.4 2018/02/08 21:55:34 dlg Exp $ */
/*
* Copyright (c) 2016 David Gwynne <dlg@openbsd.org>
@@ -389,6 +389,10 @@ mobileip_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
error = mobileip_del_tunnel(sc);
break;
+ case SIOCGLIFPHYTTL:
+ ifr->ifr_ttl = -1;
+ break;
+
case SIOCSLIFPHYRTABLE:
if (ISSET(ifp->if_flags, IFF_RUNNING)) {
error = EBUSY;