>More to the point - isn't it horribly non-portable to be using >internal kernel headers/functions to be doing this user-space task? >Isn't there a better way of doing it? Yes. If ping6 wants those functions it should define them itself. They are not exactly rocket science, nor are they part of the kernel API. p.