HP X.25/9000 Programmer's Guide
20 Chapter2
X.25 Addressing
Using Wildcard Addressing
The table below illustrates the various possibilities of matching and non-
matching addresses for a given number using wildcard characters.
Setting a Wildcard Protocol ID Local Address Mask
The server specifies the protocol ID for its listen socket in the
x25pid
field of the x25addrstr structure. The protocol ID is part of the call user
data field in the CALL REQUEST packet. This field is logically ANDed
with the mask specified in the ioctl(X25_WR_MASK_DATA). The
x25pid
field and the mask specified in the ioctl(X25_WR_MASK_DATA) can be
combined to enable a certain degree of wildcard addressing.
? Matches any single digit in the same position (for
example, 1? matches 10, 11, 12, 13, 14, 15, 16, 17, 18,
and 19).
* Matches any string of decimal digits, including none (for
example, 1* matches any address beginning with 1
including 1 itself). It can be used alone or as a suffix.
Table 2-1 Wildcard Characters
Table 2-2 Wildcard Address Matching for x25_host
Example
Address
Matching Addresses Non-Matching Addresses
7234 7234 All addresses except 7234
723? 7230, 7231, 7232, 7233,
7234, 7235, 7236, 7237,
7238, or 7239
All addresses that do not begin
with 723 and all addresses that
are not 4 digits long
72?4 7204, 7214, 7224, 7234,
7244, 7254, 7264, 7274,
7284, or 7294
All addresses that do not begin
with 72 and end with 4, and all
addresses that are not 4 digits
long
* All addresses are valid. None
??* All addresses of 2 digits or
more are valid.
Addresses with only 1 digit (0, 1,
2, 3, 4, 5, 6, 7, 8, or 9)
*?? Invalid syntax – nothing
matches.
Invalid syntax
36960-90061.bk Page 20 Friday, November 10, 2000 3:42 PM










