Win32 API 日本語リファレンス
ホームNetworkManagement.WindowsFilteringPlatform › IPSEC_DOSP_STATISTICS0

IPSEC_DOSP_STATISTICS0

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

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

フィールド

フィールドサイズx64x86説明
totalStateEntriesCreatedULONGLONG8+0+0コンピューターが最後に起動されてから作成された状態エントリの総数です。
currentStateEntriesULONGLONG8+8+8テーブル内の現在の状態エントリ数です。
totalInboundAllowedIPv6IPsecUnauthPktsULONGLONG8+16+16コンピューターが最後に起動されてから許可された受信 IPv6 IPsec 未認証パケットの総数です。
totalInboundRatelimitDiscardedIPv6IPsecUnauthPktsULONGLONG8+24+24コンピューターが最後に起動されてから、レート制限により破棄された受信 IPv6 IPsec 未認証パケットの総数です。
totalInboundPerIPRatelimitDiscardedIPv6IPsecUnauthPktsULONGLONG8+32+32コンピューターが最後に起動されてから、内部 IP アドレスごとのレート制限により破棄された受信 IPv6 IPsec 未認証パケットの総数です。
totalInboundOtherDiscardedIPv6IPsecUnauthPktsULONGLONG8+40+40コンピューターが最後に起動されてから、その他すべての理由により破棄された受信 IPv6 IPsec 未認証パケットの総数です。
totalInboundAllowedIPv6IPsecAuthPktsULONGLONG8+48+48コンピューターが最後に起動されてから許可された受信 IPv6 IPsec 認証済みパケットの総数です。
totalInboundRatelimitDiscardedIPv6IPsecAuthPktsULONGLONG8+56+56コンピューターが最後に起動されてから、レート制限により破棄された受信 IPv6 IPsec 認証済みパケットの総数です。
totalInboundOtherDiscardedIPv6IPsecAuthPktsULONGLONG8+64+64コンピューターが最後に起動されてから、その他すべての理由により破棄された受信 IPv6 IPsec 認証済みパケットの総数です。
totalInboundAllowedICMPv6PktsULONGLONG8+72+72コンピューターが最後に起動されてから許可された受信 ICMPv6 パケットの総数です。
totalInboundRatelimitDiscardedICMPv6PktsULONGLONG8+80+80コンピューターが最後に起動されてから、レート制限により破棄された受信 ICMPv6 パケットの総数です。
totalInboundAllowedIPv6FilterExemptPktsULONGLONG8+88+88コンピューターが最後に起動されてから許可された、フィルター適用除外の受信 IPv6 パケットの総数です。
totalInboundRatelimitDiscardedIPv6FilterExemptPktsULONGLONG8+96+96コンピューターが最後に起動されてから、レート制限により破棄されたフィルター適用除外の受信 IPv6 パケットの総数です。
totalInboundDiscardedIPv6FilterBlockPktsULONGLONG8+104+104コンピューターが最後に起動されてから破棄された、フィルターによりブロックされた受信 IPv6 パケットの総数です。
totalInboundAllowedDefBlockExemptPktsULONGLONG8+112+112コンピューターが最後に起動されてから許可された、既定のブロックが適用除外された受信パケットの総数です。
totalInboundRatelimitDiscardedDefBlockExemptPktsULONGLONG8+120+120コンピューターが最後に起動されてから、レート制限により破棄された、既定のブロックが適用除外された受信パケットの総数です。
totalInboundDiscardedDefBlockPktsULONGLONG8+128+128コンピューターが最後に起動されてから破棄された、既定のブロック対象の受信パケットの総数です。
currentInboundIPv6IPsecUnauthPerIPRateLimitQueuesULONGLONG8+136+136受信 IPv6 未認証 IPsec トラフィックに対する、内部 IP アドレスごとのレート制限キューの現在の数です。

公式ドキュメント

IPSEC_DOSP_STATISTICS0 構造体は、IPsec DoS 保護の統計情報を格納するために使用されます。

