netdev
[Top] [All Lists]

Re: Resend: SIOCGIFBRDADDR?

To: kevin@xxxxxxxxxxx (Kevin Dwyer)
Subject: Re: Resend: SIOCGIFBRDADDR?
From: kuznet@xxxxxxxxxxxxx
Date: Thu, 15 Aug 2002 20:35:59 +0400 (MSD)
Cc: alanr@xxxxxxx, netdev@xxxxxxxxxxx
In-reply-to: <Pine.LNX.4.44.0208151205240.9904-100000@xxxxxxxxxxxxxxx> from "Kevin Dwyer" at Aug 15, 2 12:10:11 pm
Sender: owner-netdev@xxxxxxxxxxx
Hello!

> crazy.  So my question: Does anyone know if there's an ip route command to
> make the Bcast field show up as the correct value,

Yes, that one which is described in manual (and equivalent to corresponding
ifconfig)

ifconfig eth0:tra-ta-ta 10.x.y.z etc.


>                                     or is there a better
> way for heartbeat to get the broadcast address?

Well, yes. Initialize ifreq with right address, for instance.
Probably, your program has the same problem, which is in net-tools package.


Or this:

> That command gives me the correct broadcast address in the brd field.

Alexey


<Prev in Thread] Current Thread [Next in Thread>