Could you use the `setsockopt` function in this file instead? It should do all the size adjustments necessary (I think the argument should be a size of 4 instead of 1).