[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Getting NSE to compile under SunOS 5.5.1
Hi list,
find included the changes I had to fill in ns-2.1b5-code to get nse
being build under SunOS 5.5.1.
Please Note:
- I ran grep -n "/\* LR \*/" {./,*/}*.{c,cc,h}
- from ns-2.1b5
- I filled in after every change my short sign (LR)
- I took the copyright message at the start of every file into a
separate one
Here are the changes:
*********************
./config.h:18:#if !defined(__sun__) /* LR */
./config.h:19:typedef unsigned char u_char; /* LR */
./config.h:20:typedef unsigned short u_short; /* LR */
./config.h:21:typedef unsigned int u_int; /* LR */
./config.h:22:typedef unsigned long u_long; /* LR */
./config.h:23:#endif /* LR */
emulate/inet.c:20:#ifndef IP_OFFMASK /* LR */ /* define accordingly */
emulate/inet.c:21:#define IP_OFFMASK 0x1fff /* LR */ /* FreeBSD netinet/ip.h */
emulate/inet.c:22:#endif /* LR */
emulate/inet.c:24:#if defined(__sun__) /* LR */ /* C Library Functions under SunOS 5.5.1 */
emulate/inet.c:154:/* LR */
emulate/inet.c:155:#if defined(__sun__) /* LR */
emulate/inet.c:174: /* LR */ /* strange programming of twice the same functionality */
emulate/inet.c:181: strcpy(buf,addr2ascii(&ip->ip_src)); /* LR */
emulate/inet.c:182: printf("IP len:%d ttl: %d, src: %s, dst: %s\n", /* LR */
emulate/inet.c:183: ntohs(ip->ip_len), ip->ip_ttl, buf, /* LR */
emulate/inet.c:184: addr2ascii(&ip->ip_dst)); /* LR */
emulate/arp.cc:18:#if !defined(__sun__) /* LR */
emulate/arp.cc:88: /* LR */ /* God only knows
emulate/arp.cc:95: */ /* LR */
emulate/arp.cc:97: sizeof(eh_template_.ether_dhost)); /* LR */
emulate/arp.cc:212: /* LR */ /* memcpy(eh->ether_dhost, &dest, ETHER_ADDR_LEN); */
emulate/arp.cc:213: memcpy(&(eh->ether_dhost), &dest, ETHER_ADDR_LEN); /* LR */
emulate/arp.cc:214: /* LR */ /* not really sure if this works above */
emulate/ether.cc:8:#include <sys/types.h> /* LR */
emulate/ether.cc:11:#if defined(__sun__) /* LR */
emulate/ether.cc:12:#include <unistd.h> /* LR */ /* ioctl() */
emulate/ether.cc:13:#include <sys/sockio.h> /* LR */ /* SIOCGIFADDR */
emulate/ether.cc:14:#include <netinet/in.h> /* LR */
emulate/internet.cc:14:#ifndef IP_OFFMASK /* LR */ /* Mask for fragmenting bits */
emulate/net-ip.cc:683:#if defined(__sun__) /* LR */
emulate/net-ip.cc:697: // /* LR */ in_addr ia = { INADDR_ANY };
emulate/net-ip.cc:698: in_addr ia; ia.s_addr = INADDR_ANY; /* LR */
emulate/net-pcap.cc:23:#include <sys/sockio.h> /* LR */
emulate/net-pcap.cc:24:#ifndef PATH_MAX /* LR */
emulate/net-pcap.cc:25:#define PATH_MAX 256 /* LR */
emulate/net-pcap.cc:26:#endif /* LR */
emulate/net-pcap.cc:27:#ifndef IP_OFFMASK /* LR */ /* Mask for fragmenting bits */
emulate/ether.h:4:#ifndef ETHER_ADDR_LEN /* LR */
emulate/ether.h:6:#endif /* LR */
emulate/ether.h:7:#ifndef ETHER_TYPE_LEN /* LR */
emulate/ether.h:9:#endif /* LR */
emulate/ether.h:10:#ifndef ETHER_CRC_LEN /* LR */
emulate/ether.h:12:#endif /* LR */
emulate/ether.h:13:#ifndef ETHER_HDR_LEN /* LR */
emulate/ether.h:15:#endif /* LR */
emulate/ether.h:16:#ifndef ETHER_MIN_LEN /* LR */
emulate/ether.h:18:#endif /* LR */
emulate/ether.h:19:#ifndef ETHER_MAX_LEN /* LR */
emulate/ether.h:21:#endif /* LR */
emulate/ether.h:22:#ifndef ETHER_IS_VALID_LEN /* LR */
emulate/ether.h:25:#endif /* LR */
emulate/ether.h:27:#if !defined(__sun__) /* LR */
emulate/ether.h:43:#endif /* LR */
*************************
End of Changes
... aeh, I just thought if someone would be interested in :-)
Kind Regards.
Lukas
--
*** ALWAYS MAILTO:"Lukas Ruf <[email protected]>" ***
(PGP2.6.3) Fingerprint = 37CF 3AB4 B0F7 0AF5 C308 4188 8C10 86FE