Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 119751
b: refs/heads/master
c: bd7df21
h: refs/heads/master
i:
  119749: fd883d1
  119747: 4077a79
  119743: a13ffbe
v: v3
  • Loading branch information
remi.denis-courmont@nokia authored and David S. Miller committed Dec 3, 2008
1 parent b342229 commit a16a918
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d25830e5507f6bc815f5dd7e2eb65f172e878a2b
refs/heads/master: bd7df219202f44e71e2e975a0fb5f76f946c1aef
3 changes: 3 additions & 0 deletions trunk/net/phonet/pn_netlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ static int fill_addr(struct sk_buff *skb, struct net_device *dev, u8 addr,

static int getaddr_dumpit(struct sk_buff *skb, struct netlink_callback *cb)
{
struct net *net = sock_net(skb->sk);
struct phonet_device *pnd;
int dev_idx = 0, dev_start_idx = cb->args[0];
int addr_idx = 0, addr_start_idx = cb->args[1];
Expand All @@ -131,6 +132,8 @@ static int getaddr_dumpit(struct sk_buff *skb, struct netlink_callback *cb)
list_for_each_entry(pnd, &pndevs.list, list) {
u8 addr;

if (!net_eq(dev_net(pnd->netdev), net))
continue;
if (dev_idx > dev_start_idx)
addr_start_idx = 0;
if (dev_idx++ < dev_start_idx)
Expand Down

0 comments on commit a16a918

Please sign in to comment.