diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2011-10-24 02:46:04 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-10-24 02:46:04 -0400 |
commit | 318cf7aaa0a6d20ecf6be33eb771291e5ff2e3b9 (patch) | |
tree | a2a42bbea9a1351d9986690f6df2a90cdbfd1d0c /include/net | |
parent | 8f9f4668b37bcc877156dd525a856055735c8d24 (diff) |
tcp: md5: add more const attributes
Now tcp_md5_hash_header() has a const tcphdr argument, we can add more
const attributes to callers.
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/tcp.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/include/net/tcp.h b/include/net/tcp.h index 910cc29f9e97..ed0e81452827 100644 --- a/include/net/tcp.h +++ b/include/net/tcp.h | |||
@@ -1185,8 +1185,9 @@ struct tcp_md5sig_pool { | |||
1185 | 1185 | ||
1186 | /* - functions */ | 1186 | /* - functions */ |
1187 | extern int tcp_v4_md5_hash_skb(char *md5_hash, struct tcp_md5sig_key *key, | 1187 | extern int tcp_v4_md5_hash_skb(char *md5_hash, struct tcp_md5sig_key *key, |
1188 | struct sock *sk, struct request_sock *req, | 1188 | const struct sock *sk, |
1189 | struct sk_buff *skb); | 1189 | const struct request_sock *req, |
1190 | const struct sk_buff *skb); | ||
1190 | extern struct tcp_md5sig_key * tcp_v4_md5_lookup(struct sock *sk, | 1191 | extern struct tcp_md5sig_key * tcp_v4_md5_lookup(struct sock *sk, |
1191 | struct sock *addr_sk); | 1192 | struct sock *addr_sk); |
1192 | extern int tcp_v4_md5_do_add(struct sock *sk, __be32 addr, u8 *newkey, | 1193 | extern int tcp_v4_md5_do_add(struct sock *sk, __be32 addr, u8 *newkey, |
@@ -1448,9 +1449,9 @@ struct tcp_sock_af_ops { | |||
1448 | struct sock *addr_sk); | 1449 | struct sock *addr_sk); |
1449 | int (*calc_md5_hash) (char *location, | 1450 | int (*calc_md5_hash) (char *location, |
1450 | struct tcp_md5sig_key *md5, | 1451 | struct tcp_md5sig_key *md5, |
1451 | struct sock *sk, | 1452 | const struct sock *sk, |
1452 | struct request_sock *req, | 1453 | const struct request_sock *req, |
1453 | struct sk_buff *skb); | 1454 | const struct sk_buff *skb); |
1454 | int (*md5_add) (struct sock *sk, | 1455 | int (*md5_add) (struct sock *sk, |
1455 | struct sock *addr_sk, | 1456 | struct sock *addr_sk, |
1456 | u8 *newkey, | 1457 | u8 *newkey, |
@@ -1467,9 +1468,9 @@ struct tcp_request_sock_ops { | |||
1467 | struct request_sock *req); | 1468 | struct request_sock *req); |
1468 | int (*calc_md5_hash) (char *location, | 1469 | int (*calc_md5_hash) (char *location, |
1469 | struct tcp_md5sig_key *md5, | 1470 | struct tcp_md5sig_key *md5, |
1470 | struct sock *sk, | 1471 | const struct sock *sk, |
1471 | struct request_sock *req, | 1472 | const struct request_sock *req, |
1472 | struct sk_buff *skb); | 1473 | const struct sk_buff *skb); |
1473 | #endif | 1474 | #endif |
1474 | }; | 1475 | }; |
1475 | 1476 | ||