MT#5393 Properly set dir flags for v4/v6 handling.
Bump debian version to 2.2.2 for 2.8 backport.