Logo

Linux 核心

6.16.0-rc4

快速搜尋

目錄

  • 開發流程
  • 提交補丁
  • 行為準則
  • 維護者手冊
  • 所有開發流程文件
  • 核心 API
  • 驅動程式 API
  • 子系統
    • 核心子系統
    • 人機介面
    • 網路介面
      • 網路
      • NetLabel
      • InfiniBand
      • ISDN
      • MHI
    • 儲存介面
    • 其他子系統
  • 鎖定
  • 許可規則
  • 編寫文件
  • 開發工具
  • 測試指南
  • Hacking 指南
  • 追蹤
  • 故障注入
  • Livepatching
  • Rust
  • 管理
  • 構建系統
  • 報告問題
  • 使用者空間工具
  • 使用者空間 API
  • 韌體
  • 韌體和裝置樹
  • CPU 架構
  • 未分類的文件
  • 翻譯

本頁

  • 顯示原始碼

Family conntrack netlink 規範¶

目錄

  • Family conntrack netlink 規範

    • 概要

    • 操作

      • get

      • get-stats

    • 定義

      • nfgenmsg

      • nf-ct-tcp-flags-mask

      • nf-ct-tcp-flags

      • nf-ct-tcp-state

      • nf-ct-sctp-state

      • nf-ct-status

    • 屬性集

      • counter-attrs

      • tuple-proto-attrs

      • tuple-ip-attrs

      • tuple-attrs

      • protoinfo-tcp-attrs

      • protoinfo-dccp-attrs

      • protoinfo-sctp-attrs

      • protoinfo-attrs

      • help-attrs

      • nat-proto-attrs

      • nat-attrs

      • seqadj-attrs

      • secctx-attrs

      • synproxy-attrs

      • conntrack-attrs

      • conntrack-stats-attrs

概要¶

基於 nfnetlink 的 Netfilter 連線跟蹤子系統

操作¶

get¶

獲取/轉儲條目

attribute-set:

conntrack-attrs

fixed-header:

nfgenmsg

do:
request
attributes:

[tuple-orig, tuple-reply, zone]

reply
attributes:

[tuple-orig, tuple-reply, status, protoinfo, help, nat-src, nat-dst, timeout, mark, counter-orig, counter-reply, use, id, nat-dst, tuple-master, seq-adj-orig, seq-adj-reply, zone, secctx, labels, synproxy]

dump:
request
attributes:

[nfgen-family, mark, filter, status, zone]

reply
attributes:

[tuple-orig, tuple-reply, status, protoinfo, help, nat-src, nat-dst, timeout, mark, counter-orig, counter-reply, use, id, nat-dst, tuple-master, seq-adj-orig, seq-adj-reply, zone, secctx, labels, synproxy]

get-stats¶

轉儲 pcpu conntrack 統計資訊

attribute-set:

conntrack-stats-attrs

fixed-header:

nfgenmsg

dump:

request

reply
attributes:

[searched, found, insert, insert-failed, drop, early-drop, error, search-restart, clash-resolve, chain-toolong]

定義¶

nfgenmsg¶

type:

struct

members:
nfgen-family (u8):

version (u8):

res-id (u16):

nf-ct-tcp-flags-mask¶

type:

struct

members:
flags (u8):

mask (u8):

nf-ct-tcp-flags¶

type:

flags

entries:
  • window-scale

  • sack-perm

  • close-init

  • be-liberal

  • unacked

  • maxack

  • challenge-ack

  • simultaneous-open

nf-ct-tcp-state¶

type:

enum

entries:
  • none

  • syn-sent

  • syn-recv

  • established

  • fin-wait

  • close-wait

  • last-ack

  • time-wait

  • close

  • syn-sent2

  • max

  • ignore

  • retrans

  • unack

  • timeout-max

nf-ct-sctp-state¶

type:

enum

entries:
  • none

  • cloned

  • cookie-wait

  • cookie-echoed

  • established

  • shutdown-sent

  • shutdown-received

  • shutdown-ack-sent

  • shutdown-heartbeat-sent

nf-ct-status¶

type:

flags

entries:
  • expected

  • seen-reply

  • assured

  • confirmed

  • src-nat

  • dst-nat

  • seq-adj

  • src-nat-done

  • dst-nat-done

  • dying

  • fixed-timeout

  • template

  • nat-clash

  • helper

  • offload

  • hw-offload

屬性集¶

counter-attrs¶

packets (u64)¶

byte-order:

big-endian

bytes (u64)¶

byte-order:

big-endian

packets-old (u32)¶

bytes-old (u32)¶

pad (pad)¶

tuple-proto-attrs¶

proto-num (u8)¶

doc:

l4 協議號

proto-src-port (u16)¶

byte-order:

big-endian

doc:

l4 源埠

proto-dst-port (u16)¶

byte-order:

big-endian

doc:

l4 源埠

proto-icmp-id (u16)¶

byte-order:

big-endian

doc:

l4 icmp id

proto-icmp-type (u8)¶

proto-icmp-code (u8)¶

proto-icmpv6-id (u16)¶

byte-order:

big-endian

doc:

l4 icmp id

proto-icmpv6-type (u8)¶

proto-icmpv6-code (u8)¶

tuple-ip-attrs¶

ip-v4-src (u32)¶

byte-order:

big-endian

display-hint:

ipv4

doc:

ipv4 源地址

ip-v4-dst (u32)¶

byte-order:

big-endian

display-hint:

ipv4

doc:

ipv4 目的地址

ip-v6-src (binary)¶

byte-order:

big-endian

display-hint:

ipv6

doc:

ipv6 源地址

ip-v6-dst (binary)¶

byte-order:

big-endian

display-hint:

ipv6

doc:

ipv6 目的地址

tuple-attrs¶

