Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 363094
b: refs/heads/master
c: f4685fa
h: refs/heads/master
v: v3
  • Loading branch information
Tomas Hozza authored and Greg Kroah-Hartman committed Mar 15, 2013
1 parent 6ebce4d commit 86c6479
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 77d6a5289343665a41f55c0ea46c169b3f551a24
refs/heads/master: f4685fa6d0427c3948a5120a9658fad7ae81facd
10 changes: 7 additions & 3 deletions trunk/tools/hv/hv_kvp_daemon.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,10 @@ static struct utsname uts_buf;
#define MAX_FILE_NAME 100
#define ENTRIES_PER_BLOCK 50

#ifndef SOL_NETLINK
#define SOL_NETLINK 270
#endif

struct kvp_record {
char key[HV_KVP_EXCHANGE_MAX_KEY_SIZE];
char value[HV_KVP_EXCHANGE_MAX_VALUE_SIZE];
Expand Down Expand Up @@ -1407,7 +1411,7 @@ netlink_send(int fd, struct cn_msg *msg)

int main(void)
{
int fd, len, sock_opt;
int fd, len, nl_group;
int error;
struct cn_msg *message;
struct pollfd pfd;
Expand Down Expand Up @@ -1452,8 +1456,8 @@ int main(void)
close(fd);
exit(EXIT_FAILURE);
}
sock_opt = CN_KVP_IDX;
setsockopt(fd, 270, 1, &sock_opt, sizeof(sock_opt));
nl_group = CN_KVP_IDX;
setsockopt(fd, SOL_NETLINK, NETLINK_ADD_MEMBERSHIP, &nl_group, sizeof(nl_group));
/*
* Register ourselves with the kernel.
*/
Expand Down

0 comments on commit 86c6479

Please sign in to comment.