struct sock *udp4_lib_lookup(struct net *net, __be32 saddr, __be16 sport,
__be32 daddr, __be16 dport, int dif)
Here is declaration of function, that converts connection attributes to struct sock
. As I googled, first argument should be &init_net
. But what should be last argument?
dif
参数是设备接口。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.