Skip to content

Commit

Permalink
307
Browse files Browse the repository at this point in the history
  • Loading branch information
Apple Inc committed May 27, 2017
1 parent 76c5f97 commit 61c6724
Show file tree
Hide file tree
Showing 129 changed files with 2,877 additions and 5,402 deletions.
370 changes: 370 additions & 0 deletions APPLE_LICENSE

Large diffs are not rendered by default.

53 changes: 7 additions & 46 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,29 +1,17 @@
#
# Generated by the Apple Project Builder.
#
# NOTE: Do NOT change this file -- Project Builder maintains it.
#
# Put all of your customizations in files called Makefile.preamble
# and Makefile.postamble (both optional), and Makefile will include them.
#

NAME = network_cmds

PROJECTVERSION = 2.8
PROJECT_TYPE = Aggregate
Project = network_cmds

Embedded=$(shell tconf --test TARGET_OS_EMBEDDED)

ifeq "$(Embedded)" "YES"
TOOLS = arp.tproj \
ifeq ($(Embedded),YES)
SubProjects = arp.tproj \
ifconfig.tproj netstat.tproj\
ping.tproj\
route.tproj\
traceroute.tproj
else
SUBPROJECTS = bootparams

TOOLS = arp.tproj \
SubProjects = arp.tproj \
alias \
bootparams \
ifconfig.tproj netstat.tproj\
ping.tproj rarpd.tproj\
route.tproj routed.tproj\
Expand All @@ -32,33 +20,6 @@ TOOLS = arp.tproj \
natd.tproj ipfw.tproj\
ping6.tproj traceroute6.tproj rtsol.tproj ndp.tproj rtadvd.tproj\
ip6conf.tproj ip6fw.tproj kdumpd.tproj

LIBRARIES = alias
endif

LEGACIES =

OTHERSRCS = Makefile Makefile.include Makefile.preamble Makefile.postamble

MAKEFILEDIR = $(MAKEFILEPATH)/pb_makefiles
CODE_GEN_STYLE = DYNAMIC
MAKEFILE = aggregate.make
LIBS =
DEBUG_LIBS = $(LIBS)
PROF_LIBS = $(LIBS)




NEXTSTEP_OBJCPLUS_COMPILER = /usr/bin/cc
NEXTSTEP_JAVA_COMPILER = /usr/bin/javac

include $(MAKEFILEDIR)/platform.make

-include Makefile.preamble

include $(MAKEFILEDIR)/$(MAKEFILE)

-include Makefile.postamble

-include Makefile.dependencies
include $(MAKEFILEPATH)/CoreOS/ReleaseControl/BSDCommon.make
12 changes: 0 additions & 12 deletions Makefile.include

This file was deleted.

3 changes: 0 additions & 3 deletions Makefile.postamble

This file was deleted.

1 change: 0 additions & 1 deletion Makefile.preamble

This file was deleted.

38 changes: 0 additions & 38 deletions PB.project

This file was deleted.

145 changes: 145 additions & 0 deletions alias/HISTORY
Original file line number Diff line number Diff line change
@@ -0,0 +1,145 @@
$FreeBSD: src/lib/libalias/HISTORY,v 1.6.2.2 2000/08/18 20:00:00 jhb Exp $

Version 1.0: August 11, 1996 (cjm)

Version 1.1: August 20, 1996 (cjm)
- Host accepts incoming connections for ports 0 to 1023.

Version 1.2: September 7, 1996 (cjm)
- Fragment handling error in alias_db.c corrected.

Version 1.3: September 15, 1996 (cjm)
- Generalized mechanism for handling incoming
connections (no more 0 to 1023 restriction).

- Increased ICMP support (will handle traceroute now).

- Improved TCP close connection logic.

Version 1.4: September 16, 1996 (cjm)

Version 1.5: September 17, 1996 (cjm)
- Corrected error in handling incoming UDP packets
with zero checksum.

Version 1.6: September 18, 1996
- Simplified ICMP data storage. Will now handle
tracert from Win95 and NT as well as FreeBSD
traceroute, which uses UDP packets to non-existent
ports.

Version 1.7: January 9, 1997 (cjm)
- Reduced malloc() activity for ICMP echo and
timestamp requests.

- Added handling for out-of-order IP fragments.

- Switched to differential checksum computation
for IP headers (TCP, UDP and ICMP checksums
were already differential).

- Accepts FTP data connections from other than
port 20. This allows one ftp connections
from two hosts which are both running packet
aliasing.

- Checksum error on FTP transfers. Problem
in code located by Martin Renters and
Brian Somers.

Version 1.8: January 14, 1997 (cjm)
- Fixed data type error in function StartPoint()
in alias_db.c (this bug did not exist before v1.7)
Problem in code located by Ari Suutari.

Version 1.9: February 1, 1997 (Eivind Eklund <[email protected]>)
- Added support for IRC DCC (ee)

- Changed the aliasing routines to use ANSI style
throughout (ee)

- Minor API changes for integration with other
programs than PPP (ee)

- Fixed minor security hole in alias_ftp.c for
other applications of the aliasing software.
Hole could _not_ manifest in ppp+pktAlias, but
could potentially manifest in other applications
of the aliasing. (ee)

