Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 15720
b: refs/heads/master
c: 4756b02
h: refs/heads/master
v: v3
  • Loading branch information
Mitch Williams authored and John W. Linville committed Nov 13, 2005
1 parent 8add5c4 commit 71a2b98
Show file tree
Hide file tree
Showing 2 changed files with 24 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: 6b780567223524cac86c745aeac425521cf37490
refs/heads/master: 4756b02f558cbbbef5ae278fd3bbed778458c124
23 changes: 23 additions & 0 deletions trunk/drivers/net/bonding/bond_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -3259,6 +3259,8 @@ static void bond_info_show_master(struct seq_file *seq)
{
struct bonding *bond = seq->private;
struct slave *curr;
int i;
u32 target;

read_lock(&bond->curr_slave_lock);
curr = bond->curr_active_slave;
Expand Down Expand Up @@ -3290,6 +3292,27 @@ static void bond_info_show_master(struct seq_file *seq)
seq_printf(seq, "Down Delay (ms): %d\n",
bond->params.downdelay * bond->params.miimon);


/* ARP information */
if(bond->params.arp_interval > 0) {
int printed=0;
seq_printf(seq, "ARP Polling Interval (ms): %d\n",
bond->params.arp_interval);

seq_printf(seq, "ARP IP target/s (n.n.n.n form):");

for(i = 0; (i < BOND_MAX_ARP_TARGETS) ;i++) {
if (!bond->params.arp_targets[i])
continue;
if (printed)
seq_printf(seq, ",");
target = ntohl(bond->params.arp_targets[i]);
seq_printf(seq, " %d.%d.%d.%d", HIPQUAD(target));
printed = 1;
}
seq_printf(seq, "\n");
}

if (bond->params.mode == BOND_MODE_8023AD) {
struct ad_info ad_info;

Expand Down

0 comments on commit 71a2b98

Please sign in to comment.