mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
rxrpc: Be more selective about the types of received packets we accept
Currently, received RxRPC packets outside the range 1-13 are rejected. There are, however, holes in the range that should also be rejected - plus at least one type we don't yet support - so reject these also. Signed-off-by: David Howells <[email protected]>
This commit is contained in:
parent
ee6fe085a9
commit
351c1e6486
2 changed files with 13 additions and 1 deletions
|
|
@ -70,6 +70,17 @@ struct rxrpc_wire_header {
|
|||
|
||||
extern const char *rxrpc_pkts[];
|
||||
|
||||
#define RXRPC_SUPPORTED_PACKET_TYPES ( \
|
||||
(1 << RXRPC_PACKET_TYPE_DATA) | \
|
||||
(1 << RXRPC_PACKET_TYPE_ACK) | \
|
||||
(1 << RXRPC_PACKET_TYPE_BUSY) | \
|
||||
(1 << RXRPC_PACKET_TYPE_ABORT) | \
|
||||
(1 << RXRPC_PACKET_TYPE_ACKALL) | \
|
||||
(1 << RXRPC_PACKET_TYPE_CHALLENGE) | \
|
||||
(1 << RXRPC_PACKET_TYPE_RESPONSE) | \
|
||||
/*(1 << RXRPC_PACKET_TYPE_DEBUG) | */ \
|
||||
(1 << RXRPC_PACKET_TYPE_VERSION))
|
||||
|
||||
/*****************************************************************************/
|
||||
/*
|
||||
* jumbo packet secondary header
|
||||
|
|
|
|||
Loading…
Reference in a new issue