diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2011-04-02 11:52:45 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2011-04-02 11:52:45 +0000 |
commit | 0591db5a284e642ef83c413ac836604457c04e7d (patch) | |
tree | 7fd6086bb33362343d070c2a9177b899800b8771 /sys/net/pipex.h | |
parent | 65e0c33b1d21b4e1f2ac312e68ee8dfe74b3ca10 (diff) |
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
Diffstat (limited to 'sys/net/pipex.h')
-rw-r--r-- | sys/net/pipex.h | 9 |
1 files changed, 8 insertions, 1 deletions
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 |