HP-UX SNAplus2 R7 NOF Programmer's Guide

NOF API Verbs
DEFINE_LS
3.29.7 Bit Ordering in MAC Addresses
Ethernet LANs use a different representation of MAC addresses from that used by Token Ring and FDDI; the order
of the bits in each byte of the address on Ethernet is the reverse of the order on Token Ring. Normally, the local
and remote nodes are on the same LAN, or on LANs of the same type connected by a bridge; in this case, they
will both use the same representation of the MAC address, and no conversion is required.
If the two nodes are on LANs of different types (one Ethernet, the other Token Ring or FDDI) connected by a
bridge, you will normally need to reverse the bit order of each byte of the address when specifying a remote MAC
address. To do this, take the following steps:
1. List the MAC address as six bytes, each byte represented by two hexadecimal digits.
2. List the MAC address as six bytes, each byte represented by two hexadecimal digits.
3. Convert each digit as shown below:
0 08
1
1
89
9
2
4A
5
3
CB
D
4
2C
3
5
AD
B
6
6E
7
7
EF
F
Example 31 Example of Bit Ordering in a MAC Address
Original address 1A 2B 3C 4D 5E 6F
Swap digits A1 B2 C3 D4 E5 F6
Convert digits (the bit-reversed form of the
original address)
58 D4 3C B2 7A F6
3.29.8 Modem Control Characters
For SDLC, if you need to include one or more non-printable control characters in the hmod_data parameter, you
can do this by specifying the hexadecimal value of the control character, as listed in Table 31, Escape Sequences
for Modem Control Characters.
Table 31 Escape Sequences for Modem Control Characters
Escape Sequence Decimal Value Hexadecimal Value
NUL 0 0x00
SOH 1 0x01
STX 2 0x02
ETX 3 0x03
EOT 4 0x04
ENQ 5 0x05
193