projects/linux·blob master · refs

35 lines · 1.3 KiB

1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef LLC_S_AC_H
3#define LLC_S_AC_H
4/*
5 * Copyright (c) 1997 by Procom Technology,Inc.
6 * 2001 by Arnaldo Carvalho de Melo <[email protected]>
7 */
8
9struct llc_sap;
10struct sk_buff;
11
12/* SAP component actions */
13#define SAP_ACT_UNITDATA_IND 1
14#define SAP_ACT_SEND_UI 2
15#define SAP_ACT_SEND_XID_C 3
16#define SAP_ACT_SEND_XID_R 4
17#define SAP_ACT_SEND_TEST_C 5
18#define SAP_ACT_SEND_TEST_R 6
19#define SAP_ACT_REPORT_STATUS 7
20#define SAP_ACT_XID_IND 8
21#define SAP_ACT_TEST_IND 9
22
23/* All action functions must look like this */
24typedef int (*llc_sap_action_t)(struct llc_sap *sap, struct sk_buff *skb);
25
26int llc_sap_action_unitdata_ind(struct llc_sap *sap, struct sk_buff *skb);
27int llc_sap_action_send_ui(struct llc_sap *sap, struct sk_buff *skb);
28int llc_sap_action_send_xid_c(struct llc_sap *sap, struct sk_buff *skb);
29int llc_sap_action_send_xid_r(struct llc_sap *sap, struct sk_buff *skb);
30int llc_sap_action_send_test_c(struct llc_sap *sap, struct sk_buff *skb);
31int llc_sap_action_send_test_r(struct llc_sap *sap, struct sk_buff *skb);
32int llc_sap_action_report_status(struct llc_sap *sap, struct sk_buff *skb);
33int llc_sap_action_xid_ind(struct llc_sap *sap, struct sk_buff *skb);
34int llc_sap_action_test_ind(struct llc_sap *sap, struct sk_buff *skb);
35#endif /* LLC_S_AC_H */