解説(Remarks)

IPSEC_DOSP_STATISTICS0 は IPSEC_DOSP_STATISTICS の特定の実装です。詳細については、WFP Version-Independent Names and Targeting Specific Versions of Windows を参照してください。

出典・ライセンス: 上記「公式ドキュメント」の内容は Microsoft の Win32 API ドキュメント(MicrosoftDocs/sdk-api)を日本語に翻訳・改変したものです。© Microsoft Corporation. CC BY 4.0 で提供。
Microsoft 公式リファレンス: 英語 (en-us) · 日本語 (ja-jp) · 原文ソース (GitHub)

各言語での定義

#include <windows.h>

// IPSEC_DOSP_STATISTICS0  (x64 144 / x86 144 バイト)
typedef struct IPSEC_DOSP_STATISTICS0 {
    ULONGLONG totalStateEntriesCreated;
    ULONGLONG currentStateEntries;
    ULONGLONG totalInboundAllowedIPv6IPsecUnauthPkts;
    ULONGLONG totalInboundRatelimitDiscardedIPv6IPsecUnauthPkts;
    ULONGLONG totalInboundPerIPRatelimitDiscardedIPv6IPsecUnauthPkts;
    ULONGLONG totalInboundOtherDiscardedIPv6IPsecUnauthPkts;
    ULONGLONG totalInboundAllowedIPv6IPsecAuthPkts;
    ULONGLONG totalInboundRatelimitDiscardedIPv6IPsecAuthPkts;
    ULONGLONG totalInboundOtherDiscardedIPv6IPsecAuthPkts;
    ULONGLONG totalInboundAllowedICMPv6Pkts;
    ULONGLONG totalInboundRatelimitDiscardedICMPv6Pkts;
    ULONGLONG totalInboundAllowedIPv6FilterExemptPkts;
    ULONGLONG totalInboundRatelimitDiscardedIPv6FilterExemptPkts;
    ULONGLONG totalInboundDiscardedIPv6FilterBlockPkts;
    ULONGLONG totalInboundAllowedDefBlockExemptPkts;
    ULONGLONG totalInboundRatelimitDiscardedDefBlockExemptPkts;
    ULONGLONG totalInboundDiscardedDefBlockPkts;
    ULONGLONG currentInboundIPv6IPsecUnauthPerIPRateLimitQueues;
} IPSEC_DOSP_STATISTICS0;
using System;
using System.Runtime.InteropServices;

