'inet_ntop' in IOKit based kext

Hello.

I am developing a network kernel extension and would like to use 'inet_ntop' function in my code.

But once I try to load my kext, the system writes me a message that says that the symbol 'inet_ntop' is unresolved.

My kext is IOKit based. If I use a generic kext template, kext loads successfully.

Is it possible to use 'inet_ntop' function in IOkit based kexts?

What other symbols have the same problem?

Accepted Reply

inet_ntop
is published via the
com.apple.kpi.libkern
KPI.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

Replies

I found 'inet_ntop' implementation in the xnu sources. But, If I add this implementation to my IOKit based kext, kextutil says me that 'inet_ntop' defined more than once.

inet_ntop
is published via the
com.apple.kpi.libkern
KPI.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"