Changeset a676574 in mainline for uspace/srv/net/nil/eth/eth.c
- Timestamp:
- 2011-01-09T12:18:00Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 54de5ebd
- Parents:
- a3eeef45 (diff), 9d12059 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/nil/eth/eth.c
ra3eeef45 ra676574 201 201 202 202 eth_globals.broadcast_addr = 203 measured_string_create_bulk( "\xFF\xFF\xFF\xFF\xFF\xFF", ETH_ADDR);203 measured_string_create_bulk((uint8_t *) "\xFF\xFF\xFF\xFF\xFF\xFF", ETH_ADDR); 204 204 if (!eth_globals.broadcast_addr) { 205 205 rc = ENOMEM; … … 284 284 measured_string_t names[2] = { 285 285 { 286 ( char*) "ETH_MODE",286 (uint8_t *) "ETH_MODE", 287 287 8 288 288 }, 289 289 { 290 ( char*) "ETH_DUMMY",290 (uint8_t *) "ETH_DUMMY", 291 291 9 292 292 } … … 294 294 measured_string_t *configuration; 295 295 size_t count = sizeof(names) / sizeof(measured_string_t); 296 char*data;296 uint8_t *data; 297 297 eth_proto_t *proto; 298 298 int rc; … … 358 358 359 359 if (configuration) { 360 if (!str_lcmp( configuration[0].value, "DIX",360 if (!str_lcmp((char *) configuration[0].value, "DIX", 361 361 configuration[0].length)) { 362 362 device->flags |= ETH_DIX; 363 } else if(!str_lcmp( configuration[0].value, "8023_2_LSAP",363 } else if(!str_lcmp((char *) configuration[0].value, "8023_2_LSAP", 364 364 configuration[0].length)) { 365 365 device->flags |= ETH_8023_2_LSAP; … … 407 407 408 408 printf("%s: Device registered (id: %d, service: %d: mtu: %zu, " 409 "mac: % x:%x:%x:%x:%x:%x, flags: 0x%x)\n",409 "mac: %02x:%02x:%02x:%02x:%02x:%02x, flags: 0x%x)\n", 410 410 NAME, device->device_id, device->service, device->mtu, 411 411 device->addr_data[0], device->addr_data[1],
Note:
See TracChangeset
for help on using the changeset viewer.