[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
public struct IPSEC_DOSP_STATISTICS0
{
    public ulong totalStateEntriesCreated;
    public ulong currentStateEntries;
    public ulong totalInboundAllowedIPv6IPsecUnauthPkts;
    public ulong totalInboundRatelimitDiscardedIPv6IPsecUnauthPkts;
    public ulong totalInboundPerIPRatelimitDiscardedIPv6IPsecUnauthPkts;
    public ulong totalInboundOtherDiscardedIPv6IPsecUnauthPkts;
    public ulong totalInboundAllowedIPv6IPsecAuthPkts;
    public ulong totalInboundRatelimitDiscardedIPv6IPsecAuthPkts;
    public ulong totalInboundOtherDiscardedIPv6IPsecAuthPkts;
    public ulong totalInboundAllowedICMPv6Pkts;
    public ulong totalInboundRatelimitDiscardedICMPv6Pkts;
    public ulong totalInboundAllowedIPv6FilterExemptPkts;
    public ulong totalInboundRatelimitDiscardedIPv6FilterExemptPkts;
    public ulong totalInboundDiscardedIPv6FilterBlockPkts;
    public ulong totalInboundAllowedDefBlockExemptPkts;
    public ulong totalInboundRatelimitDiscardedDefBlockExemptPkts;
    public ulong totalInboundDiscardedDefBlockPkts;
    public ulong currentInboundIPv6IPsecUnauthPerIPRateLimitQueues;
}
Imports System.Runtime.InteropServices

<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Unicode)>
Public Structure IPSEC_DOSP_STATISTICS0
    Public totalStateEntriesCreated As ULong
    Public currentStateEntries As ULong
    Public totalInboundAllowedIPv6IPsecUnauthPkts As ULong
    Public totalInboundRatelimitDiscardedIPv6IPsecUnauthPkts As ULong
    Public totalInboundPerIPRatelimitDiscardedIPv6IPsecUnauthPkts As ULong
    Public totalInboundOtherDiscardedIPv6IPsecUnauthPkts As ULong
    Public totalInboundAllowedIPv6IPsecAuthPkts As ULong
    Public totalInboundRatelimitDiscardedIPv6IPsecAuthPkts As ULong
    Public totalInboundOtherDiscardedIPv6IPsecAuthPkts As ULong
    Public totalInboundAllowedICMPv6Pkts As ULong
    Public totalInboundRatelimitDiscardedICMPv6Pkts As ULong
    Public totalInboundAllowedIPv6FilterExemptPkts As ULong
    Public totalInboundRatelimitDiscardedIPv6FilterExemptPkts As ULong
    Public totalInboundDiscardedIPv6FilterBlockPkts As ULong
    Public totalInboundAllowedDefBlockExemptPkts As ULong
    Public totalInboundRatelimitDiscardedDefBlockExemptPkts As ULong
    Public totalInboundDiscardedDefBlockPkts As ULong
    Public currentInboundIPv6IPsecUnauthPerIPRateLimitQueues As ULong
End Structure
import ctypes
from ctypes import wintypes

class IPSEC_DOSP_STATISTICS0(ctypes.Structure):
    _fields_ = [
        ("totalStateEntriesCreated", ctypes.c_ulonglong),
        ("currentStateEntries", ctypes.c_ulonglong),
        ("totalInboundAllowedIPv6IPsecUnauthPkts", ctypes.c_ulonglong),
        ("totalInboundRatelimitDiscardedIPv6IPsecUnauthPkts", ctypes.c_ulonglong),
        ("totalInboundPerIPRatelimitDiscardedIPv6IPsecUnauthPkts", ctypes.c_ulonglong),
        ("totalInboundOtherDiscardedIPv6IPsecUnauthPkts", ctypes.c_ulonglong),
        ("totalInboundAllowedIPv6IPsecAuthPkts", ctypes.c_ulonglong),
        ("totalInboundRatelimitDiscardedIPv6IPsecAuthPkts", ctypes.c_ulonglong),
        ("totalInboundOtherDiscardedIPv6IPsecAuthPkts", ctypes.c_ulonglong),
        ("totalInboundAllowedICMPv6Pkts", ctypes.c_ulonglong),
        ("totalInboundRatelimitDiscardedICMPv6Pkts", ctypes.c_ulonglong),
        ("totalInboundAllowedIPv6FilterExemptPkts", ctypes.c_ulonglong),
        ("totalInboundRatelimitDiscardedIPv6FilterExemptPkts", ctypes.c_ulonglong),
        ("totalInboundDiscardedIPv6FilterBlockPkts", ctypes.c_ulonglong),
        ("totalInboundAllowedDefBlockExemptPkts", ctypes.c_ulonglong),
        ("totalInboundRatelimitDiscardedDefBlockExemptPkts", ctypes.c_ulonglong),
        ("totalInboundDiscardedDefBlockPkts", ctypes.c_ulonglong),
        ("currentInboundIPv6IPsecUnauthPerIPRateLimitQueues", ctypes.c_ulonglong),
    ]
