⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 subnetof.3

📁 ipsec vpn
💻 3
字号:
.TH IPSEC_SUBNETOF 3 "11 June 2001".\" RCSID $Id: subnetof.3,v 1.7 2004/04/09 18:00:36 mcr Exp $.SH NAMEipsec subnetof \- given Internet address and subnet mask, return subnet number.bripsec hostof \- given Internet address and subnet mask, return host part.bripsec broadcastof \- given Internet address and subnet mask, return broadcast address.SH SYNOPSIS.B "#include <freeswan.h>.sp.B "struct in_addr subnetof(struct in_addr addr,".ti +1c.B "struct in_addr mask);".br.B "struct in_addr hostof(struct in_addr addr,".ti +1c.B "struct in_addr mask);".br.B "struct in_addr broadcastof(struct in_addr addr,".ti +1c.B "struct in_addr mask);".SH DESCRIPTIONThese functions are obsolete; see.IR ipsec_networkof (3)for their replacements..PP.I Subnetoftakes an Internet.I addressand a subnet.I maskand returns the network part of the address(all in network byte order)..I Hostofsimilarly returns the host part, and.I broadcastofreturns the broadcast address (all-1s convention) for the network..PPThese functions are provided to hide the Internet bit-munging insidean API, in hopes of easing the eventual transition to IPv6..SH SEE ALSOinet(3), ipsec_atosubnet(3).SH HISTORYWritten for the FreeS/WAN project by Henry Spencer..SH BUGSCalling functions for this is more costly than doing it yourself.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -