]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
Utility functions to produce an IPv4 broadcast address
authorLaine Stump <laine@laine.org>
Fri, 31 Dec 2010 02:33:24 +0000 (21:33 -0500)
committerLaine Stump <laine@laine.org>
Fri, 31 Dec 2010 16:34:12 +0000 (11:34 -0500)
commit86387878b0a00832b8980b00adc35f7f05dfa220
treee6503865af41a9a6f38de3e739b8fabc8c52b610
parent6b6cb7ea15e728f271efe943948541fa9691ff43
Utility functions to produce an IPv4 broadcast address

These functions work only for IPv4, becasue IPv6 doesn't have the same
concept of "broadcast address" as IPv4. They merely OR the inverse of
the netmask with the given host address, thus turning on all the host
bits.
src/libvirt_private.syms
src/util/network.c
src/util/network.h