blob: 23a95c2b8862b8c688985ee483c1aacdfb71f915 [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 */
Christopher Ferris106b3a82016-08-24 12:15:38 -07007#ifndef KCM_KERNEL_H
8#define KCM_KERNEL_H
9struct kcm_attach {
10 int fd;
Christopher Ferris106b3a82016-08-24 12:15:38 -070011 int bpf_fd;
12};
13struct kcm_unattach {
14 int fd;
Christopher Ferris106b3a82016-08-24 12:15:38 -070015};
16struct kcm_clone {
17 int fd;
18};
Christopher Ferris106b3a82016-08-24 12:15:38 -070019#define SIOCKCMATTACH (SIOCPROTOPRIVATE + 0)
20#define SIOCKCMUNATTACH (SIOCPROTOPRIVATE + 1)
21#define SIOCKCMCLONE (SIOCPROTOPRIVATE + 2)
22#define KCMPROTO_CONNECTED 0
Christopher Ferris106b3a82016-08-24 12:15:38 -070023#define KCM_RECV_DISABLE 1
24#endif