Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 18283
b: refs/heads/master
c: 1dba974
h: refs/heads/master
i:
  18281: 8919aa2
  18279: 3946728
v: v3
  • Loading branch information
Per Liden authored and David S. Miller committed Jan 12, 2006
1 parent f9f6a9a commit 3695890
Show file tree
Hide file tree
Showing 3 changed files with 3 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: b97bf3fd8f6a16966d4f18983b2c40993ff937d4
refs/heads/master: 1dba9743337cabacea79e47ed6d709e636c5ed47
1 change: 0 additions & 1 deletion trunk/include/linux/tipc.h
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,6 @@ static inline void TLV_LIST_STEP(struct tlv_list_desc *list)
* Configuration messages exchanged via NETLINK_GENERIC use the following
* family id, name, version and command.
*/
#define TIPC_GENL_FAMILY 0x222
#define TIPC_GENL_NAME "TIPC"
#define TIPC_GENL_VERSION 0x1
#define TIPC_GENL_CMD 0x1
Expand Down
4 changes: 2 additions & 2 deletions trunk/net/tipc/netlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ static int handle_cmd(struct sk_buff *skb, struct genl_info *info)
struct nlmsghdr *rep_nlh;
struct nlmsghdr *req_nlh = info->nlhdr;
struct tipc_genlmsghdr *req_userhdr = info->userhdr;
int hdr_space = NLMSG_SPACE(0);
int hdr_space = NLMSG_SPACE(GENL_HDRLEN + TIPC_GENL_HDRLEN);

if ((req_userhdr->cmd & 0xC000) && (!capable(CAP_NET_ADMIN)))
rep_buf = cfg_reply_error_string(TIPC_CFG_NOT_NET_ADMIN);
Expand All @@ -63,7 +63,7 @@ static int handle_cmd(struct sk_buff *skb, struct genl_info *info)
}

static struct genl_family family = {
.id = TIPC_GENL_FAMILY,
.id = GENL_ID_GENERATE,
.name = TIPC_GENL_NAME,
.version = TIPC_GENL_VERSION,
.hdrsize = TIPC_GENL_HDRLEN,
Expand Down

0 comments on commit 3695890

Please sign in to comment.