taglinefilesource code
ipc940net/inet/dev.c} ipc;
ipc947net/inet/dev.cverify_area (VERIFY_WRITE, arg, sizeof (ipc));
ipc948net/inet/dev.cmemcpy_fromfs(&ipc, arg, sizeof (ipc));
ipc949net/inet/dev.cipc.name[MAX_IP_NAME-1] = 0;
ipc950net/inet/dev.cloopback = (strcmp(ipc.name, "loopback") == 0);
ipc951net/inet/dev.cdev = dev_get( loopback ? "lo" : ipc.name);
ipc954net/inet/dev.cipc.destroy = 0;
ipc955net/inet/dev.cdev->pa_addr = ipc.paddr;
ipc959net/inet/dev.cif (ipc.net != 0xffffffff) {
ipc961net/inet/dev.cdev->pa_brdaddr = ipc.net;
ipc965net/inet/dev.cif (ipc.up == 0)
ipc972net/inet/dev.chtonl(ipc.paddr));
ipc973net/inet/dev.crt_add(RTF_HOST, ipc.paddr, 0, dev);
ipc974net/inet/dev.cif (ipc.router != 0 && ipc.router != -1) {
ipc975net/inet/dev.crt_add(RTF_GATEWAY, ipc.paddr, ipc.router, dev);
ipc977net/inet/dev.cdev->name, htonl(ipc.paddr));