llc_s_ac.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. #ifndef LLC_S_AC_H
  2. #define LLC_S_AC_H
  3. /*
  4. * Copyright (c) 1997 by Procom Technology,Inc.
  5. * 2001 by Arnaldo Carvalho de Melo <acme@conectiva.com.br>
  6. *
  7. * This program can be redistributed or modified under the terms of the
  8. * GNU General Public License as published by the Free Software Foundation.
  9. * This program is distributed without any warranty or implied warranty
  10. * of merchantability or fitness for a particular purpose.
  11. *
  12. * See the GNU General Public License for more details.
  13. */
  14. /* SAP component actions */
  15. #define SAP_ACT_UNITDATA_IND 1
  16. #define SAP_ACT_SEND_UI 2
  17. #define SAP_ACT_SEND_XID_C 3
  18. #define SAP_ACT_SEND_XID_R 4
  19. #define SAP_ACT_SEND_TEST_C 5
  20. #define SAP_ACT_SEND_TEST_R 6
  21. #define SAP_ACT_REPORT_STATUS 7
  22. #define SAP_ACT_XID_IND 8
  23. #define SAP_ACT_TEST_IND 9
  24. /* All action functions must look like this */
  25. typedef int (*llc_sap_action_t)(struct llc_sap *sap, struct sk_buff *skb);
  26. extern int llc_sap_action_unitdata_ind(struct llc_sap *sap,
  27. struct sk_buff *skb);
  28. extern int llc_sap_action_send_ui(struct llc_sap *sap, struct sk_buff *skb);
  29. extern int llc_sap_action_send_xid_c(struct llc_sap *sap, struct sk_buff *skb);
  30. extern int llc_sap_action_send_xid_r(struct llc_sap *sap, struct sk_buff *skb);
  31. extern int llc_sap_action_send_test_c(struct llc_sap *sap, struct sk_buff *skb);
  32. extern int llc_sap_action_send_test_r(struct llc_sap *sap, struct sk_buff *skb);
  33. extern int llc_sap_action_report_status(struct llc_sap *sap,
  34. struct sk_buff *skb);
  35. extern int llc_sap_action_xid_ind(struct llc_sap *sap, struct sk_buff *skb);
  36. extern int llc_sap_action_test_ind(struct llc_sap *sap, struct sk_buff *skb);
  37. #endif /* LLC_S_AC_H */