blob: 1e08b08def1830c5db848d80665df2ba8b0493a2 [file] [log] [blame]
Nick Kralevicha67e4de2013-01-14 11:28:26 -08001/****************************************************************************
2 ****************************************************************************
3 ***
4 *** This header was automatically generated from a Linux kernel header
5 *** of the same name, to make information necessary for userspace to
6 *** call into the kernel available to libc. It contains only constants,
7 *** structures, and macros generated from the original header, and thus,
8 *** contains no copyrightable information.
9 ***
10 *** To edit the content of this header, modify the corresponding
11 *** source file (e.g. under external/kernel-headers/original/) then
12 *** run bionic/libc/kernel/tools/update_all.py
13 ***
14 *** Any manual change here will be lost the next time this script will
15 *** be run. You've been warned!
16 ***
17 ****************************************************************************
18 ****************************************************************************/
Ben Cheng655a7c02013-10-16 16:09:24 -070019#ifndef _UAPILINUX_ATM_TCP_H
20#define _UAPILINUX_ATM_TCP_H
21#include <linux/atmapi.h>
22#include <linux/atm.h>
Ben Cheng655a7c02013-10-16 16:09:24 -070023#include <linux/atmioc.h>
24#include <linux/types.h>
25struct atmtcp_hdr {
Tao Baod7db5942015-01-28 10:07:51 -080026 __u16 vpi;
Tao Baod7db5942015-01-28 10:07:51 -080027 __u16 vci;
28 __u32 length;
Ben Cheng655a7c02013-10-16 16:09:24 -070029};
30#define ATMTCP_HDR_MAGIC (~0)
Ben Cheng655a7c02013-10-16 16:09:24 -070031#define ATMTCP_CTRL_OPEN 1
32#define ATMTCP_CTRL_CLOSE 2
33struct atmtcp_control {
Tao Baod7db5942015-01-28 10:07:51 -080034 struct atmtcp_hdr hdr;
Tao Baod7db5942015-01-28 10:07:51 -080035 int type;
36 atm_kptr_t vcc;
37 struct sockaddr_atmpvc addr;
38 struct atm_qos qos;
Tao Baod7db5942015-01-28 10:07:51 -080039 int result;
Ben Cheng655a7c02013-10-16 16:09:24 -070040} __ATM_API_ALIGN;
Tao Baod7db5942015-01-28 10:07:51 -080041#define SIOCSIFATMTCP _IO('a', ATMIOC_ITF)
42#define ATMTCP_CREATE _IO('a', ATMIOC_ITF + 14)
Tao Baod7db5942015-01-28 10:07:51 -080043#define ATMTCP_REMOVE _IO('a', ATMIOC_ITF + 15)
Nick Kralevicha67e4de2013-01-14 11:28:26 -080044#endif