MacOSX 中的网络标志的解释是什么?

MacOSX 中的网络标志的解释是什么?

早上好。

有人能向我解释一下路由表中标志的含义吗?

例如如果你检查输出,netstat -nr你会看到如下行:

default            192.168.2.1        UGSc           56        3     en0

因此,例如这个路线就有UGSc标志。

完整的标志列表如下:

1   RTF_PROTO1  Protocol specific routing flag #1
2   RTF_PROTO2  Protocol specific routing flag #2
3   RTF_PROTO3  Protocol specific routing flag #3
B   RTF_BLACKHOLE   Just discard pkts (during updates)
b   RTF_BROADCAST   The route represents a broadcast address
C   RTF_CLONING     Generate new routes on use
c   RTF_PRCLONING   Protocol-specified generate new routes on use
D   RTF_DYNAMIC     Created dynamically (by redirect)
G   RTF_GATEWAY     Destination requires forwarding by intermediary
H   RTF_HOST    Host entry (net otherwise)
L   RTF_LLINFO  Valid protocol to link address translation
M   RTF_MODIFIED    Modified dynamically (by redirect)
R   RTF_REJECT  Host or net unreachable
S   RTF_STATIC  Manually added
U   RTF_UP  Route usable
W   RTF_WASCLONED   Route was generated as a result of cloning
X   RTF_XRESOLVE    External daemon translates proto to link address
Y   RTF_PROXY     Proxying; cloned routes will not be scoped

嗯,其中一些很容易理解,其他的对我来说比较晦涩......

有人能解释一下它们是什么意思吗?非常感谢

相关内容