Changeset 00d7e1b in mainline for uspace/srv/net/il/ip
- Timestamp:
- 2011-10-07T20:20:33Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 49bd793b
- Parents:
- e2c50e1
- File:
-
- 1 edited
-
uspace/srv/net/il/ip/ip.c (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/il/ip/ip.c
re2c50e1 r00d7e1b 354 354 ip_netif->routing = NET_DEFAULT_IP_ROUTING; 355 355 configuration = &names[0]; 356 356 357 357 /* Get configuration */ 358 358 rc = net_get_device_conf_req(ip_globals.net_sess, ip_netif->device_id, … … 406 406 return ENOTSUP; 407 407 } 408 408 409 409 if (configuration[6].value) { 410 410 ip_netif->arp = get_running_module(&ip_globals.modules, … … 417 417 } 418 418 } 419 419 420 if (configuration[7].value) 420 421 ip_netif->routing = (configuration[7].value[0] == 'y'); 421 422 422 423 net_free_settings(configuration, data); 423 424 } 424 425 425 426 /* Bind netif service which also initializes the device */ 426 427 ip_netif->sess = nil_bind_service(ip_netif->service, … … 432 433 return ENOENT; 433 434 } 434 435 435 436 /* Has to be after the device netif module initialization */ 436 437 if (ip_netif->arp) { … … 448 449 } 449 450 } 450 451 451 452 /* Get packet dimensions */ 452 453 rc = nil_packet_size_req(ip_netif->sess, ip_netif->device_id, … … 461 462 ip_netif->packet_dimension.content = IP_MIN_CONTENT; 462 463 } 463 464 464 465 index = ip_netifs_add(&ip_globals.netifs, ip_netif->device_id, ip_netif); 465 466 if (index < 0) … … 478 479 printf("%s: Default gateway (%s)\n", NAME, defgateway); 479 480 } 480 481 481 482 return EOK; 482 483 } … … 498 499 return rc; 499 500 } 500 501 501 502 ip_netif->device_id = device_id; 502 503 ip_netif->service = netif; 503 504 ip_netif->state = NIC_STATE_STOPPED; 504 505 505 506 fibril_rwlock_write_lock(&ip_globals.netifs_lock); 506 507
Note:
See TracChangeset
for help on using the changeset viewer.
