Back to home page

OSCL-LXR

 
 

    


0001 #ifndef LLC_S_AC_H
0002 #define LLC_S_AC_H
0003 /*
0004  * Copyright (c) 1997 by Procom Technology,Inc.
0005  *       2001 by Arnaldo Carvalho de Melo <acme@conectiva.com.br>
0006  *
0007  * This program can be redistributed or modified under the terms of the
0008  * GNU General Public License as published by the Free Software Foundation.
0009  * This program is distributed without any warranty or implied warranty
0010  * of merchantability or fitness for a particular purpose.
0011  *
0012  * See the GNU General Public License for more details.
0013  */
0014 
0015 struct llc_sap;
0016 struct sk_buff;
0017 
0018 /* SAP component actions */
0019 #define SAP_ACT_UNITDATA_IND    1
0020 #define SAP_ACT_SEND_UI     2
0021 #define SAP_ACT_SEND_XID_C  3
0022 #define SAP_ACT_SEND_XID_R  4
0023 #define SAP_ACT_SEND_TEST_C 5
0024 #define SAP_ACT_SEND_TEST_R 6
0025 #define SAP_ACT_REPORT_STATUS   7
0026 #define SAP_ACT_XID_IND     8
0027 #define SAP_ACT_TEST_IND    9
0028 
0029 /* All action functions must look like this */
0030 typedef int (*llc_sap_action_t)(struct llc_sap *sap, struct sk_buff *skb);
0031 
0032 int llc_sap_action_unitdata_ind(struct llc_sap *sap, struct sk_buff *skb);
0033 int llc_sap_action_send_ui(struct llc_sap *sap, struct sk_buff *skb);
0034 int llc_sap_action_send_xid_c(struct llc_sap *sap, struct sk_buff *skb);
0035 int llc_sap_action_send_xid_r(struct llc_sap *sap, struct sk_buff *skb);
0036 int llc_sap_action_send_test_c(struct llc_sap *sap, struct sk_buff *skb);
0037 int llc_sap_action_send_test_r(struct llc_sap *sap, struct sk_buff *skb);
0038 int llc_sap_action_report_status(struct llc_sap *sap, struct sk_buff *skb);
0039 int llc_sap_action_xid_ind(struct llc_sap *sap, struct sk_buff *skb);
0040 int llc_sap_action_test_ind(struct llc_sap *sap, struct sk_buff *skb);
0041 #endif /* LLC_S_AC_H */