rxrpc: Rewrite the data and ack handling code
[linux-2.6-microblaze.git] / net / rxrpc / insecure.c
index c21ad21..7d4375e 100644 (file)
@@ -23,31 +23,36 @@ static int none_prime_packet_security(struct rxrpc_connection *conn)
 }
 
 static int none_secure_packet(struct rxrpc_call *call,
-                              struct sk_buff *skb,
-                              size_t data_size,
-                              void *sechdr)
+                             struct sk_buff *skb,
+                             size_t data_size,
+                             void *sechdr)
 {
        return 0;
 }
 
-static int none_verify_packet(struct rxrpc_call *call,
-                              struct sk_buff *skb,
-                              u32 *_abort_code)
+static int none_verify_packet(struct rxrpc_call *call, struct sk_buff *skb,
+                             unsigned int offset, unsigned int len,
+                             rxrpc_seq_t seq, u16 expected_cksum)
 {
        return 0;
 }
 
+static void none_locate_data(struct rxrpc_call *call, struct sk_buff *skb,
+                            unsigned int *_offset, unsigned int *_len)
+{
+}
+
 static int none_respond_to_challenge(struct rxrpc_connection *conn,
-                                     struct sk_buff *skb,
-                                     u32 *_abort_code)
+                                    struct sk_buff *skb,
+                                    u32 *_abort_code)
 {
        *_abort_code = RX_PROTOCOL_ERROR;
        return -EPROTO;
 }
 
 static int none_verify_response(struct rxrpc_connection *conn,
-                                struct sk_buff *skb,
-                                u32 *_abort_code)
+                               struct sk_buff *skb,
+                               u32 *_abort_code)
 {
        *_abort_code = RX_PROTOCOL_ERROR;
        return -EPROTO;
@@ -78,6 +83,7 @@ const struct rxrpc_security rxrpc_no_security = {
        .prime_packet_security          = none_prime_packet_security,
        .secure_packet                  = none_secure_packet,
        .verify_packet                  = none_verify_packet,
+       .locate_data                    = none_locate_data,
        .respond_to_challenge           = none_respond_to_challenge,
        .verify_response                = none_verify_response,
        .clear                          = none_clear,