#[repr(C)]
pub struct IPSEC_DOSP_STATISTICS0 {
    pub totalStateEntriesCreated: u64,
    pub currentStateEntries: u64,
    pub totalInboundAllowedIPv6IPsecUnauthPkts: u64,
    pub totalInboundRatelimitDiscardedIPv6IPsecUnauthPkts: u64,
    pub totalInboundPerIPRatelimitDiscardedIPv6IPsecUnauthPkts: u64,
    pub totalInboundOtherDiscardedIPv6IPsecUnauthPkts: u64,
    pub totalInboundAllowedIPv6IPsecAuthPkts: u64,
    pub totalInboundRatelimitDiscardedIPv6IPsecAuthPkts: u64,
    pub totalInboundOtherDiscardedIPv6IPsecAuthPkts: u64,
    pub totalInboundAllowedICMPv6Pkts: u64,
    pub totalInboundRatelimitDiscardedICMPv6Pkts: u64,
    pub totalInboundAllowedIPv6FilterExemptPkts: u64,
    pub totalInboundRatelimitDiscardedIPv6FilterExemptPkts: u64,
    pub totalInboundDiscardedIPv6FilterBlockPkts: u64,
    pub totalInboundAllowedDefBlockExemptPkts: u64,
    pub totalInboundRatelimitDiscardedDefBlockExemptPkts: u64,
    pub totalInboundDiscardedDefBlockPkts: u64,
    pub currentInboundIPv6IPsecUnauthPerIPRateLimitQueues: u64,
}
import "golang.org/x/sys/windows"

type IPSEC_DOSP_STATISTICS0 struct {
	totalStateEntriesCreated uint64
	currentStateEntries uint64
	totalInboundAllowedIPv6IPsecUnauthPkts uint64
	totalInboundRatelimitDiscardedIPv6IPsecUnauthPkts uint64
	totalInboundPerIPRatelimitDiscardedIPv6IPsecUnauthPkts uint64
	totalInboundOtherDiscardedIPv6IPsecUnauthPkts uint64
	totalInboundAllowedIPv6IPsecAuthPkts uint64
	totalInboundRatelimitDiscardedIPv6IPsecAuthPkts uint64
	totalInboundOtherDiscardedIPv6IPsecAuthPkts uint64
	totalInboundAllowedICMPv6Pkts uint64
	totalInboundRatelimitDiscardedICMPv6Pkts uint64
	totalInboundAllowedIPv6FilterExemptPkts uint64
	totalInboundRatelimitDiscardedIPv6FilterExemptPkts uint64
	totalInboundDiscardedIPv6FilterBlockPkts uint64
	totalInboundAllowedDefBlockExemptPkts uint64
	totalInboundRatelimitDiscardedDefBlockExemptPkts uint64
	totalInboundDiscardedDefBlockPkts uint64
	currentInboundIPv6IPsecUnauthPerIPRateLimitQueues uint64
}
type
  IPSEC_DOSP_STATISTICS0 = record
    totalStateEntriesCreated: UInt64;
    currentStateEntries: UInt64;
    totalInboundAllowedIPv6IPsecUnauthPkts: UInt64;
    totalInboundRatelimitDiscardedIPv6IPsecUnauthPkts: UInt64;
    totalInboundPerIPRatelimitDiscardedIPv6IPsecUnauthPkts: UInt64;
    totalInboundOtherDiscardedIPv6IPsecUnauthPkts: UInt64;
    totalInboundAllowedIPv6IPsecAuthPkts: UInt64;
    totalInboundRatelimitDiscardedIPv6IPsecAuthPkts: UInt64;
    totalInboundOtherDiscardedIPv6IPsecAuthPkts: UInt64;
    totalInboundAllowedICMPv6Pkts: UInt64;
    totalInboundRatelimitDiscardedICMPv6Pkts: UInt64;
    totalInboundAllowedIPv6FilterExemptPkts: UInt64;
    totalInboundRatelimitDiscardedIPv6FilterExemptPkts: UInt64;
    totalInboundDiscardedIPv6FilterBlockPkts: UInt64;
    totalInboundAllowedDefBlockExemptPkts: UInt64;
    totalInboundRatelimitDiscardedDefBlockExemptPkts: UInt64;
    totalInboundDiscardedDefBlockPkts: UInt64;
    currentInboundIPv6IPsecUnauthPerIPRateLimitQueues: UInt64;
  end;
