landhb / DrawBridge

Layer 4 Single Packet Authentication Linux kernel module utilizing Netfilter hooks and kernel supported Berkeley Packet Filters (BPF)
GNU General Public License v3.0
112 stars 23 forks source link

Use kernel ipv6_addr_cmp function #42

Closed cppcoffee closed 1 year ago

cppcoffee commented 1 year ago

Use the ipv6_addr_cmp function in the kernel header file.

https://elixir.bootlin.com/linux/latest/source/include/net/ipv6.h#L583

The variable address is present and can be safely called

landhb commented 1 year ago

Thanks @cppcoffee !