You could look at the ip(8) command source to find out how it is done, /sbin/ip or /bin/ip is part of the iproute package on Red Hat and Debian based Linux distributions. Latest version of pptp has a hack that uses system(3) to execute ip(8). If you can figure a way to do this without using system(3) then I'm quite interested. -- James Cameron http://quozl.netrek.org/ HP Open Source, Volunteer http://opensource.hp.com/ PPTP Client Project, Release Engineer http://pptpclient.sourceforge.net/ -- To unsubscribe from this list: send the line "unsubscribe linux-ppp" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html