prg_ip_address_parse()

Abstract

Initializes an IP address data structure by parsing an IP address string and/or a subnet mask string.

Syntax

prg_ip_address_parse (ip_address_str, subnet_mask_str, ip_address_ptr)
Argument Type Description
ip_address_str const char * the string to parse for the address value
subnet_mask_str const char * the string to parse for the subnet mask value, possibly NIL
ip_address_ptr PrgT_IP_Address * the IP address object to initialize

Return Type

PrgT_Compcode

Indicates whether or not the string(s) were successfully parsed.

prg_ip_address.h

Details

Initializes an IP address data structure by parsing an IP address string and/or a Subnet Mask string. Both strings are expected to be in dotted notation (“xxx.xxx.xxx.xxx”), represent a full 32-bit integral value, or be one of the special strings: “Auto Assigned”, “Unnumbered”, or “Class Based”). If the subnet mask string is NIL, then a class based subnet mask will be chosen unless a subnet mask prefix length is found after a slash in the address string. For example, “172.16.100.16/26”.

本站文档由 北京智网畅联科技有限公司 整理、翻译并提供 · Documentation compiled and provided by Beijing ZNetLink Technology Co., Ltd.

交流群 · QQ Group:OPNET/智网妙算网络仿真交流群(群号 486383494)

原文档 © 2017 Riverbed Technology · 本站为公益翻译,由 AI 辅助完成,请仔细甄别

Original documentation © 2017 Riverbed Technology. Community translation, AI-assisted. Contact: jiazequn@znetlink.com