const IPSEC_DOSP_STATISTICS0 = extern struct {
    totalStateEntriesCreated: u64,
    currentStateEntries: u64,
    totalInboundAllowedIPv6IPsecUnauthPkts: u64,
    totalInboundRatelimitDiscardedIPv6IPsecUnauthPkts: u64,
    totalInboundPerIPRatelimitDiscardedIPv6IPsecUnauthPkts: u64,
    totalInboundOtherDiscardedIPv6IPsecUnauthPkts: u64,
    totalInboundAllowedIPv6IPsecAuthPkts: u64,
    totalInboundRatelimitDiscardedIPv6IPsecAuthPkts: u64,
    totalInboundOtherDiscardedIPv6IPsecAuthPkts: u64,
    totalInboundAllowedICMPv6Pkts: u64,
    totalInboundRatelimitDiscardedICMPv6Pkts: u64,
    totalInboundAllowedIPv6FilterExemptPkts: u64,
    totalInboundRatelimitDiscardedIPv6FilterExemptPkts: u64,
    totalInboundDiscardedIPv6FilterBlockPkts: u64,
    totalInboundAllowedDefBlockExemptPkts: u64,
    totalInboundRatelimitDiscardedDefBlockExemptPkts: u64,
    totalInboundDiscardedDefBlockPkts: u64,
    currentInboundIPv6IPsecUnauthPerIPRateLimitQueues: u64,
};
type
  IPSEC_DOSP_STATISTICS0 {.bycopy.} = object
    totalStateEntriesCreated: uint64
    currentStateEntries: uint64
    totalInboundAllowedIPv6IPsecUnauthPkts: uint64
    totalInboundRatelimitDiscardedIPv6IPsecUnauthPkts: uint64
    totalInboundPerIPRatelimitDiscardedIPv6IPsecUnauthPkts: uint64
    totalInboundOtherDiscardedIPv6IPsecUnauthPkts: uint64
    totalInboundAllowedIPv6IPsecAuthPkts: uint64
    totalInboundRatelimitDiscardedIPv6IPsecAuthPkts: uint64
    totalInboundOtherDiscardedIPv6IPsecAuthPkts: uint64
    totalInboundAllowedICMPv6Pkts: uint64
    totalInboundRatelimitDiscardedICMPv6Pkts: uint64
    totalInboundAllowedIPv6FilterExemptPkts: uint64
    totalInboundRatelimitDiscardedIPv6FilterExemptPkts: uint64
    totalInboundDiscardedIPv6FilterBlockPkts: uint64
    totalInboundAllowedDefBlockExemptPkts: uint64
    totalInboundRatelimitDiscardedDefBlockExemptPkts: uint64
    totalInboundDiscardedDefBlockPkts: uint64
    currentInboundIPv6IPsecUnauthPerIPRateLimitQueues: uint64
struct IPSEC_DOSP_STATISTICS0
{
    ulong totalStateEntriesCreated;
    ulong currentStateEntries;
    ulong totalInboundAllowedIPv6IPsecUnauthPkts;
    ulong totalInboundRatelimitDiscardedIPv6IPsecUnauthPkts;
    ulong totalInboundPerIPRatelimitDiscardedIPv6IPsecUnauthPkts;
    ulong totalInboundOtherDiscardedIPv6IPsecUnauthPkts;
    ulong totalInboundAllowedIPv6IPsecAuthPkts;
    ulong totalInboundRatelimitDiscardedIPv6IPsecAuthPkts;
    ulong totalInboundOtherDiscardedIPv6IPsecAuthPkts;
    ulong totalInboundAllowedICMPv6Pkts;
    ulong totalInboundRatelimitDiscardedICMPv6Pkts;
    ulong totalInboundAllowedIPv6FilterExemptPkts;
    ulong totalInboundRatelimitDiscardedIPv6FilterExemptPkts;
    ulong totalInboundDiscardedIPv6FilterBlockPkts;
    ulong totalInboundAllowedDefBlockExemptPkts;
    ulong totalInboundRatelimitDiscardedDefBlockExemptPkts;
    ulong totalInboundDiscardedDefBlockPkts;
    ulong currentInboundIPv6IPsecUnauthPerIPRateLimitQueues;
}

