Win32 API 日本語リファレンス
ホームNetworking.WinSock › IPV4_HEADER

IPV4_HEADER

構造体
サイズx64: 56 バイト / x86: 28 バイト

サイズ=各フィールドのバイト数(x64/x86 で異なる場合は x64/x86 と併記)。x64/x86 列=フィールドのバイトオフセット(HSPで dupptr / lpoke / wpoke 等に使用)。

フィールド

フィールドサイズx64x86
Anonymous1_Anonymous1_e__Union8/4+0+0
Anonymous2_Anonymous2_e__Union8/4+8+4
TotalLengthWORD2+16+8
IdentificationWORD2+18+10
Anonymous3_Anonymous3_e__Union8/4+24+12
TimeToLiveBYTE1+32+16
ProtocolBYTE1+33+17
HeaderChecksumWORD2+34+18
SourceAddressIN_ADDR8/4+40+20
DestinationAddressIN_ADDR8/4+48+24

共用体: _Anonymous1_e__Union x64 8B / x86 4B

フィールドサイズx64x86
VersionAndHeaderLengthBYTE1+0+0
Anonymous_Anonymous_e__Struct8/4+0+0

共用体: _Anonymous2_e__Union x64 8B / x86 4B

フィールドサイズx64x86
TypeOfServiceAndEcnFieldBYTE1+0+0
Anonymous_Anonymous_e__Struct8/4+0+0

共用体: _Anonymous3_e__Union x64 8B / x86 4B

フィールドサイズx64x86
FlagsAndOffsetWORD2+0+0
Anonymous_Anonymous_e__Struct8/4+0+0