Skip to content

Conversation

@DaivikDave
Copy link

No description provided.

return st_xid->ip_addr && st_xid->udp_port && !st_xid->zero1;
}

/* XXX Add ability to determine when an IP
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this is a TODO, you need to prefix the statement with TODO.

struct socket __rcu *tunnel_sock;

/* Anchor for ill-formed U6ID XIDs. */
struct xip_dst_anchor ill_anchor;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where is ill_anchor being used in the code except when entries are added to it?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is used to store xid's that doesn't represent a well formed u6id xid i.e 16 bytes of ip address, 2 bytes port number and 2 bytes padded with zeroes. The anchor is freed in net_exit , before the module is unloaded.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants