logo       

Re: Resend: SIOCGIFBRDADDR?: msg#00081

Subject: Re: Resend: SIOCGIFBRDADDR?
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>