diff options
| author | Sebastien Roy <Sebastien.Roy@Sun.COM> | 2009-09-22 22:04:45 -0400 |
|---|---|---|
| committer | Sebastien Roy <Sebastien.Roy@Sun.COM> | 2009-09-22 22:04:45 -0400 |
| commit | 2b24ab6b3865caeede9eeb9db6b83e1d89dcd1ea (patch) | |
| tree | 72c0d7d4e1c44843a86bab6e3ed6f82cfa7356af /usr/src/lib/libdladm/common/libdliptun.h | |
| parent | 51fc88a818087605a0e5f11eddb8b66576f72c23 (diff) | |
| download | illumos-joyent-2b24ab6b3865caeede9eeb9db6b83e1d89dcd1ea.tar.gz | |
PSARC 2009/373 Clearview IP Tunneling
PSARC 2009/410 Datalink Administration from Non-Global Zones
6858533 Clearview IP Tunneling
4861777 *snoop* cannot snoop on tunnel interfaces
5010680 M_IOCTL interface between ip and tun is horribly wrong
5029727 tun prints bogus debug messages when receiving multicast packets on 6to4 tunnels
6835873 dlpi_walk() silently fails in an exclusive zone
4152864 must not allow two tunnels to have the same tsrc/tdst pair
6855902 link and flow kstats are too promiscuous
6218826 need to be able to tunnel into a zone
4505468 network interface names can confuse, lie, and deceive
4524756 tun_wproc() takes up too much stack
6417373 tun_wproc_mdata assertion failures
4627970 scalability problems with IP in IP tunnels
4674797 ifparse_ifspec() will not correctly parse ipv6 tunnels
6509231 dladm should show links in exclusive stack zone
4793233 tun driver should include addr in DL_PHYS_ADDR_ACK for non-zero lengths
6795831 ZONE_*_DATALINK syscalls should take datalink_id_t as argument
6791472 mac module doesn't allow MAC addresses < 6 bytes
6618091 Race condition trips ASSERT() in tun.c's SIOCSLIFNAME path
6837580 bogus mi_active check in mac_set_mtu()
6868083 libinetutil: ofmt_open()'s template argument should be const
6870313 libdladm: needless dladm_init_linkprop() in i_dladm_aggr_up()
6872221 panic in dls_devnet_close() if "mtu" property is being set
4289774 Change to the interface-id does not change IPv6 link-local address
6873561 unable to create links with 31 character link names
6874666 changing a link property can accidentally destroy it
6874682 removing a link attribute corrupts the attribute list
6875167 IPCL_ISV6 conn flag is set but never used
6881764 itp reference leak in ipsec_construct_inverse_acquire()
6881951 dladm delete-vlan can no longer delete persistent-only VLANs
--HG--
rename : usr/src/uts/common/inet/tun.h => usr/src/uts/common/inet/iptun.h
rename : usr/src/uts/common/inet/ip/tun.c => usr/src/uts/common/inet/iptun/iptun.c
rename : usr/src/uts/intel/tun/Makefile => usr/src/uts/intel/iptun/Makefile
rename : usr/src/uts/sparc/tun/Makefile => usr/src/uts/sparc/iptun/Makefile
Diffstat (limited to 'usr/src/lib/libdladm/common/libdliptun.h')
| -rw-r--r-- | usr/src/lib/libdladm/common/libdliptun.h | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/usr/src/lib/libdladm/common/libdliptun.h b/usr/src/lib/libdladm/common/libdliptun.h new file mode 100644 index 0000000000..287682f5a3 --- /dev/null +++ b/usr/src/lib/libdladm/common/libdliptun.h @@ -0,0 +1,75 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License (the "License"). + * You may not use this file except in compliance with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* + * Copyright 2009 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#ifndef _LIBDLIPTUN_H +#define _LIBDLIPTUN_H + +#include <netdb.h> +#include <sys/types.h> +#include <netinet/in.h> +#include <inet/iptun.h> +#include <libdladm.h> + +#ifdef __cplusplus +extern "C" { +#endif + +typedef struct iptun_params { + datalink_id_t iptun_param_linkid; + uint_t iptun_param_flags; + iptun_type_t iptun_param_type; + char iptun_param_laddr[NI_MAXHOST]; /* local address */ + char iptun_param_raddr[NI_MAXHOST]; /* remote address */ + ipsec_req_t iptun_param_secinfo; +} iptun_params_t; + +/* iptun_param_flags */ +#define IPTUN_PARAM_TYPE 0x00000001 /* itp_type is set */ +#define IPTUN_PARAM_LADDR 0x00000002 /* itp_laddr is set */ +#define IPTUN_PARAM_RADDR 0x00000004 /* itp_raddr is set */ +#define IPTUN_PARAM_SECINFO 0x00000008 /* itp_secinfo is set */ +#define IPTUN_PARAM_IMPLICIT 0x00000010 /* implicitly created IP tunnel */ +#define IPTUN_PARAM_IPSECPOL 0x00000020 /* IPsec policy exists */ + +extern dladm_status_t dladm_iptun_create(dladm_handle_t, const char *, + iptun_params_t *, uint_t); +extern dladm_status_t dladm_iptun_delete(dladm_handle_t, datalink_id_t, + uint_t); +extern dladm_status_t dladm_iptun_modify(dladm_handle_t, + const iptun_params_t *, uint_t); +extern dladm_status_t dladm_iptun_getparams(dladm_handle_t, iptun_params_t *, + uint_t); +extern dladm_status_t dladm_iptun_up(dladm_handle_t, datalink_id_t); +extern dladm_status_t dladm_iptun_down(dladm_handle_t, datalink_id_t); +extern dladm_status_t dladm_iptun_set6to4relay(dladm_handle_t, + struct in_addr *); +extern dladm_status_t dladm_iptun_get6to4relay(dladm_handle_t, + struct in_addr *); + +#ifdef __cplusplus +} +#endif + +#endif /* _LIBDLIPTUN_H */ |
