Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/smexe_ro.../usr/include/linux
File: atmbr2684.h
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
[0] Fix | Delete
#ifndef _LINUX_ATMBR2684_H
[1] Fix | Delete
#define _LINUX_ATMBR2684_H
[2] Fix | Delete
[3] Fix | Delete
#include <linux/types.h>
[4] Fix | Delete
#include <linux/atm.h>
[5] Fix | Delete
#include <linux/if.h> /* For IFNAMSIZ */
[6] Fix | Delete
[7] Fix | Delete
/*
[8] Fix | Delete
* Type of media we're bridging (ethernet, token ring, etc) Currently only
[9] Fix | Delete
* ethernet is supported
[10] Fix | Delete
*/
[11] Fix | Delete
#define BR2684_MEDIA_ETHERNET (0) /* 802.3 */
[12] Fix | Delete
#define BR2684_MEDIA_802_4 (1) /* 802.4 */
[13] Fix | Delete
#define BR2684_MEDIA_TR (2) /* 802.5 - token ring */
[14] Fix | Delete
#define BR2684_MEDIA_FDDI (3)
[15] Fix | Delete
#define BR2684_MEDIA_802_6 (4) /* 802.6 */
[16] Fix | Delete
[17] Fix | Delete
/* used only at device creation: */
[18] Fix | Delete
#define BR2684_FLAG_ROUTED (1<<16) /* payload is routed, not bridged */
[19] Fix | Delete
[20] Fix | Delete
/*
[21] Fix | Delete
* Is there FCS inbound on this VC? This currently isn't supported.
[22] Fix | Delete
*/
[23] Fix | Delete
#define BR2684_FCSIN_NO (0)
[24] Fix | Delete
#define BR2684_FCSIN_IGNORE (1)
[25] Fix | Delete
#define BR2684_FCSIN_VERIFY (2)
[26] Fix | Delete
[27] Fix | Delete
/*
[28] Fix | Delete
* Is there FCS outbound on this VC? This currently isn't supported.
[29] Fix | Delete
*/
[30] Fix | Delete
#define BR2684_FCSOUT_NO (0)
[31] Fix | Delete
#define BR2684_FCSOUT_SENDZERO (1)
[32] Fix | Delete
#define BR2684_FCSOUT_GENERATE (2)
[33] Fix | Delete
[34] Fix | Delete
/*
[35] Fix | Delete
* Does this VC include LLC encapsulation?
[36] Fix | Delete
*/
[37] Fix | Delete
#define BR2684_ENCAPS_VC (0) /* VC-mux */
[38] Fix | Delete
#define BR2684_ENCAPS_LLC (1)
[39] Fix | Delete
#define BR2684_ENCAPS_AUTODETECT (2) /* Unsuported */
[40] Fix | Delete
[41] Fix | Delete
/*
[42] Fix | Delete
* Is this VC bridged or routed?
[43] Fix | Delete
*/
[44] Fix | Delete
[45] Fix | Delete
#define BR2684_PAYLOAD_ROUTED (0)
[46] Fix | Delete
#define BR2684_PAYLOAD_BRIDGED (1)
[47] Fix | Delete
[48] Fix | Delete
/*
[49] Fix | Delete
* This is for the ATM_NEWBACKENDIF call - these are like socket families:
[50] Fix | Delete
* the first element of the structure is the backend number and the rest
[51] Fix | Delete
* is per-backend specific
[52] Fix | Delete
*/
[53] Fix | Delete
struct atm_newif_br2684 {
[54] Fix | Delete
atm_backend_t backend_num; /* ATM_BACKEND_BR2684 */
[55] Fix | Delete
int media; /* BR2684_MEDIA_*, flags in upper bits */
[56] Fix | Delete
char ifname[IFNAMSIZ];
[57] Fix | Delete
int mtu;
[58] Fix | Delete
};
[59] Fix | Delete
[60] Fix | Delete
/*
[61] Fix | Delete
* This structure is used to specify a br2684 interface - either by a
[62] Fix | Delete
* positive integer (returned by ATM_NEWBACKENDIF) or the interfaces name
[63] Fix | Delete
*/
[64] Fix | Delete
#define BR2684_FIND_BYNOTHING (0)
[65] Fix | Delete
#define BR2684_FIND_BYNUM (1)
[66] Fix | Delete
#define BR2684_FIND_BYIFNAME (2)
[67] Fix | Delete
struct br2684_if_spec {
[68] Fix | Delete
int method; /* BR2684_FIND_* */
[69] Fix | Delete
union {
[70] Fix | Delete
char ifname[IFNAMSIZ];
[71] Fix | Delete
int devnum;
[72] Fix | Delete
} spec;
[73] Fix | Delete
};
[74] Fix | Delete
[75] Fix | Delete
/*
[76] Fix | Delete
* This is for the ATM_SETBACKEND call - these are like socket families:
[77] Fix | Delete
* the first element of the structure is the backend number and the rest
[78] Fix | Delete
* is per-backend specific
[79] Fix | Delete
*/
[80] Fix | Delete
struct atm_backend_br2684 {
[81] Fix | Delete
atm_backend_t backend_num; /* ATM_BACKEND_BR2684 */
[82] Fix | Delete
struct br2684_if_spec ifspec;
[83] Fix | Delete
int fcs_in; /* BR2684_FCSIN_* */
[84] Fix | Delete
int fcs_out; /* BR2684_FCSOUT_* */
[85] Fix | Delete
int fcs_auto; /* 1: fcs_{in,out} disabled if no FCS rx'ed */
[86] Fix | Delete
int encaps; /* BR2684_ENCAPS_* */
[87] Fix | Delete
int has_vpiid; /* 1: use vpn_id - Unsupported */
[88] Fix | Delete
__u8 vpn_id[7];
[89] Fix | Delete
int send_padding; /* unsupported */
[90] Fix | Delete
int min_size; /* we will pad smaller packets than this */
[91] Fix | Delete
};
[92] Fix | Delete
[93] Fix | Delete
/*
[94] Fix | Delete
* The BR2684_SETFILT ioctl is an experimental mechanism for folks
[95] Fix | Delete
* terminating a large number of IP-only vcc's. When netfilter allows
[96] Fix | Delete
* efficient per-if in/out filters, this support will be removed
[97] Fix | Delete
*/
[98] Fix | Delete
struct br2684_filter {
[99] Fix | Delete
__be32 prefix; /* network byte order */
[100] Fix | Delete
__be32 netmask; /* 0 = disable filter */
[101] Fix | Delete
};
[102] Fix | Delete
[103] Fix | Delete
struct br2684_filter_set {
[104] Fix | Delete
struct br2684_if_spec ifspec;
[105] Fix | Delete
struct br2684_filter filter;
[106] Fix | Delete
};
[107] Fix | Delete
[108] Fix | Delete
enum br2684_payload {
[109] Fix | Delete
p_routed = BR2684_PAYLOAD_ROUTED,
[110] Fix | Delete
p_bridged = BR2684_PAYLOAD_BRIDGED,
[111] Fix | Delete
};
[112] Fix | Delete
[113] Fix | Delete
#define BR2684_SETFILT _IOW( 'a', ATMIOC_BACKEND + 0, \
[114] Fix | Delete
struct br2684_filter_set)
[115] Fix | Delete
[116] Fix | Delete
#endif /* _LINUX_ATMBR2684_H */
[117] Fix | Delete
[118] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function