XLFIPV ;ISD/HGW - IPv4 and IPv6 Utilities ; 8/19/20 10:57am
Source file <XLFIPV.m>
Name | Comments | DBIA/ICR reference |
---|---|---|
VALIDATE(IP) | ; EXTRINSIC. ICR #5844 (supported)
; Validate the format of an IP address (either IPv4 or IPv6). ; Usage: S Y=$$VALIDATE^XLFIPV(IP) ; Input: IP (string) - IPv4 or IPv6 Address to be validated. ; Output: returns: ; 1 - if the IP address is in a valid format. ; 0 - if the format is invalid or null input. |
|
FORCEIP4(IP) | ; EXTRINSIC. ICR #5844 (supported)
; Convert an IP address (either IPv4 or IPv6) into an IPv4 address in a standardized format: "127.0.0.1". ; Usage: S Y=$$FORCEIP4^XLFIPV(IP) ; Input: IP (string) IPv4 or IPv6 Address to be converted. ; Output: returns: An IPv4 address in "ddd.ddd.ddd.ddd" notation if the input address is valid and has an ; IPv4 equivalent, or the null address "0.0.0.0" if the input address is invalid, or the null address ; "0.0.0.0" if an IPv6 address is input which does not have an IPv4 equivalent. |
|
FORCEIP6(IP) | ; EXTRINSIC. ICR #5844 (supported)
; Convert an IP address (either IPv4 or IPv6) into an IPv6 address in a standardized format: "2001:0DB8:0000:0000:0000:8A2E:0370:7334". ; Usage: S Y=$$FORCEIP6^XLFIPV(IP) ; Input: IP (string) IPv4 or IPv6 Address to be converted. ; Output: returns: An IPv6 address in "hhhh:hhhh:hhhh:hhhh:hhhh:hhhh:hhhh:hhhh" notation if the ; input address is valid, or the null address "::0" if the input address is invalid. |
|
CONVERT(IP) | ; EXTRINSIC. ICR #5844 (supported)
; Convert an IP address (either IPv4 or IPv6) into an IPv6 address in a standardized format, either IPv4 or IPv6 depending ; upon the Cache system settings. ; Usage: S Y=$$CONVERT^XLFIPV(IP) ; Input: IP (string) IPv4 or IPv6 Address to be converted. ; Output: returns: ; - An IPv4 address if IPv6 is disabled on the system. ; - An IPv6 address if IPv6 is enabled on the system. ; - An IPv4 or IPv6 null address if the input cannot be converted. |
|
VERSION() | ; EXTRINSIC. ICR #5844 (supported)
; Determine the Cache system settings for IPv6. ; Usage: S Y=$$VERSION^XLFIPV() ; Input: None. ; Output: returns: ; 1 - if IPv6 is enabled. ; 0 - if IPv6 is disabled. |
|
VAL | ; OPTION. "Validate IPv4 and IPv6 address" [XLFIPV VALIDATE]
|
|
VALH | ; Extended help for VAL^XLFIPV
|
|
IP4 | ; OPTION. "Convert any IP address to IPv4" [XLFIPV FORCEIP4]
|
|
IP4H | ; Extended help for IP4^XLFIPV
|
|
IP6 | ; OPTION. "Convert any IP address to IPv6" [XLFIPV FORCEIP6]
|
|
IP6H | ; Extended help for IP6^XLFIPV
|
|
CON | ; OPTION. "Convert any IP address per system settings" [XLFIPV CONVERT]
|
|
CONH | ; Extended help for CON^XLFIPV
|
|
VER | ; OPTION. "Show system settings for IPv6" [XLFIPV VERSION]
|
|
EXPAND4(IP) | ; INTRINSIC.
; Changes the format of an IPv4 address to a common format that can be validated ; Usage: S Y=$$EXPAND4^XLFIPV(IP) ; Input: IP (string) IPv4 address to be reformatted. ; Output: returns: An IPv4 address in the format "nnn.nnn.nnn.nnn". |
|
EXPAND6(IP,ZNUM) | ; INTRINSIC.
; Changes the format of an IPv6 address to a common format that can be validated ; Usage: S Y=$$EXPAND6^XLFIPV(IP) ; Input: IP (string) IPv6 address to be reformatted. ; ZNUM The number of expected colons ; Output: returns: An IPv6 address in the format "hhhh:hhhh:hhhh:hhhh:hhhh:hhhh:hhhh:hhhh". |
|
EXAMINE4(XLFIELD) | ; INTRINSIC.
; Examine a single field of an IPv4 address for a valid format ; Usage: S Y=$$EXAMINE4^XLFIPV(XLFIELD) ; Input: XLFIELD (string) Field to be examined. ; Output: returns: ; 1 - if the field is valid. ; 0 - if the field is invalid. |
|
EXAMINE6(XLFIELD) | ; INTRINSIC.
; Examine a single field of an IPv6 address for a valid format ; Usage: S Y=$$EXAMINE6^XLFIPV(XLFIELD) ; Input: XLFIELD (string) Field to be examined. ; Output: returns: ; 1 - if the field is valid. ; 0 - if the field is invalid. |
|
CNVF(IP) | ; INTRINSIC.
; Expands a decimal IP address "ddd.ddd.ddd.ddd" to hexadecimal fields ; Usage: S Y=$$CNVF^XLFIPV(IP) ; Input: IP (string) IPv4 address to be reformatted. ; Output: returns: The last two bytes of an IPv6 address in the format "hhhh:hhhh". |
Name | Line Occurrences |
---|---|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|