Advertisement
Guest User

Untitled

a guest
Sep 19th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. case 54: // Server identifier
  2. for(uint16_t i=0; i<opt[count+2]; i++)
  3. {
  4. printf("%u ", opt[count+3+i]);
  5. }
  6.  
  7. if (opt[count+2] == 4)
  8. {
  9. memcpy(adapter->Gateway_IP, opt+count+3, 4);
  10. // HACK for qemu:
  11. if (adapter->Gateway_IP[0]==10 && adapter->Gateway_IP[1]==0 && adapter->Gateway_IP[2]==2 && adapter->Gateway_IP[3]==2)
  12. {
  13. adapter->Gateway_IP[0] = GW_IP_1;
  14. adapter->Gateway_IP[1] = GW_IP_2;
  15. adapter->Gateway_IP[2] = GW_IP_3;
  16. adapter->Gateway_IP[3] = GW_IP_4;
  17. }
  18. arp_sendRequest(adapter, adapter->Gateway_IP);
  19. }
  20. break;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement