[Click] [PATCH] AddressInfo broadcast address
Eddie Kohler
kohler at cs.ucla.edu
Sun Feb 22 17:35:54 EST 2009
Harald,
This is a great idea. Thanks!! I've applied a version of the patch.
Attached is a small regression test that I made from your test config. This
may be useful for people who don't notice or get Click's regression test
framework.
Eddie
Harald Schioeberg wrote:
> This patch allows querying AddressInfo interfaces for <iface>:bcast to
> get the broadcast address of an interface. It is calculated by setting
> all host bits to 1, according to the configured netmask.
>
> output of "read rt.table" to the attached test config
>
> Click::ControlSocket/1.3
> 200 Read handler 'rt.table' OK
> DATA 54
> 1.2.3.4/32 - 0
> 1.2.0.0/20 - 1
> 1.2.15.255/32 - 2
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> click mailing list
> click at amsterdam.lcs.mit.edu
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: AddressInfo-bcast-01.testie
Url: http://amsterdam.lcs.mit.edu/pipermail/click/attachments/20090222/88a24b7d/attachment.txt
More information about the click
mailing list