External Procedure Name: ::ip::isOverlapNative
|
Purpose |
|
checks to see if prefixes overlap (optimized native form) |
Synopsis |
|
isOverlap <hexipaddr> <hexmask> {{<hexipaddr1> <hexmask1>} {<hexipaddr2> <hexmask2>...}
|
Arguments |
|
-all
return all overlaps rather than the first one
-inline
rather than returning index values, return the actual overlap prefixes
<hexipaddr>
ipaddress in hex/integer form
<hexMask>
mask in hex/integer form
-ipv4
the provided native format addresses are in ipv4 format (default)
|
Return Output |
|
non-zero if there is an overlap, value is element # in list with overlap
|
Description |
|
isOverlapNative is avaliabel both as a C extension and in a native tcl form
if the extension is loaded (tried automatically), isOverlapNative will be
linked to isOverlapNativeC. If an extension is not loaded, then isOverlapNative
will be linked to the native tcl proc: ipOverlapNativeTcl.
|
Examples |
|
% ::ip::isOverlapNative 0x01010100 0xffffff00 {{0x02010001 0xffffffff}}
0
%::ip::isOverlapNative 0x01010100 0xffffff00 {{0x02010001 0xffffffff} {0x01010101 0xffffffff}}
2
|