[Click] [PATCH] AddressInfo broadcast address

Harald Schioeberg harald at net.t-labs.tu-berlin.de
Sat Feb 21 12:18:44 EST 2009


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


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: test-bcast.click
Url: http://amsterdam.lcs.mit.edu/pipermail/click/attachments/20090221/310557c7/attachment.txt 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: addressinfo-bcast.patch
Type: text/x-patch
Size: 1927 bytes
Desc: not available
Url : http://amsterdam.lcs.mit.edu/pipermail/click/attachments/20090221/310557c7/attachment.bin 


More information about the click mailing list