diff options
author | Sage Weil <sage@newdream.net> | 2009-12-22 20:42:29 +0100 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2009-12-23 17:52:13 +0100 |
commit | d06992d70fe7facee37713f40ee97e2badd8b17c (patch) | |
tree | a5514757dc383bca7c1d99c97006651c1e7c3405 /src/include/msgr.h | |
parent | msgr: put tid in ceph_msg_header (protocol change) (diff) | |
download | ceph-d06992d70fe7facee37713f40ee97e2badd8b17c.tar.xz ceph-d06992d70fe7facee37713f40ee97e2badd8b17c.zip |
msgr: include features in connection handshake (protocol change)
Diffstat (limited to 'src/include/msgr.h')
-rw-r--r-- | src/include/msgr.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/include/msgr.h b/src/include/msgr.h index e46d8b806de..be83f93182e 100644 --- a/src/include/msgr.h +++ b/src/include/msgr.h @@ -21,7 +21,7 @@ * whenever the wire protocol changes. try to keep this string length * constant. */ -#define CEPH_BANNER "ceph v025" +#define CEPH_BANNER "ceph v026" #define CEPH_BANNER_MAX_LEN 30 @@ -100,12 +100,14 @@ struct ceph_entity_inst { #define CEPH_MSGR_TAG_KEEPALIVE 9 /* just a keepalive byte! */ #define CEPH_MSGR_TAG_BADPROTOVER 10 /* bad protocol version */ #define CEPH_MSGR_TAG_BADAUTHORIZER 11 /* bad authorizer */ +#define CEPH_MSGR_TAG_FEATURES 12 /* insufficient features */ /* * connection negotiation */ struct ceph_msg_connect { + __le64 features; /* supported feature bits */ __le32 host_type; /* CEPH_ENTITY_TYPE_* */ __le32 global_seq; /* count connections initiated by this host */ __le32 connect_seq; /* count connections initiated in this session */ @@ -117,6 +119,7 @@ struct ceph_msg_connect { struct ceph_msg_connect_reply { __u8 tag; + __le64 features; /* feature bits for this session */ __le32 global_seq; __le32 connect_seq; __le32 protocol_version; |