Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
struct sock *udp4_lib_lookup(struct net *net, __be32 saddr, __be16 sport, __be32 daddr, __be16 dport, int dif)
这是函数声明,它将连接属性转换为struct sock. 正如我用谷歌搜索的那样,第一个参数应该是&init_net. 但是最后一个论点应该是什么?
struct sock
&init_net
dif参数是设备接口。
dif
标记我有该文本的位置 继续阅读 →