Solution: extracted common code into do_getsockopt/do_setsockopt functions
Attach a file by drag & drop or click to upload