1
0
mirror of https://github.com/PDP-10/klh10.git synced 2026-04-16 00:21:30 +00:00

Build on FreeBSD 10.2.

Not tested further.
This commit is contained in:
Olaf Seibert
2016-01-10 23:40:37 +01:00
parent 447155ef02
commit 1105dd0c69
2 changed files with 5 additions and 5 deletions

View File

@@ -440,7 +440,7 @@ osn_ifealookup(char *ifnam, /* Interface name */
{
struct ifent *ife;
if (ife = osn_iflookup(ifnam)) {
if ((ife = osn_iflookup(ifnam))) {
if (!ife->ife_gotea) {
ife->ife_gotea = osn_ifeaget2(ifnam, ife->ife_ea);
}
@@ -460,7 +460,7 @@ osn_ifiplookup(char *ifnam, /* Interface name */
{
struct ifent *ife;
if (ife = osn_iflookup(ifnam)) {
if ((ife = osn_iflookup(ifnam))) {
if (ife->ife_gotip4) {
char ipstr[OSN_IPSTRSIZ];
@@ -483,7 +483,7 @@ osn_ifnmlookup(char *ifnam, /* Interface name */
{
struct ifent *ife;
if (ife = osn_iflookup(ifnam)) {
if ((ife = osn_iflookup(ifnam))) {
if (ife->ife_gotip4) {
char ipstr[OSN_IPSTRSIZ];
@@ -1506,7 +1506,7 @@ osn_pfwrite_pcap(struct pfdata *pfdata, const void *buf, size_t nbytes)
struct tuntap_context {
int my_tap;
char saved_ifnam[IFNAM_LEN];
#if KLH10_NET_BRIDGE && CENV_SYS_NETBSD
#if KLH10_NET_BRIDGE && (CENV_SYS_NETBSD || CENV_SYS_FREEBSD)
struct ifreq br_ifr;
struct ifreq tap_ifr;
#endif

View File

@@ -265,7 +265,7 @@
#define HAVE_GETIFADDRS 1 /* assume this for now */
#define HAVE_LIBPCAP 1 /* assume this for now */
#define HAVE_LIBPCAP_SET_IMMEDIATE_MODE 1
#define HAVE_LIBPCAP_SET_IMMEDIATE_MODE (!CENV_SYS_FREEBSD)
#if HAVE_LIBPCAP
# undef BPF_MAJOR_VERSION /* some stupid linux header defines this: