.rtm_type = op,
.rtm_flags = RTF_UP | RTF_STATIC,
.rtm_pid = this->pid,
- .rtm_seq = ++this->seq,
+ .rtm_seq = ref_get(&this->seq),
},
};
host_t *dst;
.rtm_version = RTM_VERSION,
.rtm_type = RTM_GET,
.rtm_pid = this->pid,
- .rtm_seq = ++this->seq,
+ .rtm_seq = ref_get(&this->seq),
},
};
host_t *host = NULL;
if (src)
{ /* the given source address might be gone, try again without */
src = NULL;
- msg.hdr.rtm_seq = ++this->seq;
+ msg.hdr.rtm_seq = ref_get(&this->seq);
msg.hdr.rtm_addrs = 0;
memset(msg.buf, sizeof(msg.buf), 0);
goto retry;