~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/uapi/linux/atmmpc.h

Version: ~ [ linux-6.11-rc3 ] ~ [ linux-6.10.4 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.45 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.104 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.164 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.223 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.281 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.319 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2 #ifndef _ATMMPC_H_
  3 #define _ATMMPC_H_
  4 
  5 #include <linux/atmapi.h>
  6 #include <linux/atmioc.h>
  7 #include <linux/atm.h>
  8 #include <linux/types.h>
  9 
 10 #define ATMMPC_CTRL _IO('a', ATMIOC_MPOA)
 11 #define ATMMPC_DATA _IO('a', ATMIOC_MPOA+1)
 12 
 13 #define MPC_SOCKET_INGRESS 1
 14 #define MPC_SOCKET_EGRESS  2
 15 
 16 struct atmmpc_ioc {
 17         int dev_num;
 18         __be32 ipaddr;              /* the IP address of the shortcut    */
 19         int type;                     /* ingress or egress                 */
 20 };
 21 
 22 typedef struct in_ctrl_info {
 23         __u8   Last_NHRP_CIE_code;
 24         __u8   Last_Q2931_cause_value;
 25         __u8   eg_MPC_ATM_addr[ATM_ESA_LEN];
 26         __be32  tag;
 27         __be32  in_dst_ip;      /* IP address this ingress MPC sends packets to */
 28         __u16  holding_time;
 29         __u32  request_id;
 30 } in_ctrl_info;
 31 
 32 typedef struct eg_ctrl_info {
 33         __u8   DLL_header[256];
 34         __u8   DH_length;
 35         __be32  cache_id;
 36         __be32  tag;
 37         __be32  mps_ip;
 38         __be32  eg_dst_ip;      /* IP address to which ingress MPC sends packets */
 39         __u8   in_MPC_data_ATM_addr[ATM_ESA_LEN];
 40         __u16  holding_time;
 41 } eg_ctrl_info;
 42 
 43 struct mpc_parameters {
 44         __u16 mpc_p1;   /* Shortcut-Setup Frame Count    */
 45         __u16 mpc_p2;   /* Shortcut-Setup Frame Time     */
 46         __u8 mpc_p3[8]; /* Flow-detection Protocols      */
 47         __u16 mpc_p4;   /* MPC Initial Retry Time        */
 48         __u16 mpc_p5;   /* MPC Retry Time Maximum        */
 49         __u16 mpc_p6;   /* Hold Down Time                */
 50 } ;
 51 
 52 struct k_message {
 53         __u16 type;
 54         __be32 ip_mask;
 55         __u8  MPS_ctrl[ATM_ESA_LEN];
 56         union {
 57                 in_ctrl_info in_info;
 58                 eg_ctrl_info eg_info;
 59                 struct mpc_parameters params;
 60         } content;
 61         struct atm_qos qos;       
 62 } __ATM_API_ALIGN;
 63 
 64 struct llc_snap_hdr {
 65         /* RFC 1483 LLC/SNAP encapsulation for routed IP PDUs */
 66         __u8  dsap;    /* Destination Service Access Point (0xAA)     */
 67         __u8  ssap;    /* Source Service Access Point      (0xAA)     */
 68         __u8  ui;      /* Unnumbered Information           (0x03)     */
 69         __u8  org[3];  /* Organizational identification    (0x000000) */
 70         __u8  type[2]; /* Ether type (for IP)              (0x0800)   */
 71 };
 72 
 73 /* TLVs this MPC recognizes */
 74 #define TLV_MPOA_DEVICE_TYPE         0x00a03e2a  
 75 
 76 /* MPOA device types in MPOA Device Type TLV */
 77 #define NON_MPOA    0
 78 #define MPS         1
 79 #define MPC         2
 80 #define MPS_AND_MPC 3
 81 
 82 
 83 /* MPC parameter defaults */
 84 
 85 #define MPC_P1 10  /* Shortcut-Setup Frame Count  */ 
 86 #define MPC_P2 1   /* Shortcut-Setup Frame Time   */
 87 #define MPC_P3 0   /* Flow-detection Protocols    */
 88 #define MPC_P4 5   /* MPC Initial Retry Time      */
 89 #define MPC_P5 40  /* MPC Retry Time Maximum      */
 90 #define MPC_P6 160 /* Hold Down Time              */
 91 #define HOLDING_TIME_DEFAULT 1200 /* same as MPS-p7 */
 92 
 93 /* MPC constants */
 94 
 95 #define MPC_C1 2   /* Retry Time Multiplier       */
 96 #define MPC_C2 60  /* Initial Keep-Alive Lifetime */
 97 
 98 /* Message types - to MPOA daemon */
 99 
100 #define SND_MPOA_RES_RQST    201
101 #define SET_MPS_CTRL_ADDR    202
102 #define SND_MPOA_RES_RTRY    203 /* Different type in a retry due to req id         */
103 #define STOP_KEEP_ALIVE_SM   204
104 #define EGRESS_ENTRY_REMOVED 205
105 #define SND_EGRESS_PURGE     206
106 #define DIE                  207 /* tell the daemon to exit()                       */
107 #define DATA_PLANE_PURGE     208 /* Data plane purge because of egress cache hit miss or dead MPS */
108 #define OPEN_INGRESS_SVC     209
109 
110 /* Message types - from MPOA daemon */
111 
112 #define MPOA_TRIGGER_RCVD     101
113 #define MPOA_RES_REPLY_RCVD   102
114 #define INGRESS_PURGE_RCVD    103
115 #define EGRESS_PURGE_RCVD     104
116 #define MPS_DEATH             105
117 #define CACHE_IMPOS_RCVD      106
118 #define SET_MPC_CTRL_ADDR     107 /* Our MPC's control ATM address   */
119 #define SET_MPS_MAC_ADDR      108
120 #define CLEAN_UP_AND_EXIT     109
121 #define SET_MPC_PARAMS        110 /* MPC configuration parameters    */
122 
123 /* Message types - bidirectional */       
124 
125 #define RELOAD                301 /* kill -HUP the daemon for reload */
126 
127 #endif /* _ATMMPC_H_ */
128 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php