1 /* atmsvc.h - ATM signaling kernel-demon interface definitions */
3 /* Written 1995-2000 by Werner Almesberger, EPFL LRC/ICA */
6 #ifndef _LINUX_ATMSVC_H
7 #define _LINUX_ATMSVC_H
9 #include <linux/atmapi.h>
10 #include <linux/atm.h>
11 #include <linux/atmioc.h>
14 #define ATMSIGD_CTRL _IO('a',ATMIOC_SPECIAL)
15 /* become ATM signaling demon control socket */
17 enum atmsvc_msg_type
{ as_catch_null
,as_bind
,as_connect
,as_accept
,as_reject
,
18 as_listen
,as_okay
,as_error
,as_indicate
,as_close
,as_itf_notify
,
19 as_modify
,as_identify
,as_terminate
};
22 enum atmsvc_msg_type type
;
24 atm_kptr_t listen_vcc
; /* indicate */
25 int reply
; /* for okay and close: */
26 /* < 0: error before active */
27 /* (sigd has discarded ctx) */
29 /* > 0: error when active (still */
31 struct sockaddr_atmpvc pvc
; /* indicate, okay (connect) */
32 struct sockaddr_atmsvc local
; /* local SVC address */
33 struct atm_qos qos
; /* QOS parameters */
34 struct atm_sap sap
; /* SAP */
35 unsigned int session
; /* for p2pm */
36 struct sockaddr_atmsvc svc
; /* SVC address */
40 * Message contents: see ftp://icaftp.epfl.ch/pub/linux/atm/docs/isp-*.tar.gz
44 * Some policy stuff for atmsigd and for net/atm/svc.c. Both have to agree on
45 * what PCR is used to request bandwidth from the device driver. net/atm/svc.c
46 * tries to do better than that, but only if there's no routing decision (i.e.
47 * if signaling only uses one ATM interface).
50 #define SELECT_TOP_PCR(tp) ((tp).pcr ? (tp).pcr : \
51 (tp).max_pcr && (tp).max_pcr != ATM_MAX_PCR ? (tp).max_pcr : \
52 (tp).min_pcr ? (tp).min_pcr : ATM_MAX_PCR)