adapt 80215 code to inet-2.2