#ifndef _LINUX_ATMBR2684_H1#define _LINUX_ATMBR2684_H23#include <linux/types.h>4#include <linux/atm.h>5#include <linux/if.h> /* For IFNAMSIZ */67/*8* Type of media we're bridging (ethernet, token ring, etc) Currently only9* ethernet is supported10*/11#define BR2684_MEDIA_ETHERNET (0) /* 802.3 */12#define BR2684_MEDIA_802_4 (1) /* 802.4 */13#define BR2684_MEDIA_TR (2) /* 802.5 - token ring */14#define BR2684_MEDIA_FDDI (3)15#define BR2684_MEDIA_802_6 (4) /* 802.6 */1617/* used only at device creation: */18#define BR2684_FLAG_ROUTED (1<<16) /* payload is routed, not bridged */1920/*21* Is there FCS inbound on this VC? This currently isn't supported.22*/23#define BR2684_FCSIN_NO (0)24#define BR2684_FCSIN_IGNORE (1)25#define BR2684_FCSIN_VERIFY (2)2627/*28* Is there FCS outbound on this VC? This currently isn't supported.29*/30#define BR2684_FCSOUT_NO (0)31#define BR2684_FCSOUT_SENDZERO (1)32#define BR2684_FCSOUT_GENERATE (2)3334/*35* Does this VC include LLC encapsulation?36*/37#define BR2684_ENCAPS_VC (0) /* VC-mux */38#define BR2684_ENCAPS_LLC (1)39#define BR2684_ENCAPS_AUTODETECT (2) /* Unsuported */4041/*42* Is this VC bridged or routed?43*/4445#define BR2684_PAYLOAD_ROUTED (0)46#define BR2684_PAYLOAD_BRIDGED (1)4748/*49* This is for the ATM_NEWBACKENDIF call - these are like socket families:50* the first element of the structure is the backend number and the rest51* is per-backend specific52*/53struct atm_newif_br2684 {54atm_backend_t backend_num; /* ATM_BACKEND_BR2684 */55int media; /* BR2684_MEDIA_*, flags in upper bits */56char ifname[IFNAMSIZ];57int mtu;58};5960/*61* This structure is used to specify a br2684 interface - either by a62* positive integer (returned by ATM_NEWBACKENDIF) or the interfaces name63*/64#define BR2684_FIND_BYNOTHING (0)65#define BR2684_FIND_BYNUM (1)66#define BR2684_FIND_BYIFNAME (2)67struct br2684_if_spec {68int method; /* BR2684_FIND_* */69union {70char ifname[IFNAMSIZ];71int devnum;72} spec;73};7475/*76* This is for the ATM_SETBACKEND call - these are like socket families:77* the first element of the structure is the backend number and the rest78* is per-backend specific79*/80struct atm_backend_br2684 {81atm_backend_t backend_num; /* ATM_BACKEND_BR2684 */82struct br2684_if_spec ifspec;83int fcs_in; /* BR2684_FCSIN_* */84int fcs_out; /* BR2684_FCSOUT_* */85int fcs_auto; /* 1: fcs_{in,out} disabled if no FCS rx'ed */86int encaps; /* BR2684_ENCAPS_* */87int has_vpiid; /* 1: use vpn_id - Unsupported */88__u8 vpn_id[7];89int send_padding; /* unsupported */90int min_size; /* we will pad smaller packets than this */91};9293/*94* The BR2684_SETFILT ioctl is an experimental mechanism for folks95* terminating a large number of IP-only vcc's. When netfilter allows96* efficient per-if in/out filters, this support will be removed97*/98struct br2684_filter {99__be32 prefix; /* network byte order */100__be32 netmask; /* 0 = disable filter */101};102103struct br2684_filter_set {104struct br2684_if_spec ifspec;105struct br2684_filter filter;106};107108enum br2684_payload {109p_routed = BR2684_PAYLOAD_ROUTED,110p_bridged = BR2684_PAYLOAD_BRIDGED,111};112113#define BR2684_SETFILT _IOW( 'a', ATMIOC_BACKEND + 0, \114struct br2684_filter_set)115116#endif /* _LINUX_ATMBR2684_H */117118119