Ver código fonte

Force MAC address for testing purposes

tags/v0.9.3
Michael Brown 18 anos atrás
pai
commit
74a49af4ab
1 arquivos alterados com 4 adições e 0 exclusões
  1. 4
    0
      src/drivers/net/mlx_ipoib/mt25218.c

+ 4
- 0
src/drivers/net/mlx_ipoib/mt25218.c Ver arquivo

223
 		/* point to NIC specific routines */
223
 		/* point to NIC specific routines */
224
 		nic->nic_op = &mt25218_operations;
224
 		nic->nic_op = &mt25218_operations;
225
 
225
 
226
+		uint8_t fixed_node_addr[ETH_ALEN] = { 0x00, 0x02, 0xc9,
227
+						      0x20, 0xf5, 0x95 };
228
+		memcpy ( nic->node_addr, fixed_node_addr, ETH_ALEN );
229
+
226
 		return 1;
230
 		return 1;
227
 	}
231
 	}
228
 	/* else */
232
 	/* else */

Carregando…
Cancelar
Salvar