KAction
KAction

Reputation: 2017

Linux kernel udp lookup

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?

Upvotes: 4

Views: 245

Answers (1)

Claudi
Claudi

Reputation: 5416

The dif argument is the device interface.

Upvotes: 3

Related Questions