why does 0xFFF = 255? What the hell is 0xfff anyway? Does he mean "0x0FFF?"
Because
0x0FFF would equal 4095....
For example, the Hex Subnet mask of FF:FF:FF:FF
=
Byte1: FF
Byte2: FF
Byte3: FF
Byte4: FF
Decimal:
255.255.255.255
Slash: /32
Binary: 11111111.11111111.11111111.11111111