mod: merge socket flags variables