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

📄 sameaddr.3

📁 ipsec vpn
💻 3
字号:
.TH IPSEC_ANYADDR 3 "28 Nov 2000".\" RCSID $Id: sameaddr.3,v 1.7 2004/04/09 18:00:36 mcr Exp $.SH NAMEipsec sameaddr \- are two addresses the same?.bripsec addrcmp \- ordered comparison of addresses.bripsec samesubnet \- are two subnets the same?.bripsec addrinsubnet \- is an address within a subnet?.bripsec subnetinsubnet \- is a subnet within another subnet?.bripsec subnetishost \- is a subnet a single host?.bripsec samesaid \- are two SA IDs the same?.bripsec sameaddrtype \- are two addresses of the same address family?.bripsec samesubnettype \- are two subnets of the same address family?.SH SYNOPSIS.B "#include <freeswan.h>.sp.B "int sameaddr(const ip_address *a, const ip_address *b);".br.B "int addrcmp(const ip_address *a, const ip_address *b);".br.B "int samesubnet(const ip_subnet *a, const ip_subnet *b);".br.B "int addrinsubnet(const ip_address *a, const ip_subnet *s);".br.B "int subnetinsubnet(const ip_subnet *a, const ip_subnet *b);".br.B "int subnetishost(const ip_subnet *s);".br.B "int samesaid(const ip_said *a, const ip_said *b);".br.B "int sameaddrtype(const ip_address *a, const ip_address *b);".br.B "int samesubnettype(const ip_subnet *a, const ip_subnet *b);".SH DESCRIPTIONThese functions do various comparisons and tests on the.I ip_addresstype and.I ip_subnettypes..PP.I Sameaddrreturnsnon-zeroif addresses.I aand.IR bare identical,and.B 0otherwise.Addresses of different families are never identical..PP.I Addrcmpreturns.BR \-1 ,.BR 0 ,or.BR 1respectivelyif address.I ais less than, equal to, or greater than.IR b .If they are not of the same address family,they are never equal;the ordering reported in this case is arbitrary(and probably not useful) but consistent..PP.I Samesubnetreturnsnon-zeroif subnets.I aand.IR bare identical,and.B 0otherwise.Subnets of different address families are never identical..PP.I Addrinsubnetreturnsnon-zeroif address.I ais within subnet.IR sand.B 0otherwise.An address is never within asubnet of a different address family..PP.I Subnetinsubnetreturnsnon-zeroif subnet.I ais a subset of subnet.IR band.B 0otherwise.A subnet is deemed to be a subset of itself.A subnet is never a subset of anothersubnet if their address families differ..PP.I Subnetishostreturnsnon-zeroif subnet.I sis in fact only a single host,and.B 0otherwise..PP.I Samesaidreturnsnon-zeroif SA IDs.I aand.IR bare identical,and.B 0otherwise..PP.I Sameaddrtypereturnsnon-zeroif addresses.I aand.IR bare of the same address family,and.B 0otherwise..PP.I Samesubnettypereturnsnon-zeroif subnets.I aand.IR bare of the same address family,and.B 0otherwise..SH SEE ALSOinet(3), ipsec_initaddr(3).SH HISTORYWritten for the FreeS/WAN project by Henry Spencer.

⌨️ 快捷键说明

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