The protocol handler don't need to be changed at all because the 8-bit variable type remains named as addr.
The data stored in there (as already mentioned) is then automatically available to be used as different data types (e.g. a IPv4 address can be written as 4 bytes or 1 integer - in memory, it's exactly the same)