This patch fixes the following issues:
- Let the accepted TCP/IPv4 socket inherit the configured TTL and TOS value.
- Let the accepted TCP/IPv6 socket inherit the configured Hop Limit.
- Use the configured Hop Limit and Traffic Class when sending IPv6 packets.