From 0591db5a284e642ef83c413ac836604457c04e7d Mon Sep 17 00:00:00 2001 From: David Gwynne Date: Sat, 2 Apr 2011 11:52:45 +0000 Subject: add a pipex ioctl that lets you specify a description on pppx interfaces by session id. ok claudio@ yasuoka@ as part of a larger diff code from jonathan matthew --- sys/net/pipex.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'sys/net/pipex.h') diff --git a/sys/net/pipex.h b/sys/net/pipex.h index dd16e476ec1..063ea59e596 100644 --- a/sys/net/pipex.h +++ b/sys/net/pipex.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pipex.h,v 1.7 2011/04/02 11:37:10 dlg Exp $ */ +/* $OpenBSD: pipex.h,v 1.8 2011/04/02 11:52:44 dlg Exp $ */ /* * Copyright (c) 2009 Internet Initiative Japan Inc. @@ -145,6 +145,12 @@ struct pppx_hdr { u_int32_t pppx_id; }; +struct pipex_session_descr_req { + int pdr_protocol; /* tunnel protocol */ + uint16_t pdr_session_id; /* session-id */ + char pdr_descr[IFDESCRSIZE]; /* description */ +}; + /* PIPEX ioctls */ #define PIPEXSMODE _IOW ('p', 1, int) @@ -154,6 +160,7 @@ struct pppx_hdr { #define PIPEXCSESSION _IOW ('p', 5, struct pipex_session_config_req) #define PIPEXGSTAT _IOWR('p', 6, struct pipex_session_stat_req) #define PIPEXGCLOSED _IOR ('p', 7, struct pipex_session_list_req) +#define PIPEXSIFDESCR _IOW ('p', 8, struct pipex_session_descr_req) #ifdef _KERNEL -- cgit v1.2.3