Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\net\tcp.h Create Date:2022-07-28 06:43:08
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Save and compile IPv4 options, return a pointer to it

Proto:static inline struct ip_options_rcu *tcp_v4_save_options(struct net *net, struct sk_buff *skb)

Type:struct ip_options_rcu

Parameter:

TypeParameterName
struct net *net
struct sk_buff *skb
2055  opt = opt
2056  struct ip_options_rcu * dopt = NULL
2058  If optlen Then
2059  opt_size = size of dopt + optlen
2061  dopt = kmalloc(opt_size, DOC: Useful GFP flag combinations* Useful GFP flag combinations* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~* Useful GFP flag combinations that are commonly used. It is recommended* that subsystems start with one of these combinations and then set/clear)
2062  If dopt && __ip_options_echo(net, & opt, skb, opt) Then
2063  kfree(dopt)
2064  dopt = NULL
2067  Return dopt