Advertisement
Guest User

x64-tap-win32-dhcp-and-appletalk.patch

a guest
May 19th, 2011
234
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.49 KB | None | 0 0
  1. Index: BasiliskII/src/Windows/ether_windows.cpp
  2. ===================================================================
  3. RCS file: /home/cvs/cebix/BasiliskII/src/Windows/ether_windows.cpp,v
  4. retrieving revision 1.9
  5. diff -r1.9 ether_windows.cpp
  6. 1419a1420,1421
  7. > uint8 * cur_dest_ether_addr;
  8. >
  9. 1449c1451,1481
  10. < if (memcmp((LPBYTE)lpPacket->Buffer, ether_addr, 6) != 0)
  11. ---
  12. > cur_dest_ether_addr = (LPBYTE)lpPacket->Buffer;
  13. >
  14. > if ( memcmp(cur_dest_ether_addr, ether_addr, 6) == 0 )
  15. > {
  16. > D(bug("Packet to our Ethernet address\n"));
  17. > }
  18. > else if (cur_dest_ether_addr[0] & cur_dest_ether_addr[1] & cur_dest_ether_addr[2]
  19. > & cur_dest_ether_addr[3] & cur_dest_ether_addr[4] & cur_dest_ether_addr[5] == 0xff )
  20. > {
  21. > D(bug("Packet to Ethernet broadcast address\n"));
  22. > }
  23. > else if ( cur_dest_ether_addr[0] == 0x09
  24. > && cur_dest_ether_addr[1] == 0x00
  25. > && cur_dest_ether_addr[2] == 0x07
  26. > && cur_dest_ether_addr[3] == 0xff
  27. > && cur_dest_ether_addr[4] == 0xff
  28. > && cur_dest_ether_addr[5] == 0xff)
  29. > {
  30. > D(bug("Packet to AppleTalk broadcast address\n"));
  31. > }
  32. > else if ( cur_dest_ether_addr[0] == 0x09
  33. > && cur_dest_ether_addr[1] == 0x00
  34. > && cur_dest_ether_addr[2] == 0x07
  35. > && cur_dest_ether_addr[3] == 0x00
  36. > && cur_dest_ether_addr[4] == 0x00)
  37. > {
  38. > D(bug("Packet to AppleTalk zone multicast address\n"));
  39. > }
  40. > else
  41. > {
  42. > D(bug("Dropping packet for %02x %02x %02x %02x %02x %02x\n", cur_dest_ether_addr[0], cur_dest_ether_addr[1], cur_dest_ether_addr[2], cur_dest_ether_addr[3], cur_dest_ether_addr[4], cur_dest_ether_addr[5]));
  43. 1450a1483
  44. > }
  45. Index: BasiliskII/src/Windows/util_windows.cpp
  46. ===================================================================
  47. RCS file: /home/cvs/cebix/BasiliskII/src/Windows/util_windows.cpp,v
  48. retrieving revision 1.7
  49. diff -r1.7 util_windows.cpp
  50. 271c271
  51. < #define TAP_COMPONENT_ID "tap0801"
  52. ---
  53. > const char * tap_component_ids[] = {"tap0801", "tap0901", 0};
  54. 279a280,281
  55. > const char * * cur_tap_component_id;
  56. >
  57. 346,347c348,354
  58. < if (!strcmp (component_id, TAP_COMPONENT_ID))
  59. < devices.push_back(net_cfg_instance_id);
  60. ---
  61. > for (cur_tap_component_id = tap_component_ids; *cur_tap_component_id != NULL;
  62. > cur_tap_component_id++) {
  63. > if (!strcmp (component_id, *cur_tap_component_id)) {
  64. > devices.push_back(net_cfg_instance_id);
  65. > break;
  66. > }
  67. > }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement