aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/rxrpc/input.c6
-rw-r--r--net/rxrpc/protocol.h6
2 files changed, 12 insertions, 0 deletions
diff --git a/net/rxrpc/input.c b/net/rxrpc/input.c
index 21800e6f5019..0410d2277ca2 100644
--- a/net/rxrpc/input.c
+++ b/net/rxrpc/input.c
@@ -1200,6 +1200,12 @@ void rxrpc_data_ready(struct sock *udp_sk)
1200 !rxrpc_validate_jumbo(skb)) 1200 !rxrpc_validate_jumbo(skb))
1201 goto bad_message; 1201 goto bad_message;
1202 break; 1202 break;
1203
1204 /* Packet types 9-11 should just be ignored. */
1205 case RXRPC_PACKET_TYPE_PARAMS:
1206 case RXRPC_PACKET_TYPE_10:
1207 case RXRPC_PACKET_TYPE_11:
1208 goto discard;
1203 } 1209 }
1204 1210
1205 rcu_read_lock(); 1211 rcu_read_lock();
diff --git a/net/rxrpc/protocol.h b/net/rxrpc/protocol.h
index 4bddcf3face3..93da73bf7098 100644
--- a/net/rxrpc/protocol.h
+++ b/net/rxrpc/protocol.h
@@ -46,6 +46,9 @@ struct rxrpc_wire_header {
46#define RXRPC_PACKET_TYPE_CHALLENGE 6 /* connection security challenge (SRVR->CLNT) */ 46#define RXRPC_PACKET_TYPE_CHALLENGE 6 /* connection security challenge (SRVR->CLNT) */
47#define RXRPC_PACKET_TYPE_RESPONSE 7 /* connection secutity response (CLNT->SRVR) */ 47#define RXRPC_PACKET_TYPE_RESPONSE 7 /* connection secutity response (CLNT->SRVR) */
48#define RXRPC_PACKET_TYPE_DEBUG 8 /* debug info request */ 48#define RXRPC_PACKET_TYPE_DEBUG 8 /* debug info request */
49#define RXRPC_PACKET_TYPE_PARAMS 9 /* Parameter negotiation (unspec'd, ignore) */
50#define RXRPC_PACKET_TYPE_10 10 /* Ignored */
51#define RXRPC_PACKET_TYPE_11 11 /* Ignored */
49#define RXRPC_PACKET_TYPE_VERSION 13 /* version string request */ 52#define RXRPC_PACKET_TYPE_VERSION 13 /* version string request */
50#define RXRPC_N_PACKET_TYPES 14 /* number of packet types (incl type 0) */ 53#define RXRPC_N_PACKET_TYPES 14 /* number of packet types (incl type 0) */
51 54
@@ -78,6 +81,9 @@ struct rxrpc_wire_header {
78 (1 << RXRPC_PACKET_TYPE_CHALLENGE) | \ 81 (1 << RXRPC_PACKET_TYPE_CHALLENGE) | \
79 (1 << RXRPC_PACKET_TYPE_RESPONSE) | \ 82 (1 << RXRPC_PACKET_TYPE_RESPONSE) | \
80 /*(1 << RXRPC_PACKET_TYPE_DEBUG) | */ \ 83 /*(1 << RXRPC_PACKET_TYPE_DEBUG) | */ \
84 (1 << RXRPC_PACKET_TYPE_PARAMS) | \
85 (1 << RXRPC_PACKET_TYPE_10) | \
86 (1 << RXRPC_PACKET_TYPE_11) | \
81 (1 << RXRPC_PACKET_TYPE_VERSION)) 87 (1 << RXRPC_PACKET_TYPE_VERSION))
82 88
83/*****************************************************************************/ 89/*****************************************************************************/