| To: | fubar@xxxxxxxxxx, bonding-devel@xxxxxxxxxxxxxxxxxxxxx |
|---|---|
| Subject: | [PATCH 2.6.12-rc2 r15/17] bonding: include ARP information in /proc file |
| From: | Radheka Godse <radheka.godse@xxxxxxxxx> |
| Date: | Fri, 8 Apr 2005 17:10:30 -0700 (PDT) |
| Cc: | netdev@xxxxxxxxxxx |
| Replyto: | "Radheka Godse" <radheka.godse@intel.com> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
|
For bonds configured to do ARP monitoring, this patch displays polling interval and ip targets info in their respective proc files. This information was missing in the proc file. Signed-off-by: Radheka Godse <radheka.godse@xxxxxxxxx> Signed-off-by: Mitch Williams <mitch.a.williams@xxxxxxxxx>
read_lock(&bond->curr_slave_lock);
curr = bond->curr_active_slave;
@@ -3191,6 +3193,24 @@
seq_printf(seq, "Down Delay (ms): %d\n",
bond->params.downdelay * bond->params.miimon);+ + // ARP information + if(bond->params.arp_interval > 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) && bond->params.arp_targets[i] ;i++) { + target = ntohl(bond->params.arp_targets[i]); + seq_printf(seq, " %d.%d.%d.%d", HIPQUAD(target)); + if((i+1 < BOND_MAX_ARP_TARGETS) && bond->params.arp_targets[i+1]) + seq_printf(seq, ","); + else + seq_printf(seq, "\n"); + } + } + if (bond->params.mode == BOND_MODE_8023AD) { struct ad_info ad_info; |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH 2.6.12-rc2 0/17] bonding: sysfs interface..., Stephen Hemminger |
|---|---|
| Next by Date: | [PATCH 2.6.12-rc2 r16/17] bonding: version, date and log update, Radheka Godse |
| Previous by Thread: | [PATCH 2.6.12-rc2 r14/17] bonding: spelling and whitespace correction, Radheka Godse |
| Next by Thread: | [PATCH 2.6.12-rc2 r16/17] bonding: version, date and log update, Radheka Godse |
| Indexes: | [Date] [Thread] [Top] [All Lists] |