Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] can not use DFR or DFR_LOCAL on functions with multiple protoype definitions #2

Open
0xShkk opened this issue Oct 15, 2024 · 0 comments

Comments

@0xShkk
Copy link

0xShkk commented Oct 15, 2024

Thank you for providing this new approach for BOF development. It really eases the dev speed and debugging capabilities.

Recently, I wanted to use getaddrinfo, described here. However, it is not possible to resolve the function address dynamically for this function.

Tried like

    DFR(WS2_32, getaddrinfo);
    #define getaddrinfo WS2_32$getaddrinfo

and

DFR_LOCAL(WS2_32, getaddrinfo);

both fails with an error, that VS does not find the function definition.

It is also the case for freeaddrinfo.

How could such functions be resolved with the new DFR macros. This should be the case for all functions inheriting multiple prototype definitions?

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

No branches or pull requests

1 participant