in_cksum.c
ipproto.c
l2vpn.c
- machdep.c
netdissect.c
netdissect-alloc.c
nlpid.c
#
set(MAN_FILE_FORMATS 4)
set(MAN_MISC_INFO 5)
-elseif(CMAKE_SYSTEM_NAME STREQUAL "OSF1")
- #
- # DEC OSF/1, a/k/a Digital UNIX, a/k/a Tru64 UNIX.
- # Use Tru64 UNIX conventions for man pages; they're the same as the
- # System V conventions except that they use section 8 for
- # administrative commands and daemons.
- #
- set(MAN_FILE_FORMATS 4)
- set(MAN_MISC_INFO 5)
elseif(CMAKE_SYSTEM_NAME STREQUAL "SunOS" AND CMAKE_SYSTEM_VERSION MATCHES "5[.][0-9.]*")
#
# SunOS 5.x.
l2vpn.h - L2VPN encapsulation definitions
lbl/os-*.h - OS-dependent defines and prototypes (currently none)
llc.h - LLC definitions
-machdep.c - machine dependent routines
-machdep.h - machine dependent definitions
makemib - mib to header script
mib.h - mib definitions
missing/* - replacements for missing library functions
in_cksum.c \
ipproto.c \
l2vpn.c \
- machdep.c \
netdissect.c \
netdissect-alloc.c \
nlpid.c \
ipproto.h \
l2vpn.h \
llc.h \
- machdep.h \
mib.h \
mpls.h \
nameser.h \
$1="$$1 -xansi -signed -g3"
;;
- osf*)
- #
- # Presumed to be DEC OSF/1, Digital UNIX, or
- # Tru64 UNIX.
- #
- # The DEC C compiler, which is what we presume we're
- # using, doesn't exit with a non-zero exit status if we
- # hand it an invalid -W flag, can't be forced to do
- # so, and doesn't handle GCC-style -W flags, so we
- # don't want to try using GCC-style -W flags.
- #
- ac_lbl_cc_dont_try_gcc_dashW=yes
- #
- # -g is equivalent to -g2, which turns off
- # optimization; we choose -g3, which generates
- # debugging information but doesn't turn off
- # optimization (even if the optimization would
- # cause inaccuracies in debugging).
- #
- $1="$$1 -g3"
- ;;
-
solaris*)
#
# Assumed to be Sun C, which requires -errwarn to force
#
case "$host_os" in
- irix*|osf*|darwin*)
+ irix*|darwin*)
#
- # MIPS C for IRIX, DEC C, and clang all use -M.
+ # MIPS C for IRIX and Clang use -M.
#
ac_lbl_dependency_flag="-M"
;;
MAN_MISC_INFO=5
;;
-osf*)
- V_GROUP=system
-
- #
- # Use System V conventions for man pages.
- #
- MAN_FILE_FORMATS=4
- MAN_MISC_INFO=5
- ;;
-
solaris*)
V_GROUP=sys
+++ /dev/null
-/*
- * Copyright (c) 1996, 1997
- * The Regents of the University of California. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that: (1) source code distributions
- * retain the above copyright notice and this paragraph in its entirety, (2)
- * distributions including binary code include the above copyright notice and
- * this paragraph in its entirety in the documentation or other materials
- * provided with the distribution, and (3) all advertising materials mentioning
- * features or use of this software display the following acknowledgement:
- * ``This product includes software developed by the University of California,
- * Lawrence Berkeley Laboratory and its contributors.'' Neither the name of
- * the University nor the names of its contributors may be used to endorse
- * or promote products derived from this software without specific prior
- * written permission.
- * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
- * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
- * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
- */
-
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
-#include <stddef.h>
-
-#ifdef __osf__
-#include <stdio.h>
-#include <sys/sysinfo.h>
-#include <sys/proc.h>
-#endif /* __osf__ */
-
-#include "varattrs.h"
-#include "machdep.h"
-
-/*
- * On platforms where the CPU doesn't support unaligned loads, force
- * unaligned accesses to abort with SIGBUS, rather than being fixed
- * up (slowly) by the OS kernel; on those platforms, misaligned accesses
- * are bugs, and we want tcpdump to crash so that the bugs are reported.
- *
- * The only OS on which this is necessary is DEC OSF/1^W^WDigital
- * UNIX^W^WTru64 UNIX.
- */
-int
-abort_on_misalignment(char *ebuf _U_, size_t ebufsiz _U_)
-{
-#ifdef __osf__
- static int buf[2] = { SSIN_UACPROC, UAC_SIGBUS };
-
- if (setsysinfo(SSI_NVPAIRS, (caddr_t)buf, 1, 0, 0) < 0) {
- (void)snprintf(ebuf, ebufsiz, "setsysinfo: errno %d", errno);
- return (-1);
- }
-#endif
- return (0);
-}
+++ /dev/null
-/*
- * Copyright (c) 1996
- * The Regents of the University of California. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that: (1) source code distributions
- * retain the above copyright notice and this paragraph in its entirety, (2)
- * distributions including binary code include the above copyright notice and
- * this paragraph in its entirety in the documentation or other materials
- * provided with the distribution, and (3) all advertising materials mentioning
- * features or use of this software display the following acknowledgement:
- * ``This product includes software developed by the University of California,
- * Lawrence Berkeley Laboratory and its contributors.'' Neither the name of
- * the University nor the names of its contributors may be used to endorse
- * or promote products derived from this software without specific prior
- * written permission.
- * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
- * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
- * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
- */
-#ifndef netdissect_machdep_h
-#define netdissect_machdep_h
-
-int abort_on_misalignment(char *, size_t);
-#endif
#if defined(SUNOS5)
fhtype = FHT_SUNOS5;
#endif
-#if defined(__osf__)
- fhtype = FHT_DECOSF;
-#endif
#if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__DragonFly__) \
|| defined(__OpenBSD__)
fhtype = FHT_BSD44;
#define PT_PREP 7 /* page vector reply */
#if 0
-#ifdef PF_USER
-#undef PF_USER /* {Digital,Tru64} UNIX define this, alas */
-#endif
-
/* flags */
#define PF_USER 0x01 /* hint that packet has interactive data */
#define PF_VIS 0x02 /* only visible ops wanted */
it will be reported as 0).
.LP
On platforms that support the SIGINFO signal, such as most BSDs
-(including macOS) and Digital/Tru64 UNIX, it will report those counts
+(including macOS), it will report those counts
when it receives a SIGINFO signal (generated, for example, by typing
your ``status'' character, typically control-T, although on some
platforms, such as macOS, the ``status'' character is not set by
#include "netdissect.h"
#include "interface.h"
#include "addrtoname.h"
-#include "machdep.h"
#include "pcap-missing.h"
#include "ascii_strcasecmp.h"
error("Attempting to initialize Winsock failed");
#endif
- /*
- * On platforms where the CPU doesn't support unaligned loads,
- * force unaligned accesses to abort with SIGBUS, rather than
- * being fixed up (slowly) by the OS kernel; on those platforms,
- * misaligned accesses are bugs, and we want tcpdump to crash so
- * that the bugs are reported.
- */
- if (abort_on_misalignment(ebuf, sizeof(ebuf)) < 0)
- error("%s", ebuf);
-
/*
* An explicit tzset() call is usually not needed as it happens
* implicitly the first time we call localtime() or mktime(),