Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- case 54: // Server identifier
- for(uint16_t i=0; i<opt[count+2]; i++)
- {
- printf("%u ", opt[count+3+i]);
- }
- if (opt[count+2] == 4)
- {
- memcpy(adapter->Gateway_IP, opt+count+3, 4);
- // HACK for qemu:
- if (adapter->Gateway_IP[0]==10 && adapter->Gateway_IP[1]==0 && adapter->Gateway_IP[2]==2 && adapter->Gateway_IP[3]==2)
- {
- adapter->Gateway_IP[0] = GW_IP_1;
- adapter->Gateway_IP[1] = GW_IP_2;
- adapter->Gateway_IP[2] = GW_IP_3;
- adapter->Gateway_IP[3] = GW_IP_4;
- }
- arp_sendRequest(adapter, adapter->Gateway_IP);
- }
- break;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement