Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Mar 2008 15:28:20 GMT
From:      Paolo Pisati <piso@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 137408 for review
Message-ID:  <200803111528.m2BFSKak049542@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=137408

Change 137408 by piso@piso_ferret on 2008/03/11 15:27:45

	Delete the old Packet*() API: it has been deprectaed and marked as
	'don't use it' for 2 releases, it's time to axe it.

Affected files ...

.. //depot/projects/soc2005/libalias/lib/libalias/libalias/Makefile#6 edit
.. //depot/projects/soc2005/libalias/sys/netinet/libalias/alias.h#16 edit
.. //depot/projects/soc2005/libalias/sys/netinet/libalias/alias_old.c#4 delete

Differences ...

==== //depot/projects/soc2005/libalias/lib/libalias/libalias/Makefile#6 (text+ko) ====

@@ -6,7 +6,7 @@
 SHLIBDIR?= /lib
 SHLIB_MAJOR= 6
 MAN=	libalias.3
-SRCS=	alias.c alias_db.c alias_proxy.c alias_util.c alias_old.c alias_mod.c
+SRCS=	alias.c alias_db.c alias_proxy.c alias_util.c alias_mod.c
 INCS=	alias.h
 WARNS?=	6
 NO_WERROR=

==== //depot/projects/soc2005/libalias/sys/netinet/libalias/alias.h#16 (text+ko) ====

@@ -81,60 +81,6 @@
  */
 struct alias_link;
 
-
-/* OLD API */
-
-/* Initialization and control functions. */
-void		PacketAliasInit(void);
-void		PacketAliasSetAddress(struct in_addr _addr);
-void		PacketAliasSetFWBase(unsigned int _base, unsigned int _num);
-void		PacketAliasSetSkinnyPort(unsigned int _port);
-unsigned int
-		PacketAliasSetMode(unsigned int _flags, unsigned int _mask);
-void		PacketAliasUninit(void);
-
-/* Packet Handling functions. */
-int		PacketAliasIn(char *_ptr, int _maxpacketsize);
-int		PacketAliasOut(char *_ptr, int _maxpacketsize);
-int		PacketUnaliasOut(char *_ptr, int _maxpacketsize);
-
-/* Port and address redirection functions. */
-
-
-int
-PacketAliasAddServer(struct alias_link *_lnk,
-    struct in_addr _addr, unsigned short _port);
-struct alias_link *
-PacketAliasRedirectAddr(struct in_addr _src_addr,
-    struct in_addr _alias_addr);
-int		PacketAliasRedirectDynamic(struct alias_link *_lnk);
-void		PacketAliasRedirectDelete(struct alias_link *_lnk);
-struct alias_link *
-PacketAliasRedirectPort(struct in_addr _src_addr,
-    unsigned short _src_port, struct in_addr _dst_addr,
-    unsigned short _dst_port, struct in_addr _alias_addr,
-    unsigned short _alias_port, unsigned char _proto);
-struct alias_link *
-PacketAliasRedirectProto(struct in_addr _src_addr,
-    struct in_addr _dst_addr, struct in_addr _alias_addr,
-    unsigned char _proto);
-
-/* Fragment Handling functions. */
-void		PacketAliasFragmentIn(char *_ptr, char *_ptr_fragment);
-char           *PacketAliasGetFragment(char *_ptr);
-int		PacketAliasSaveFragment(char *_ptr);
-
-/* Miscellaneous functions. */
-int		PacketAliasCheckNewLink(void);
-unsigned short
-		PacketAliasInternetChecksum(unsigned short *_ptr, int _nbytes);
-void		PacketAliasSetTarget(struct in_addr _target_addr);
-
-/* Transparent proxying routines. */
-int		PacketAliasProxyRule(const char *_cmd);
-
-/* NEW API */
-
 /* Initialization and control functions. */
 struct libalias *LibAliasInit(struct libalias *);
 void		LibAliasSetAddress(struct libalias *, struct in_addr _addr);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200803111528.m2BFSKak049542>