Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 284307
b: refs/heads/master
c: 3b09c84
h: refs/heads/master
i:
  284305: d13e253
  284303: 1805262
v: v3
  • Loading branch information
Pavel Emelyanov authored and David S. Miller committed Jan 11, 2012
1 parent 6dc20e3 commit ac3e70a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 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: c8991362a0d3cf317dfbfb6cb946607870654e6d
refs/heads/master: 3b09c84cb622ffbcdb5d541986b1eaf7d5812602
2 changes: 1 addition & 1 deletion trunk/include/linux/inet_diag.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ struct inet_diag_sockid {

/* Request structure */

struct inet_diag_req_compat {
struct inet_diag_req {
__u8 idiag_family; /* Family of addresses. */
__u8 idiag_src_len;
__u8 idiag_dst_len;
Expand Down
8 changes: 4 additions & 4 deletions trunk/net/ipv4/inet_diag.c
Original file line number Diff line number Diff line change
Expand Up @@ -909,10 +909,10 @@ static inline int inet_diag_type2proto(int type)

static int inet_diag_dump_compat(struct sk_buff *skb, struct netlink_callback *cb)
{
struct inet_diag_req_compat *rc = NLMSG_DATA(cb->nlh);
struct inet_diag_req *rc = NLMSG_DATA(cb->nlh);
struct inet_diag_req_v2 req;
struct nlattr *bc = NULL;
int hdrlen = sizeof(struct inet_diag_req_compat);
int hdrlen = sizeof(struct inet_diag_req);

req.sdiag_family = AF_UNSPEC; /* compatibility */
req.sdiag_protocol = inet_diag_type2proto(cb->nlh->nlmsg_type);
Expand All @@ -929,7 +929,7 @@ static int inet_diag_dump_compat(struct sk_buff *skb, struct netlink_callback *c
static int inet_diag_get_exact_compat(struct sk_buff *in_skb,
const struct nlmsghdr *nlh)
{
struct inet_diag_req_compat *rc = NLMSG_DATA(nlh);
struct inet_diag_req *rc = NLMSG_DATA(nlh);
struct inet_diag_req_v2 req;

req.sdiag_family = rc->idiag_family;
Expand All @@ -943,7 +943,7 @@ static int inet_diag_get_exact_compat(struct sk_buff *in_skb,

static int inet_diag_rcv_msg_compat(struct sk_buff *skb, struct nlmsghdr *nlh)
{
int hdrlen = sizeof(struct inet_diag_req_compat);
int hdrlen = sizeof(struct inet_diag_req);

if (nlh->nlmsg_type >= INET_DIAG_GETSOCK_MAX ||
nlmsg_len(nlh) < hdrlen)
Expand Down

0 comments on commit ac3e70a

Please sign in to comment.