change sockaddr generation to pass around correct types.

These are pointers to sockaddr structs, not unsigned longs.