IP-level Socket Options
Posted 林散
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了IP-level Socket Options相关的知识,希望对你有一定的参考价值。
IP-Level Socket Options | |||||||
|
|
|
|
|
|
|
|
SOL_IP | IP_ADD_MEMBERSHIP | Add MulticastMembership | Y | Y | Y | IPv4 MulticastAddress | struct ip_mreq |
SOL_IP | IP_DROP_MEMBERSHIP | Drop MulticastMembership | Y | Y | Y | IPv4 MulticastAddress | struct ip_mreq |
SOL_IP | IP_HDRINCL | Enable Manual IP HeaderCreation | Y | Y | Y | Boolean | int |
SOL_IP | IP_MTU_DISCOVER | MTU Discover | Y | Y | Y | Integer | int |
SOL_IP | IP_MULTICAST_IF | Outgoing MulticastInterface | Y | Y | Y | IPv4 Address | struct in_addr |
SOL_IP | IP_MULTICAST_LOOP | Enable MulticastLoopback | Y | Y | Y | Boolean | int |
SOL_IP | IP_MULTICAST_TTL | Multicast TTL | Y | Y | Y | Integer | int |
SOL_IP | IP_OPTIONS | IP Options | Y | Y | Y | Options | int[ ] |
SOL_IP | IP_PKTINFO | Enable Getting PacketInfo | Y | Y | Y | Boolean | int |
SOL_IP | IP_PKTOPTIONS | Packet Options | N | - | - | Options | int[ ] |
SOL_IP | IP_RECVERR | Enable Receive ErrorPackets | Y | Y | Y | Boolean | int |
SOL_IP | IP_RECVOPTS | Enable ReceiveOptions | Y | Y | Y | Boolean | int |
SOL_IP | IP_RECVTOS | Get Received TOS(?) | Y | Y | Y | Integer | int |
SOL_IP | IP_RECVTTL | Get Received TTL(?) | Y | Y | Y | Integer | int |
SOL_IP | IP_RETOPTS | RETOPTS ?? | Y | Y | Y | Boolean | int |
SOL_IP | IP_ROUTER_ALERT | Enable RouterAlerts | N | - | - | Boolean | int |
SOL_IP | IP_TOS | Type of Service(TOS) | Y | Y | Y | Integer | int |
SOL_IP | IP_TTL | Time to Live(TTL) | Y | Y | Y | Integer | int |
转自:http://www.it.uc3m.es/amarin/curs/rroo/lsp/BookNotes/Appendices/Data Tables/IP-Level Socket Options.html
以上是关于IP-level Socket Options的主要内容,如果未能解决你的问题,请参考以下文章