diff options
| -rw-r--r-- | net/llc/llc_c_ev.c | 25 |
1 files changed, 1 insertions, 24 deletions
diff --git a/net/llc/llc_c_ev.c b/net/llc/llc_c_ev.c index c53b82324268..c5deda246614 100644 --- a/net/llc/llc_c_ev.c +++ b/net/llc/llc_c_ev.c | |||
| @@ -37,6 +37,7 @@ | |||
| 37 | #include <net/llc_conn.h> | 37 | #include <net/llc_conn.h> |
| 38 | #include <net/llc_sap.h> | 38 | #include <net/llc_sap.h> |
| 39 | #include <net/sock.h> | 39 | #include <net/sock.h> |
| 40 | #include <net/llc_c_ac.h> | ||
| 40 | #include <net/llc_c_ev.h> | 41 | #include <net/llc_c_ev.h> |
| 41 | #include <net/llc_pdu.h> | 42 | #include <net/llc_pdu.h> |
| 42 | 43 | ||
| @@ -46,8 +47,6 @@ | |||
| 46 | #define dprintk(args...) | 47 | #define dprintk(args...) |
| 47 | #endif | 48 | #endif |
| 48 | 49 | ||
| 49 | extern u16 llc_circular_between(u8 a, u8 b, u8 c); | ||
| 50 | |||
| 51 | /** | 50 | /** |
| 52 | * llc_util_ns_inside_rx_window - check if sequence number is in rx window | 51 | * llc_util_ns_inside_rx_window - check if sequence number is in rx window |
| 53 | * @ns: sequence number of received pdu. | 52 | * @ns: sequence number of received pdu. |
| @@ -479,28 +478,6 @@ int llc_conn_ev_rx_xxx_cmd_pbit_set_x(struct sock *sk, struct sk_buff *skb) | |||
| 479 | return rc; | 478 | return rc; |
| 480 | } | 479 | } |
| 481 | 480 | ||
| 482 | int llc_conn_ev_rx_xxx_rsp_fbit_set_1(struct sock *sk, struct sk_buff *skb) | ||
| 483 | { | ||
| 484 | u16 rc = 1; | ||
| 485 | const struct llc_pdu_sn *pdu = llc_pdu_sn_hdr(skb); | ||
| 486 | |||
| 487 | if (LLC_PDU_IS_RSP(pdu)) { | ||
| 488 | if (LLC_PDU_TYPE_IS_I(pdu) || LLC_PDU_TYPE_IS_S(pdu)) { | ||
| 489 | if (LLC_I_PF_IS_1(pdu)) | ||
| 490 | rc = 0; | ||
| 491 | } else if (LLC_PDU_TYPE_IS_U(pdu)) | ||
| 492 | switch (LLC_U_PDU_RSP(pdu)) { | ||
| 493 | case LLC_2_PDU_RSP_UA: | ||
| 494 | case LLC_2_PDU_RSP_DM: | ||
| 495 | case LLC_2_PDU_RSP_FRMR: | ||
| 496 | if (LLC_U_PF_IS_1(pdu)) | ||
| 497 | rc = 0; | ||
| 498 | break; | ||
| 499 | } | ||
| 500 | } | ||
| 501 | return rc; | ||
| 502 | } | ||
| 503 | |||
| 504 | int llc_conn_ev_rx_xxx_rsp_fbit_set_x(struct sock *sk, struct sk_buff *skb) | 481 | int llc_conn_ev_rx_xxx_rsp_fbit_set_x(struct sock *sk, struct sk_buff *skb) |
| 505 | { | 482 | { |
| 506 | u16 rc = 1; | 483 | u16 rc = 1; |