HSP用 定義

HSP3.7/3.8 は構造体機能が無いため4byte整数配列(dim)+peek/poke で操作(32/64bitでサイズ・位置が異なる場合はタブで分割)。IronHSP は NSTRUCT(#defstruct/stdim/->)で32/64bit共通。

; HSP3.7/3.8 は構造体機能が無いため、4byte整数の配列変数で操作します。(x64 レイアウト)
; IPSEC_DOSP_STATISTICS0 サイズ: 144 バイト(x64)
dim st, 36    ; 4byte整数×36(構造体サイズ 144 / 4 切り上げ)
; totalStateEntriesCreated : ULONGLONG (+0, 8byte)  qpoke st,0,値 / qpeek(st,0)  ※IronHSPのみ。3.7/3.8は lpoke st,0,下位 : lpoke st,4,上位
; currentStateEntries : ULONGLONG (+8, 8byte)  qpoke st,8,値 / qpeek(st,8)  ※IronHSPのみ。3.7/3.8は lpoke st,8,下位 : lpoke st,12,上位
; totalInboundAllowedIPv6IPsecUnauthPkts : ULONGLONG (+16, 8byte)  qpoke st,16,値 / qpeek(st,16)  ※IronHSPのみ。3.7/3.8は lpoke st,16,下位 : lpoke st,20,上位
; totalInboundRatelimitDiscardedIPv6IPsecUnauthPkts : ULONGLONG (+24, 8byte)  qpoke st,24,値 / qpeek(st,24)  ※IronHSPのみ。3.7/3.8は lpoke st,24,下位 : lpoke st,28,上位
; totalInboundPerIPRatelimitDiscardedIPv6IPsecUnauthPkts : ULONGLONG (+32, 8byte)  qpoke st,32,値 / qpeek(st,32)  ※IronHSPのみ。3.7/3.8は lpoke st,32,下位 : lpoke st,36,上位
; totalInboundOtherDiscardedIPv6IPsecUnauthPkts : ULONGLONG (+40, 8byte)  qpoke st,40,値 / qpeek(st,40)  ※IronHSPのみ。3.7/3.8は lpoke st,40,下位 : lpoke st,44,上位
; totalInboundAllowedIPv6IPsecAuthPkts : ULONGLONG (+48, 8byte)  qpoke st,48,値 / qpeek(st,48)  ※IronHSPのみ。3.7/3.8は lpoke st,48,下位 : lpoke st,52,上位
; totalInboundRatelimitDiscardedIPv6IPsecAuthPkts : ULONGLONG (+56, 8byte)  qpoke st,56,値 / qpeek(st,56)  ※IronHSPのみ。3.7/3.8は lpoke st,56,下位 : lpoke st,60,上位
; totalInboundOtherDiscardedIPv6IPsecAuthPkts : ULONGLONG (+64, 8byte)  qpoke st,64,値 / qpeek(st,64)  ※IronHSPのみ。3.7/3.8は lpoke st,64,下位 : lpoke st,68,上位
; totalInboundAllowedICMPv6Pkts : ULONGLONG (+72, 8byte)  qpoke st,72,値 / qpeek(st,72)  ※IronHSPのみ。3.7/3.8は lpoke st,72,下位 : lpoke st,76,上位
; totalInboundRatelimitDiscardedICMPv6Pkts : ULONGLONG (+80, 8byte)  qpoke st,80,値 / qpeek(st,80)  ※IronHSPのみ。3.7/3.8は lpoke st,80,下位 : lpoke st,84,上位
; totalInboundAllowedIPv6FilterExemptPkts : ULONGLONG (+88, 8byte)  qpoke st,88,値 / qpeek(st,88)  ※IronHSPのみ。3.7/3.8は lpoke st,88,下位 : lpoke st,92,上位
; totalInboundRatelimitDiscardedIPv6FilterExemptPkts : ULONGLONG (+96, 8byte)  qpoke st,96,値 / qpeek(st,96)  ※IronHSPのみ。3.7/3.8は lpoke st,96,下位 : lpoke st,100,上位
; totalInboundDiscardedIPv6FilterBlockPkts : ULONGLONG (+104, 8byte)  qpoke st,104,値 / qpeek(st,104)  ※IronHSPのみ。3.7/3.8は lpoke st,104,下位 : lpoke st,108,上位
; totalInboundAllowedDefBlockExemptPkts : ULONGLONG (+112, 8byte)  qpoke st,112,値 / qpeek(st,112)  ※IronHSPのみ。3.7/3.8は lpoke st,112,下位 : lpoke st,116,上位
; totalInboundRatelimitDiscardedDefBlockExemptPkts : ULONGLONG (+120, 8byte)  qpoke st,120,値 / qpeek(st,120)  ※IronHSPのみ。3.7/3.8は lpoke st,120,下位 : lpoke st,124,上位
; totalInboundDiscardedDefBlockPkts : ULONGLONG (+128, 8byte)  qpoke st,128,値 / qpeek(st,128)  ※IronHSPのみ。3.7/3.8は lpoke st,128,下位 : lpoke st,132,上位
; currentInboundIPv6IPsecUnauthPerIPRateLimitQueues : ULONGLONG (+136, 8byte)  qpoke st,136,値 / qpeek(st,136)  ※IronHSPのみ。3.7/3.8は lpoke st,136,下位 : lpoke st,140,上位
; ※4byte境界の整数は添字 st.N(N=オフセット/4)で読み書き可。それ以外は peek/poke 系を使用。
; IronHSP は NSTRUCT(構造体)をサポート。32bit/64bit どちらでも同じコードで動作します。
#defstruct global IPSEC_DOSP_STATISTICS0
    #field int64 totalStateEntriesCreated
    #field int64 currentStateEntries
    #field int64 totalInboundAllowedIPv6IPsecUnauthPkts
    #field int64 totalInboundRatelimitDiscardedIPv6IPsecUnauthPkts
    #field int64 totalInboundPerIPRatelimitDiscardedIPv6IPsecUnauthPkts
    #field int64 totalInboundOtherDiscardedIPv6IPsecUnauthPkts
    #field int64 totalInboundAllowedIPv6IPsecAuthPkts
    #field int64 totalInboundRatelimitDiscardedIPv6IPsecAuthPkts
    #field int64 totalInboundOtherDiscardedIPv6IPsecAuthPkts
    #field int64 totalInboundAllowedICMPv6Pkts
    #field int64 totalInboundRatelimitDiscardedICMPv6Pkts
    #field int64 totalInboundAllowedIPv6FilterExemptPkts
    #field int64 totalInboundRatelimitDiscardedIPv6FilterExemptPkts
    #field int64 totalInboundDiscardedIPv6FilterBlockPkts
    #field int64 totalInboundAllowedDefBlockExemptPkts
    #field int64 totalInboundRatelimitDiscardedDefBlockExemptPkts
    #field int64 totalInboundDiscardedDefBlockPkts
    #field int64 currentInboundIPv6IPsecUnauthPerIPRateLimitQueues
#endstruct

stdim st, IPSEC_DOSP_STATISTICS0        ; NSTRUCT 変数を確保
st->totalStateEntriesCreated = 100
mes "totalStateEntriesCreated=" + st->totalStateEntriesCreated