Helper functions for dealing with socket ancillary data