linux kernel - exporting gre modules function -
i writing netfilter hook func hooks @ inet_pre_routing. inside hook function want access ipgre_tunnel_locate()defined in ip_gre.c static. on viewing /proc/kallsyms ipgre_tunnel_locate() listed follows:
ffffffffa03acb30 t ipgre_tunnel_locate [ip_gre] the second column in above implies function local , unexported. can export function using export_symbol(ipgre_tunnel_locate) in ip_gre.c so can use in netfilter prerouting hook function??? `
is there strong reason why function not exported in kernel default ??
you can export function, module able run patched kernel only.
i think, reason not exported simple: not part of external interface. example, since 3.10 version of kernel, there no ipgre_tunnel_locate().
i should again exporting symbols because need them not reliable technique.
Comments
Post a Comment