tuple-ip (nest)¶

nested-attributes:

tuple-ip-attrs

doc:

conntrack l3 資訊

tuple-proto (nest)¶

nested-attributes:

tuple-proto-attrs

doc:

conntrack l4 資訊

tuple-zone (u16)¶

byte-order:

big-endian

doc:

conntrack 區域 ID

protoinfo-tcp-attrs¶

tcp-state (u8)¶

enum:

nf-ct-tcp-state

doc:

tcp 連線狀態

tcp-wscale-original (u8)¶

doc:

原始方向的視窗縮放因子

tcp-wscale-reply (u8)¶

doc:

回覆方向的視窗縮放因子

tcp-flags-original (binary)¶

struct:

nf-ct-tcp-flags-mask

tcp-flags-reply (binary)¶

struct:

nf-ct-tcp-flags-mask

protoinfo-dccp-attrs¶

dccp-state (u8)¶

doc:

dccp 連線狀態

dccp-role (u8)¶

dccp-handshake-seq (u64)¶

byte-order:

big-endian

dccp-pad (pad)¶

protoinfo-sctp-attrs¶

sctp-state (u8)¶

doc:

sctp 連線狀態

enum:

nf-ct-sctp-state

vtag-original (u32)¶

byte-order:

big-endian

vtag-reply (u32)¶

byte-order:

big-endian

protoinfo-attrs¶

protoinfo-tcp (nest)¶

nested-attributes:

protoinfo-tcp-attrs

doc:

conntrack tcp 狀態資訊

protoinfo-dccp (nest)¶

nested-attributes:

protoinfo-dccp-attrs

doc:

conntrack dccp 狀態資訊

protoinfo-sctp (nest)¶

nested-attributes:

protoinfo-sctp-attrs

doc:

conntrack sctp 狀態資訊

help-attrs¶

help-name (string)¶

doc:

helper 名稱

nat-proto-attrs¶

nat-port-min (u16)¶

byte-order:

big-endian

nat-port-max (u16)¶

byte-order:

big-endian

nat-attrs¶

nat-v4-minip (u32)¶

byte-order:

big-endian

nat-v4-maxip (u32)¶

byte-order:

big-endian

nat-v6-minip (binary)¶

nat-v6-maxip (binary)¶

nat-proto (nest)¶

nested-attributes:

nat-proto-attrs

seqadj-attrs¶

correction-pos (u32)¶

byte-order:

big-endian

offset-before (u32)¶

byte-order:

big-endian

offset-after (u32)¶

byte-order:

big-endian

secctx-attrs¶

secctx-name (string)¶

synproxy-attrs¶

isn (u32)¶

byte-order:

big-endian

its (u32)¶

byte-order:

big-endian

tsoff (u32)¶

byte-order:

big-endian

conntrack-attrs¶

tuple-orig (nest)¶

nested-attributes:

tuple-attrs

doc:

conntrack l3+l4 協議資訊,原始方向

tuple-reply (nest)¶

nested-attributes:

tuple-attrs

doc:

conntrack l3+l4 協議資訊,回覆方向

status (u32)¶

byte-order:

big-endian

enum:

nf-ct-status

enum-as-flags:

True

doc:

conntrack 標誌位

protoinfo (nest)¶

nested-attributes:

protoinfo-attrs

help (nest)¶

nested-attributes:

help-attrs

nat-src (nest)¶

nested-attributes:

nat-attrs

timeout (u32)¶

byte-order:

big-endian

mark (u32)¶

byte-order:

big-endian

counters-orig (nest)¶

nested-attributes:

counter-attrs

counters-reply (nest)¶

nested-attributes:

counter-attrs

use (u32)¶

byte-order:

big-endian

id (u32)¶

byte-order:

big-endian

nat-dst (nest)¶

nested-attributes:

nat-attrs

tuple-master (nest)¶

nested-attributes:

tuple-attrs

seq-adj-orig (nest)¶

nested-attributes:

seqadj-attrs

seq-adj-reply (nest)¶

nested-attributes:

seqadj-attrs

secmark (binary)¶

doc:

已過時

zone (u16)¶

byte-order:

big-endian

doc:

conntrack 區域 ID

secctx (nest)¶

nested-attributes:

secctx-attrs

timestamp (u64)¶

byte-order:

big-endian

mark-mask (u32)¶

byte-order:

big-endian

labels (binary)¶

labels mask (binary)¶

synproxy (nest)¶

nested-attributes:

synproxy-attrs

filter (nest)¶

nested-attributes:

tuple-attrs

status-mask (u32)¶

byte-order:

big-endian

enum:

nf-ct-status

enum-as-flags:

True

doc:

要更改的 conntrack 標誌位

timestamp-event (u64)¶

byte-order:

big-endian

conntrack-stats-attrs¶

searched (u32)¶

byte-order:

big-endian

doc:

已過時

found (u32)¶

byte-order:

big-endian

new (u32)¶

byte-order:

big-endian

doc:

已過時

invalid (u32)¶

byte-order:

big-endian

doc:

已過時

ignore (u32)¶

byte-order:

big-endian

doc:

已過時

delete (u32)¶

byte-order:

big-endian

doc:

已過時

delete-list (u32)¶

byte-order:

big-endian

doc:

已過時

insert (u32)¶

byte-order:

big-endian

insert-failed (u32)¶

byte-order:

big-endian

drop (u32)¶

byte-order:

big-endian

early-drop (u32)¶

byte-order:

big-endian

error (u32)¶

byte-order:

big-endian

search-restart (u32)¶

byte-order:

big-endian

clash-resolve (u32)¶

byte-order:

big-endian

chain-toolong (u32)¶

byte-order:

big-endian

©The kernel development community. | Powered by Sphinx 5.3.0 & Alabaster 0.7.16 | Page source