X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Usermode%2FLibraries%2Flibnet.so_src%2Fnet.h;h=fcd213f055678887e16bd596404dd865ff95af26;hb=89d57929e1e4f83a55d32a1d0084e4ed0296f521;hp=f45646f3e7f42aabf73a8170bbd1f6b6b9955ed0;hpb=560e97380a10c4a8cd8b14b2b7f5d133e32759e0;p=tpg%2Facess2.git diff --git a/Usermode/Libraries/libnet.so_src/net.h b/Usermode/Libraries/libnet.so_src/net.h index f45646f3..fcd213f0 100644 --- a/Usermode/Libraries/libnet.so_src/net.h +++ b/Usermode/Libraries/libnet.so_src/net.h @@ -21,6 +21,13 @@ extern int Net_ParseAddress(const char *String, void *Addr); */ extern const char *Net_PrintAddress(int AddressType, void *Address); +/** + * \brief Get the size in bytes of an address type + * \param AddressType Address type returned by Net_ParseAddress + * \return Size of an address in bytes + */ +extern int Net_GetAddressSize(int AddressType); + /** * \brief Get the interface required to reach \a Addr * \param AddrType Addresss Family (4: IPv4, 6: IPv6)