bool SocketConnection::update_rx_seq(seq_num_t seq)
{
if (seq <= in_seq) {
- if (has_feature(CEPH_FEATURE_RECONNECT_SEQ) &&
+ if (HAVE_FEATURE(features, RECONNECT_SEQ) &&
conf.ms_die_on_old_message) {
assert(0 == "old msgs despite reconnect_seq feature");
}
bl.append(msg->get_middle());
bl.append(msg->get_data());
auto& footer = msg->get_footer();
- if (has_feature(CEPH_FEATURE_MSG_AUTH)) {
+ if (HAVE_FEATURE(features, MSG_AUTH)) {
bl.append((const char*)&footer, sizeof(footer));
} else {
ceph_msg_footer_old old_footer;
bool is_reset_from_peer)
{
msgr_tag_t reply_tag;
- if ((h.connect.features & CEPH_FEATURE_RECONNECT_SEQ) && !is_reset_from_peer) {
+ if (HAVE_FEATURE(h.connect.features, RECONNECT_SEQ) &&
+ !is_reset_from_peer) {
reply_tag = CEPH_MSGR_TAG_SEQ;
} else {
reply_tag = CEPH_MSGR_TAG_READY;
decltype(sent){}.swap(sent);
in_seq = 0;
h.connect_seq = 0;
- if (has_feature(CEPH_FEATURE_MSG_AUTH)) {
+ if (HAVE_FEATURE(features, MSG_AUTH)) {
// Set out_seq to a random value, so CRC won't be predictable.
// Constant to limit starting sequence number to 2^31. Nothing special
// about it, just a big number.