bp_getfile
if (bp_getfile(sock, "root", &rootip, rootpath)) {
if (bp_getfile(sock, "root", &rootip, rootpath)) {
if (bp_getfile(netdev_sock, "root", &rootip, rootpath))
if (bp_getfile(sock, "gateway", &gateip, buf)) {
if (bp_getfile(sock, "root", &rootip, rootpath)) {
if (bp_getfile(sock, "gateway", &gateip, buf) == 0) {
if (bp_getfile(sock, "root", &rootip, rootpath)) {
if (bp_getfile(netdev_sock, "root", &rootip, rootpath))
if (bp_getfile(netdev_sock, "root", &rootip, rootpath))
if (bp_getfile(netdev_sock, "root", &rootip, rootpath))
if (bp_getfile(0, "root", &rootip, rootpath))
int bp_getfile(int, char *, struct in_addr *, char *);
if (bp_getfile(sock, "gateway", &gateip, buf)) {
if (bp_getfile(sock, "root", &rootip, rootpath)) {
error = bp_getfile(sin, "root", &nd->nd_root, lwp);
error = bp_getfile(sin, "gateway", gw_ndm, lwp);
static int bp_getfile (struct sockaddr_in *bpsin, const char *key,