Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\test_bpf.c Create Date:2022-07-28 06:27:59
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:build_test_skb_linear_no_head_frag

Proto:static __init struct sk_buff *build_test_skb_linear_no_head_frag(void)

Type:struct sk_buff

Parameter:Nothing

6864  alloc_size = 2000
6865  headroom = 102 , doffset = 72 , data_size = 1308
6874  When i < 2 cycle
6875  skb[i] = allocate a network buffer
6876  If Not skb[i] Then
6877  If i == 0 Then Go to err_skb0
6879  Else Go to err_skb1
6883  protocol = htons(IPv6 over bluebook )
6884  skb_reserve - adjust headroom*@skb: buffer to alter*@len: bytes to move* Increase the headroom of an empty &sk_buff by reducing the tail* room. This is only allowed for an empty buffer.
6885  add data to a buffer
6886  skb_reset_network_header(skb[i])
6887  If i == 0 Then skb_reset_mac_header(skb[i])
6889  Else skb_set_mac_header(skb[i], - Total octets in header. )
6891  __skb_pull(skb[i], doffset)
6898  gso_size = 1288
6899  gso_type = SKB_GSO_TCPV6 | SKB_GSO_DODGY
6900  Warning: this field is not always filled in (UFO)! = 0
6901  frag_list = skb[1]
6904  len += len
6905  data_len += len
6906  truesize += truesize
6908  Return skb[0]
6910  err_skb1 :
6911  free an sk_buff
6912  err_skb0 :
6913  Return NULL