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 */ 7 #ifndef _LINUX_ATMBR2684_H 8 #define _LINUX_ATMBR2684_H 9 #include <linux/types.h> 10 #include <linux/atm.h> 11 #include <linux/if.h> 12 #define BR2684_MEDIA_ETHERNET (0) 13 #define BR2684_MEDIA_802_4 (1) 14 #define BR2684_MEDIA_TR (2) 15 #define BR2684_MEDIA_FDDI (3) 16 #define BR2684_MEDIA_802_6 (4) 17 #define BR2684_FLAG_ROUTED (1 << 16) 18 #define BR2684_FCSIN_NO (0) 19 #define BR2684_FCSIN_IGNORE (1) 20 #define BR2684_FCSIN_VERIFY (2) 21 #define BR2684_FCSOUT_NO (0) 22 #define BR2684_FCSOUT_SENDZERO (1) 23 #define BR2684_FCSOUT_GENERATE (2) 24 #define BR2684_ENCAPS_VC (0) 25 #define BR2684_ENCAPS_LLC (1) 26 #define BR2684_ENCAPS_AUTODETECT (2) 27 #define BR2684_PAYLOAD_ROUTED (0) 28 #define BR2684_PAYLOAD_BRIDGED (1) 29 struct atm_newif_br2684 { 30 atm_backend_t backend_num; 31 int media; 32 char ifname[IFNAMSIZ]; 33 int mtu; 34 }; 35 #define BR2684_FIND_BYNOTHING (0) 36 #define BR2684_FIND_BYNUM (1) 37 #define BR2684_FIND_BYIFNAME (2) 38 struct br2684_if_spec { 39 int method; 40 union { 41 char ifname[IFNAMSIZ]; 42 int devnum; 43 } spec; 44 }; 45 struct atm_backend_br2684 { 46 atm_backend_t backend_num; 47 struct br2684_if_spec ifspec; 48 int fcs_in; 49 int fcs_out; 50 int fcs_auto; 51 int encaps; 52 int has_vpiid; 53 __u8 vpn_id[7]; 54 int send_padding; 55 int min_size; 56 }; 57 struct br2684_filter { 58 __be32 prefix; 59 __be32 netmask; 60 }; 61 struct br2684_filter_set { 62 struct br2684_if_spec ifspec; 63 struct br2684_filter filter; 64 }; 65 enum br2684_payload { 66 p_routed = BR2684_PAYLOAD_ROUTED, 67 p_bridged = BR2684_PAYLOAD_BRIDGED, 68 }; 69 #define BR2684_SETFILT _IOW('a', ATMIOC_BACKEND + 0, struct br2684_filter_set) 70 #endif 71