libceph, ceph: implement msgr2.1 protocol (crc and secure modes)
[linux-2.6-microblaze.git] / include / linux / ceph / decode.h
index 9a934e0..04f3ace 100644 (file)
@@ -221,6 +221,7 @@ static inline void ceph_encode_timespec64(struct ceph_timespec *tv,
 #define CEPH_ENTITY_ADDR_TYPE_NONE     0
 #define CEPH_ENTITY_ADDR_TYPE_LEGACY   __cpu_to_le32(1)
 #define CEPH_ENTITY_ADDR_TYPE_MSGR2    __cpu_to_le32(2)
+#define CEPH_ENTITY_ADDR_TYPE_ANY      __cpu_to_le32(3)
 
 static inline void ceph_encode_banner_addr(struct ceph_entity_addr *a)
 {
@@ -243,6 +244,9 @@ extern int ceph_decode_entity_addr(void **p, void *end,
 int ceph_decode_entity_addrvec(void **p, void *end, bool msgr2,
                               struct ceph_entity_addr *addr);
 
+int ceph_entity_addr_encoding_len(const struct ceph_entity_addr *addr);
+void ceph_encode_entity_addr(void **p, const struct ceph_entity_addr *addr);
+
 /*
  * encoders
  */