blob: 0e0e5af37fb1a30b78fffa1b9e2884724e5685c9 [file] [log] [blame]
Elliott Hughes180edef2023-11-02 00:08:05 +00001/*
2 * This file is auto-generated. Modifications will be lost.
3 *
4 * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/
5 * for more information.
6 */
Ben Cheng655a7c02013-10-16 16:09:24 -07007#ifndef _UAPILINUX_ATM_TCP_H
8#define _UAPILINUX_ATM_TCP_H
9#include <linux/atmapi.h>
10#include <linux/atm.h>
Ben Cheng655a7c02013-10-16 16:09:24 -070011#include <linux/atmioc.h>
12#include <linux/types.h>
13struct atmtcp_hdr {
Tao Baod7db5942015-01-28 10:07:51 -080014 __u16 vpi;
Tao Baod7db5942015-01-28 10:07:51 -080015 __u16 vci;
16 __u32 length;
Ben Cheng655a7c02013-10-16 16:09:24 -070017};
18#define ATMTCP_HDR_MAGIC (~0)
Ben Cheng655a7c02013-10-16 16:09:24 -070019#define ATMTCP_CTRL_OPEN 1
20#define ATMTCP_CTRL_CLOSE 2
21struct atmtcp_control {
Tao Baod7db5942015-01-28 10:07:51 -080022 struct atmtcp_hdr hdr;
Tao Baod7db5942015-01-28 10:07:51 -080023 int type;
24 atm_kptr_t vcc;
25 struct sockaddr_atmpvc addr;
26 struct atm_qos qos;
Tao Baod7db5942015-01-28 10:07:51 -080027 int result;
Ben Cheng655a7c02013-10-16 16:09:24 -070028} __ATM_API_ALIGN;
Tao Baod7db5942015-01-28 10:07:51 -080029#define SIOCSIFATMTCP _IO('a', ATMIOC_ITF)
30#define ATMTCP_CREATE _IO('a', ATMIOC_ITF + 14)
Tao Baod7db5942015-01-28 10:07:51 -080031#define ATMTCP_REMOVE _IO('a', ATMIOC_ITF + 15)
Nick Kralevicha67e4de2013-01-14 11:28:26 -080032#endif