1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux << 2 /* atmsvc.h - ATM signaling kernel-demon inter 1 /* atmsvc.h - ATM signaling kernel-demon interface definitions */ 3 2 4 /* Written 1995-2000 by Werner Almesberger, EP 3 /* Written 1995-2000 by Werner Almesberger, EPFL LRC/ICA */ 5 4 6 5 7 #ifndef _LINUX_ATMSVC_H 6 #ifndef _LINUX_ATMSVC_H 8 #define _LINUX_ATMSVC_H 7 #define _LINUX_ATMSVC_H 9 8 10 #include <linux/atmapi.h> 9 #include <linux/atmapi.h> 11 #include <linux/atm.h> 10 #include <linux/atm.h> 12 #include <linux/atmioc.h> 11 #include <linux/atmioc.h> 13 12 14 13 15 #define ATMSIGD_CTRL _IO('a',ATMIOC_SPECIAL) 14 #define ATMSIGD_CTRL _IO('a',ATMIOC_SPECIAL) 16 /* become ATM 15 /* become ATM signaling demon control socket */ 17 16 18 enum atmsvc_msg_type { as_catch_null, as_bind, 17 enum atmsvc_msg_type { as_catch_null, as_bind, as_connect, as_accept, as_reject, 19 as_listen, as_okay, as_ 18 as_listen, as_okay, as_error, as_indicate, as_close, 20 as_itf_notify, as_modif 19 as_itf_notify, as_modify, as_identify, as_terminate, 21 as_addparty, as_droppar 20 as_addparty, as_dropparty }; 22 21 23 struct atmsvc_msg { 22 struct atmsvc_msg { 24 enum atmsvc_msg_type type; 23 enum atmsvc_msg_type type; 25 atm_kptr_t vcc; 24 atm_kptr_t vcc; 26 atm_kptr_t listen_vcc; /* ind 25 atm_kptr_t listen_vcc; /* indicate */ 27 int reply; /* for 26 int reply; /* for okay and close: */ 28 /* < 27 /* < 0: error before active */ 29 /* 28 /* (sigd has discarded ctx) */ 30 /* = 29 /* ==0: success */ 31 /* > 30 /* > 0: error when active (still */ 32 /* 31 /* need to close) */ 33 struct sockaddr_atmpvc pvc; /* ind 32 struct sockaddr_atmpvc pvc; /* indicate, okay (connect) */ 34 struct sockaddr_atmsvc local; /* loc 33 struct sockaddr_atmsvc local; /* local SVC address */ 35 struct atm_qos qos; /* QOS 34 struct atm_qos qos; /* QOS parameters */ 36 struct atm_sap sap; /* SAP 35 struct atm_sap sap; /* SAP */ 37 unsigned int session; /* for 36 unsigned int session; /* for p2pm */ 38 struct sockaddr_atmsvc svc; /* SVC 37 struct sockaddr_atmsvc svc; /* SVC address */ 39 } __ATM_API_ALIGN; 38 } __ATM_API_ALIGN; 40 39 41 /* 40 /* 42 * Message contents: see ftp://icaftp.epfl.ch/ 41 * Message contents: see ftp://icaftp.epfl.ch/pub/linux/atm/docs/isp-*.tar.gz 43 */ 42 */ 44 43 45 /* 44 /* 46 * Some policy stuff for atmsigd and for net/a 45 * Some policy stuff for atmsigd and for net/atm/svc.c. Both have to agree on 47 * what PCR is used to request bandwidth from 46 * what PCR is used to request bandwidth from the device driver. net/atm/svc.c 48 * tries to do better than that, but only if t 47 * tries to do better than that, but only if there's no routing decision (i.e. 49 * if signaling only uses one ATM interface). 48 * if signaling only uses one ATM interface). 50 */ 49 */ 51 50 52 #define SELECT_TOP_PCR(tp) ((tp).pcr ? (tp).pc 51 #define SELECT_TOP_PCR(tp) ((tp).pcr ? (tp).pcr : \ 53 (tp).max_pcr && (tp).max_pcr != ATM_MAX_PCR 52 (tp).max_pcr && (tp).max_pcr != ATM_MAX_PCR ? (tp).max_pcr : \ 54 (tp).min_pcr ? (tp).min_pcr : ATM_MAX_PCR) 53 (tp).min_pcr ? (tp).min_pcr : ATM_MAX_PCR) 55 54 56 #endif 55 #endif 57 56
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.