| Elliott Hughes | 180edef | 2023-11-02 00:08:05 +0000 | [diff] [blame] | 1 | /* | 
 | 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 Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 7 | #ifndef KCM_KERNEL_H | 
 | 8 | #define KCM_KERNEL_H | 
 | 9 | struct kcm_attach { | 
 | 10 |   int fd; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 11 |   int bpf_fd; | 
 | 12 | }; | 
 | 13 | struct kcm_unattach { | 
 | 14 |   int fd; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 15 | }; | 
 | 16 | struct kcm_clone { | 
 | 17 |   int fd; | 
 | 18 | }; | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 19 | #define SIOCKCMATTACH (SIOCPROTOPRIVATE + 0) | 
 | 20 | #define SIOCKCMUNATTACH (SIOCPROTOPRIVATE + 1) | 
 | 21 | #define SIOCKCMCLONE (SIOCPROTOPRIVATE + 2) | 
 | 22 | #define KCMPROTO_CONNECTED 0 | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 23 | #define KCM_RECV_DISABLE 1 | 
 | 24 | #endif |