- use working MAC addr
- refactored vendor git-svn-id: http://moon:8086/svn/mips@223 a8ebac50-d88d-4704-bea3-6648445a41b3
This commit is contained in:
@@ -13,8 +13,8 @@
|
||||
#include "udp.h"
|
||||
#include "dhcp.h"
|
||||
|
||||
#define WITH_CLIENT_ID 1
|
||||
const char hostname[] = "ml402";
|
||||
const char vendor[] = "Jayfield Inc.";
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Testing
|
||||
@@ -44,7 +44,6 @@ void DHCP_request_send(packet_t *pPacket, uint8_t dhcp_msg_type, uint8_t *mac_ad
|
||||
option_list_append(&options, DHCP_OPT_MSGTYPE, &dhcp_msg_type, 1);
|
||||
|
||||
// Set vendor ID
|
||||
const char vendor[] = "AVM multid FRITZ!Box 7362 SL (UI)";
|
||||
option_list_append(&options, DHCP_OPT_VENDORID, vendor, strlen(vendor));
|
||||
|
||||
// Set client ID
|
||||
|
||||
+3
-4
@@ -154,7 +154,7 @@ void Phy_print_regs(Mii_t *pMii, uint16_t phy_id)
|
||||
// -------------------------------------------------------------------
|
||||
uint8_t eth_bcst[6]= {0xFF,0xFF,0xFF,0xFF,0xFF,0xFF};
|
||||
uint8_t eth_zero[6]= {0x00,0x00,0x00,0x00,0x00,0x00};
|
||||
uint8_t eth_myself[6] = {0x22,0x07,0x31,0x10,0x19,0x70};
|
||||
uint8_t eth_myself[6] = {0xc8,0x10,0x70,0x22,0x07,0x69};
|
||||
|
||||
uint8_t ip_zero[4] = {0, 0, 0, 0};
|
||||
uint8_t ip_bcast[4] = {255, 255, 255, 255};
|
||||
@@ -280,8 +280,7 @@ int main()
|
||||
*pEmac_tx_ctrl |= EMAC_TX_CTRL_GIGABIT;
|
||||
|
||||
// Set MAC address
|
||||
*(pEmac_maddr+0) = 0x00003110;
|
||||
*(pEmac_maddr+1) = 0x19700000;
|
||||
EMAC_MACADDR_set(eth_myself);
|
||||
|
||||
printf("Own MAC address = ");
|
||||
for (i=0; i < 6; i++)
|
||||
@@ -337,7 +336,7 @@ int main()
|
||||
DHCP *pDHCP;
|
||||
if (dhcp_state == 1)
|
||||
{
|
||||
for (int kk=0; kk < 3; kk++)
|
||||
for (int kk=0; kk < 1; kk++)
|
||||
{
|
||||
printf("---------------------------------------------------------------\n");
|
||||
printf("- Send DHCP Discover ------------------------------------------\n");
|
||||
|
||||
Reference in New Issue
Block a user