- Connections initiated from packet aliasing
host machine will not have their port number
aliased unless it conflicts with an aliasing
port already being used. (There is an option
to disable this for debugging) (cjm)

- Sockets will be allocated in cases where
there might be port interference with the
host machine. This can be disabled in cases
where the ppp host will be acting purely as a
masquerading router and not generate any
traffic of its own.
(cjm)

Version 2.0: March, 1997 (cjm)
- Aliasing links are cleared only when a host interface address
changes.

- PacketAliasPermanentLink() API added.

- Option for only aliasing private, unregistered
IP addresses added.

- Substantial rework to the aliasing lookup engine.

Version 2.1: May, 1997 (cjm)
- Continuing rework to the aliasing lookup engine
to support multiple incoming addresses and static
NAT. PacketAliasRedirectPort() and
PacketAliasRedirectAddr() added to API.

- Now supports outgoing as well as incoming ICMP
error messages.

Version 2.2: July, 1997 (cjm)
- Rationalized API function names to all begin with
"PacketAlias..." Old function names are retained
for backwards compatibility.

- Packet aliasing engine will now free memory of
fragments which are never resolved after a timeout
period. Once a fragment is resolved, it becomes
the users responsibility to free the memory.

Version 2.3: August 11, 1997 (cjm)
- Problem associated with socket file descriptor
accumulation in alias_db.c corrected. The sockets
had to be closed when a binding failed. Problem
in code located by Gordon Burditt.

Version 2.4: September 1, 1997 (cjm)
- PKT_ALIAS_UNREGISTERED_ONLY option repaired.
This part of the code was incorrectly re-implemented
in version 2.1.

Version 2.5: December, 1997 (ee)
- Added PKT_ALIAS_PUNCH_FW mode for firewall
bypass of FTP/IRC DCC data connections. Also added
improved TCP connection monitoring.

Version 2.6: May, 1998 (amurai)
- Added supporting routine for NetBios over TCP/IP.

Version 3.0: January 1, 1999
- Transparent proxying support added.
- PPTP redirecting support added based on patches
contributed by Dru Nelson <[email protected]>.

Version 3.1: May, 2000 (Erik Salander, [email protected])
- Added support to alias 227 replies, allows aliasing for
FTP servers in passive mode.
- Added support for PPTP aliasing.

Version 3.2: July, 2000 (Erik Salander, [email protected] and
Junichi Satoh, [email protected])
- Added support for streaming media (RTSP and PNA) aliasing.
61 changes: 9 additions & 52 deletions alias/Makefile
Original file line number Diff line number Diff line change
@@ -1,59 +1,16 @@
#
# Generated by the Apple Project Builder.
#
# NOTE: Do NOT change this file -- Project Builder maintains it.
#
# Put all of your customizations in files called Makefile.preamble
# and Makefile.postamble (both optional), and Makefile will include them.
#
Project = alias
ProductType = dylib
Install_Dir = /usr/lib
#Install_Headers = alias.h

NAME = alias

PROJECTVERSION = 2.8
PROJECT_TYPE = Library
Library_Version = A

HFILES = alias.h alias_local.h

CFILES = alias.c alias_cuseeme.c alias_db.c alias_ftp.c alias_irc.c\
alias_nbt.c alias_pptp.c alias_proxy.c alias_smedia.c alias_util.c
#MANPAGES = libalias.3

OTHERSRCS = Makefile.preamble Makefile Makefile.postamble


MAKEFILEDIR = $(MAKEFILEPATH)/pb_makefiles
CURRENTLY_ACTIVE_VERSION = YES
DEPLOY_WITH_VERSION_NAME = A
CODE_GEN_STYLE = DYNAMIC
MAKEFILE = library.make
NEXTSTEP_INSTALLDIR = /usr/lib
WINDOWS_INSTALLDIR = /Developer/Libraries
PDO_UNIX_INSTALLDIR = /usr/lib
LIBS =
DEBUG_LIBS = $(LIBS)
PROF_LIBS = $(LIBS)


PROJECT_HEADERS = alias.h



WINDOWS_PUBLIC_HEADERS_DIR = /Developer/Headers/$(NAME)

PDO_UNIX_PUBLIC_HEADERS_DIR = /Developer/Headers/$(NAME)

NEXTSTEP_OBJCPLUS_COMPILER = /usr/bin/cc
WINDOWS_OBJCPLUS_COMPILER = $(DEVDIR)/gcc
PDO_UNIX_OBJCPLUS_COMPILER = $(NEXTDEV_BIN)/gcc
NEXTSTEP_JAVA_COMPILER = /usr/bin/javac
WINDOWS_JAVA_COMPILER = $(JDKBINDIR)/javac.exe
PDO_UNIX_JAVA_COMPILER = $(JDKBINDIR)/javac

include $(MAKEFILEDIR)/platform.make

-include Makefile.preamble

include $(MAKEFILEDIR)/$(MAKEFILE)

-include Makefile.postamble
#Extra_CC_Flags = \
-I$(SDKROOT)/System/Library/Frameworks/Kernel.framework/PrivateHeaders

-include Makefile.dependencies
include $(MAKEFILEPATH)/CoreOS/ReleaseControl/BSDCommon.make
Loading

0 comments on commit 61c6724

Please sign in to comment.