Files
macports-ports/emulators/vpcs/files/patch-nonlinux-test-fix.diff
lasticandKen ca565191ee vpcs: new port
PC emulator particularly of use
with the Cisco dynamips emulator
2019-03-02 18:51:25 -08:00

15 lines
430 B
Diff

--- command.c.orig 2017-12-29 15:30:57.000000000 +0100
+++ command.c 2019-02-28 12:21:06.000000000 +0100
@@ -1011,11 +1011,7 @@
icidr = 24;
if (rip == -1 || gip == -1 || rip == gip ||
-#ifdef Linux
((rip & 0x7f) == 0x7f) || rip == 0 || IN_MULTICAST(ntohl(rip))) {
-#else
- IN_LOOPBACK(ntohl(rip)) || IN_ZERONET(ntohl(rip)) || IN_MULTICAST(ntohl(rip))) {
-#endif
printf("Invalid address\n");
return 0;
}