mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 06:15:47 +00:00
netlink-socket: Set socket pid number in NL message on Windows.
The pid must be set in the NL header as the driver checks it against the pid in the instance paired with the socket. Signed-off-by: Eitan Eliahu <eliahue@vmware.com> Acked-by: Nithin Raju <nithin@vmware.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
This commit is contained in:
@@ -1202,6 +1202,7 @@ pend_io_request(struct nl_sock *sock)
|
||||
OVS_CTRL_CMD_WIN_PEND_REQ, OVS_WIN_CONTROL_VERSION);
|
||||
nlmsg = nl_msg_nlmsghdr(&request);
|
||||
nlmsg->nlmsg_seq = seq;
|
||||
nlmsg->nlmsg_pid = sock->pid;
|
||||
|
||||
ovs_header = ofpbuf_put_uninit(&request, sizeof *ovs_header);
|
||||
ovs_header->dp_ifindex = 0;
|
||||
|
Reference in New Issue
Block a user