summaryrefslogtreecommitdiff
path: root/lib/netlink-socket.c
diff options
context:
space:
mode:
authorJoe Stringer <joestringer@nicira.com>2014-01-21 11:29:26 -0800
committerBen Pfaff <blp@nicira.com>2014-01-23 11:31:06 -0800
commit9c8ad495ec332a29b4e101c00b0b0341631a4d20 (patch)
treedb097d37ca3b7ce9f5d1181867ca7b2d64b084e9 /lib/netlink-socket.c
parentd15ae707727d8766f3bfa58f3923330ed078a636 (diff)
downloadopenvswitch-9c8ad495ec332a29b4e101c00b0b0341631a4d20.tar.gz
netlink: Rename 'dump->seq' to 'dump->nl_seq'
An upcoming patch will introduce another, completely unrelated seq to 'struct nl_dump'. Giving this one a better name should reduce confusion. Signed-off-by: Joe Stringer <joestringer@nicira.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'lib/netlink-socket.c')
-rw-r--r--lib/netlink-socket.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/netlink-socket.c b/lib/netlink-socket.c
index 1463ff008..8cb1b8eef 100644
--- a/lib/netlink-socket.c
+++ b/lib/netlink-socket.c
@@ -699,7 +699,7 @@ nl_dump_start(struct nl_dump *dump, int protocol, const struct ofpbuf *request)
nl_msg_nlmsghdr(request)->nlmsg_flags |= NLM_F_DUMP | NLM_F_ACK;
dump->status = nl_sock_send__(dump->sock, request,
nl_sock_allocate_seq(dump->sock, 1), true);
- dump->seq = nl_msg_nlmsghdr(request)->nlmsg_seq;
+ dump->nl_seq = nl_msg_nlmsghdr(request)->nlmsg_seq;
}
/* Helper function for nl_dump_next(). */
@@ -715,9 +715,9 @@ nl_dump_recv(struct nl_dump *dump)
}
nlmsghdr = nl_msg_nlmsghdr(&dump->buffer);
- if (dump->seq != nlmsghdr->nlmsg_seq) {
+ if (dump->nl_seq != nlmsghdr->nlmsg_seq) {
VLOG_DBG_RL(&rl, "ignoring seq %#"PRIx32" != expected %#"PRIx32,
- nlmsghdr->nlmsg_seq, dump->seq);
+ nlmsghdr->nlmsg_seq, dump->nl_seq);
return EAGAIN;
}