diff options
| author | Arnaldo Carvalho de Melo <acme@conectiva.com.br> | 2003-09-16 08:32:26 -0300 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <acme@conectiva.com.br> | 2003-09-16 08:32:26 -0300 |
| commit | 03c87be72502e41621f91e0f367469217ff7755d (patch) | |
| tree | b2052b73e6b2c02745178c5993443673c647b728 /include | |
| parent | e1ceceb1ac8b68edb5ed3b6b072f0ae8df30febf (diff) | |
o LLC: move the sockets release function outside of llc_sap_close
Diffstat (limited to 'include')
| -rw-r--r-- | include/net/llc_conn.h | 1 | ||||
| -rw-r--r-- | include/net/llc_if.h | 14 | ||||
| -rw-r--r-- | include/net/llc_sap.h | 13 |
3 files changed, 14 insertions, 14 deletions
diff --git a/include/net/llc_conn.h b/include/net/llc_conn.h index 202ee73ad2be..b10900c62fa1 100644 --- a/include/net/llc_conn.h +++ b/include/net/llc_conn.h @@ -105,4 +105,5 @@ extern struct sock *llc_lookup_dgram(struct llc_sap *sap, extern void llc_save_primitive(struct sk_buff* skb, u8 prim); extern u8 llc_data_accept_state(u8 state); extern void llc_build_offset_table(void); +extern int llc_release_sockets(struct llc_sap *sap); #endif /* LLC_CONN_H */ diff --git a/include/net/llc_if.h b/include/net/llc_if.h index bebc983cae16..615fc3c671b0 100644 --- a/include/net/llc_if.h +++ b/include/net/llc_if.h @@ -100,22 +100,8 @@ static __inline__ int llc_mac_match(u8 *mac1, u8 *mac2) return !memcmp(mac1, mac2, IFHWADDRLEN); } -struct llc_sap; - -extern struct llc_sap *llc_sap_open(u8 lsap, - int (*func)(struct sk_buff *skb, - struct net_device *dev, - struct packet_type *pt)); -extern void llc_sap_close(struct llc_sap *sap); - extern int llc_establish_connection(struct sock *sk, u8 *lmac, u8 *dmac, u8 dsap); extern int llc_build_and_send_pkt(struct sock *sk, struct sk_buff *skb); -extern void llc_build_and_send_ui_pkt(struct llc_sap *sap, struct sk_buff *skb, - u8 *dmac, u8 dsap); -extern void llc_build_and_send_xid_pkt(struct llc_sap *sap, struct sk_buff *skb, - u8 *dmac, u8 dsap); -extern void llc_build_and_send_test_pkt(struct llc_sap *sap, struct sk_buff *skb, - u8 *dmac, u8 dsap); extern int llc_send_disc(struct sock *sk); #endif /* LLC_IF_H */ diff --git a/include/net/llc_sap.h b/include/net/llc_sap.h index b46c85389388..2fffd961897e 100644 --- a/include/net/llc_sap.h +++ b/include/net/llc_sap.h @@ -44,4 +44,17 @@ extern void llc_sap_assign_sock(struct llc_sap *sap, struct sock *sk); extern void llc_sap_unassign_sock(struct llc_sap *sap, struct sock *sk); extern void llc_sap_state_process(struct llc_sap *sap, struct sk_buff *skb); extern void llc_sap_rtn_pdu(struct llc_sap *sap, struct sk_buff *skb); +extern struct llc_sap *llc_sap_open(u8 lsap, + int (*rcv)(struct sk_buff *skb, + struct net_device *dev, + struct packet_type *pt)); +extern void llc_sap_close(struct llc_sap *sap); + +extern void llc_build_and_send_ui_pkt(struct llc_sap *sap, struct sk_buff *skb, + u8 *dmac, u8 dsap); +extern void llc_build_and_send_xid_pkt(struct llc_sap *sap, struct sk_buff *skb, + u8 *dmac, u8 dsap); +extern void llc_build_and_send_test_pkt(struct llc_sap *sap, + struct sk_buff *skb, u8 *dmac, u8 dsap); + #endif /* LLC_SAP_H */ |
