tag | line | file | source code |
ipc | 940 | net/inet/dev.c | } ipc; |
ipc | 947 | net/inet/dev.c | verify_area (VERIFY_WRITE, arg, sizeof (ipc)); |
ipc | 948 | net/inet/dev.c | memcpy_fromfs(&ipc, arg, sizeof (ipc)); |
ipc | 949 | net/inet/dev.c | ipc.name[MAX_IP_NAME-1] = 0; |
ipc | 950 | net/inet/dev.c | loopback = (strcmp(ipc.name, "loopback") == 0); |
ipc | 951 | net/inet/dev.c | dev = dev_get( loopback ? "lo" : ipc.name); |
ipc | 954 | net/inet/dev.c | ipc.destroy = 0; |
ipc | 955 | net/inet/dev.c | dev->pa_addr = ipc.paddr; |
ipc | 959 | net/inet/dev.c | if (ipc.net != 0xffffffff) { |
ipc | 961 | net/inet/dev.c | dev->pa_brdaddr = ipc.net; |
ipc | 965 | net/inet/dev.c | if (ipc.up == 0) |
ipc | 972 | net/inet/dev.c | htonl(ipc.paddr)); |
ipc | 973 | net/inet/dev.c | rt_add(RTF_HOST, ipc.paddr, 0, dev); |
ipc | 974 | net/inet/dev.c | if (ipc.router != 0 && ipc.router != -1) { |
ipc | 975 | net/inet/dev.c | rt_add(RTF_GATEWAY, ipc.paddr, ipc.router, dev); |
ipc | 977 | net/inet/dev.c | dev->name, htonl(ipc.paddr)); |