[collectd] [PATCH] Interface option for network plugin

Sebastian Harl sh at tokkee.org
Tue Mar 9 18:29:34 CET 2010


On Tue, Mar 09, 2010 at 06:17:35PM +0100, Florian Forster wrote:
> On Fri, Feb 26, 2010 at 12:49:02PM +0100, Max Henkel wrote:
> > +		if (! IN_MULTICAST (ntohl (addr->sin_addr.s_addr)))
> > +			return (0);
> Doesn't it make sense to be able to set the interface in unicast mode,
> too? For example if the host has multiple default gateways. The
> socket(7) option "SO_BINDTODEVICE" could be used for this I guess.

Please note that, iIrc, that option is Linux-specific. Not sure whether
that also applies to the patch proposed by Max, though.


Sebastian "tokkee" Harl +++ GnuPG-ID: 0x8501C7FC +++ http://tokkee.org/

Those who would give up Essential Liberty to purchase a little Temporary
Safety, deserve neither Liberty nor Safety.         -- Benjamin Franklin

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
Url : http://mailman.verplant.org/pipermail/collectd/attachments/20100309/a7fa4b3d/attachment-0001.pgp 

More information about the collectd mailing list