AIRobot

AIRobot quick note


  • 首页

  • 关于

  • 标签

  • 分类

  • 归档

  • 搜索

sk_buff

发表于 2020-02-27 分类于 Linux
本文字数: 2.2k 阅读时长 ≈ 2 分钟

kernel 2.6

  • struct sk_buff - socket buffer
  • @next: Next buffer in list
  • @prev: Previous buffer in list
  • @sk: Socket we are owned by
  • @tstamp: Time we arrived
  • @dev: Device we arrived on/are leaving by
  • @transport_header: Transport layer header
  • @network_header: Network layer header
  • @mac_header: Link layer header
  • @dst: destination entry
  • @sp: the security path, used for xfrm
  • @cb: Control buffer. Free for use by every layer. Put private vars here
  • @len: Length of actual data
  • @data_len: Data length
  • @mac_len: Length of link layer header
  • @hdr_len: writable header length of cloned skb
  • @csum: Checksum (must include start/offset pair)
  • @csum_start: Offset from skb->head where checksumming should start
  • @csum_offset: Offset from csum_start where checksum should be stored
  • @local_df: allow local fragmentation
  • @cloned: Head may be cloned (check refcnt to be sure)
  • @nohdr: Payload reference only, must not modify header
  • @pkt_type: Packet class
  • @fclone: skbuff clone status
  • @ip_summed: Driver fed us an IP checksum
  • @priority: Packet queueing priority
  • @users: User count - see {datagram,tcp}.c
  • @protocol: Packet protocol from driver
  • @truesize: Buffer size
  • @head: Head of buffer
  • @data: Data head pointer
  • @tail: Tail pointer
  • @end: End pointer
  • @destructor: Destruct function
  • @mark: Generic packet mark
  • @nfct: Associated connection, if any
  • @ipvs_property: skbuff is owned by ipvs
  • @peeked: this packet has been seen already, so stats have been
  • done for it, don’t do them again
  • @nf_trace: netfilter packet trace flag
  • @nfctinfo: Relationship of this skb to the connection
  • @nfct_reasm: netfilter conntrack re-assembly pointer
  • @nf_bridge: Saved data about a bridged frame - see br_netfilter.c
  • @iif: ifindex of device we arrived on
  • @queue_mapping: Queue mapping for multiqueue devices
  • @tc_index: Traffic control index
  • @tc_verd: traffic control verdict
  • @ndisc_nodetype: router type (from link layer)
  • @do_not_encrypt: set to prevent encryption of this frame
  • @requeue: set to indicate that the wireless core should attempt
  • a software retry on this frame if we failed to
  • receive an ACK for it
  • @dma_cookie: a cookie to one of several possible DMA operations
  • done by skb DMA functions
  • @secmark: security marking
  • @vlan_tci: vlan tag control information
# Linux
Linux内核协议栈工作流程-ixgbe网卡驱动
RPS/RFS实现原理浅析
AIRobot

AIRobot

AIRobot quick note
130 日志
15 分类
23 标签
GitHub E-Mail
Creative Commons
0%
© 2023 AIRobot | 716k | 10:51