# Functions
No description provided by the author
ConvertIP 当ip为IPv6时,外层加[].
No description provided by the author
FindBestIPNet 对比ip是与本地同网段find the best one(who is in same network with otherIpAddr).
FormatAddrArray 用于跨域列表格式化,支持域名和ip混合数组.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
If we use bond or team technology to use two or more adapters as a virtual one use net.Interface.HardwareAddr will get the same mac address The following code thinking was borrowed from ethtool's source code ethtool.c this code will get the permanent mac address.
IntToMask 将掩码转换为ip格式 如 24 转换为 255.255.255.0.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
MaskToInt 将IPv4格式的子网掩码转换为整型数字 如 255.255.255.0 对应的整型数字为 24 第二个返回值string为修正后的子网掩码.
No description provided by the author