From e26228c6c455ecc3bf9669b34547682eb86fe4fc Mon Sep 17 00:00:00 2001 From: mvs Date: Sat, 2 Jan 2021 13:15:16 +0000 Subject: Remove PIPEX{S,G}MODE ioctl(2) commands. This time they are pretty dummy and were kept only for backward compatibility reasons. ok mpi@ yasuoka@ --- sys/net/pipex.c | 9 +-------- sys/net/pipex.h | 4 +--- 2 files changed, 2 insertions(+), 11 deletions(-) (limited to 'sys/net') diff --git a/sys/net/pipex.c b/sys/net/pipex.c index 797f2ee939d..7b1088fde74 100644 --- a/sys/net/pipex.c +++ b/sys/net/pipex.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pipex.c,v 1.127 2020/08/30 19:48:16 mvs Exp $ */ +/* $OpenBSD: pipex.c,v 1.128 2021/01/02 13:15:15 mvs Exp $ */ /*- * Copyright (c) 2009 Internet Initiative Japan Inc. @@ -163,13 +163,6 @@ pipex_ioctl(void *ownersc, u_long cmd, caddr_t data) NET_ASSERT_LOCKED(); switch (cmd) { - case PIPEXSMODE: - break; - - case PIPEXGMODE: - *(int *)data = 1; - break; - case PIPEXCSESSION: ret = pipex_config_session( (struct pipex_session_config_req *)data, ownersc); diff --git a/sys/net/pipex.h b/sys/net/pipex.h index 950407177b6..b2a42889280 100644 --- a/sys/net/pipex.h +++ b/sys/net/pipex.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pipex.h,v 1.28 2020/08/27 10:47:52 yasuoka Exp $ */ +/* $OpenBSD: pipex.h,v 1.29 2021/01/02 13:15:15 mvs Exp $ */ /* * Copyright (c) 2009 Internet Initiative Japan Inc. @@ -165,8 +165,6 @@ struct pipex_session_descr_req { /* PIPEX ioctls */ -#define PIPEXSMODE _IOW ('p', 1, int) -#define PIPEXGMODE _IOR ('p', 2, int) #define PIPEXASESSION _IOW ('p', 3, struct pipex_session_req) #define PIPEXDSESSION _IOWR('p', 4, struct pipex_session_close_req) #define PIPEXCSESSION _IOW ('p', 5, struct pipex_session_config_req) -- cgit v1.2.3