]> Git Repo - J-linux.git/blobdiff - include/net/tcp_ao.h
sysctl: delete unused define SYSCTL_PERM_EMPTY_DIR
[J-linux.git] / include / net / tcp_ao.h
index b56be10838f09a2cb56ab511242d2b583eb4c33b..6477810806137dbf7f0262ada4a64ebb568c690b 100644 (file)
@@ -62,11 +62,17 @@ static inline int tcp_ao_maclen(const struct tcp_ao_key *key)
        return key->maclen;
 }
 
+/* Use tcp_ao_len_aligned() for TCP header calculations */
 static inline int tcp_ao_len(const struct tcp_ao_key *key)
 {
        return tcp_ao_maclen(key) + sizeof(struct tcp_ao_hdr);
 }
 
+static inline int tcp_ao_len_aligned(const struct tcp_ao_key *key)
+{
+       return round_up(tcp_ao_len(key), 4);
+}
+
 static inline unsigned int tcp_ao_digest_size(struct tcp_ao_key *key)
 {
        return key->digest_size;
This page took 0.02526 seconds and 4 git commands to generate.