aboutsummaryrefslogtreecommitdiff
path: root/lib/libalias
Commit message (Collapse)AuthorAgeFilesLines
* Rename NO_WERROR -> MK_WERROR=noAlex Richardson2021-01-071-1/+1
| | | | | | | | As suggested in D27598. This also supports MK_WERROR.clang=no and MK_WERROR.gcc=no to support the existing NO_WERROR.<compiler> uses. Reviewed By: brooks Differential Revision: https://reviews.freebsd.org/D27601
* pkgbase: Put libalias in the natd packageEmmanuel Vadot2021-01-048-14/+22
| | | | | | | natd is the main user of the libalias* modules, put them together. Reviewed by: bapt, emaste Differential Revision: https://reviews.freebsd.org/D27710
* libalias: retire cuseeme supportEd Maste2020-05-163-24/+0
| | | | | | | | | | | | | | The CU-SeeMe videoconferencing client and associated protocol is at this point a historical artifact; there is no need to retain support for this protocol today. Reviewed by: philip, markj, allanjude Relnotes: Yes Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D24790 Notes: svn path=/head/; revision=361099
* Update Makefile.depend filesSimon J. Gerraty2019-12-111-1/+0
| | | | | | | | | | | | | Update a bunch of Makefile.depend files as a result of adding Makefile.depend.options files Reviewed by: bdrewery MFC after: 1 week Sponsored by: Juniper Networks Differential Revision: https://reviews.freebsd.org/D22494 Notes: svn path=/head/; revision=355617
* pkgbase: Create a FreeBSD-utilities package and make it the default oneEmmanuel Vadot2019-09-051-1/+0
| | | | | | | | | | | | | The default package use to be FreeBSD-runtime but it should only contain binaries and libs enough to boot to single user and repair the system, it is also very handy to have a package that can be tranform to a small mfsroot. So create a new package named FreeBSD-utilities and make it the default one. Also move a few binaries and lib into this package when it make sense. Reviewed by: bapt, gjb Differential Revision: https://reviews.freebsd.org/D21506 Notes: svn path=/head/; revision=351858
* Move libalias.conf to lib/libalias/libalias/Brad Davis2018-09-182-0/+9
| | | | | | | | | | This leveages CONFS to handle the install. Approved by: re (blanket, pkgbase), bapt (mentor) Differential Revision: https://reviews.freebsd.org/D17218 Notes: svn path=/head/; revision=338760
* DIRDEPS_BUILD: Update dependencies.Bryan Drewery2017-10-319-9/+0
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325188
* Use SRCTOP-relative paths to other directories instead of .CURDIR-relative onesEnji Cooper2017-01-203-3/+3
| | | | | | | | | | This implifies pathing in make/displayed output MFC after: 3 weeks Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=312454
* Update libalias and libpam packaged files.Glen Barber2016-02-051-0/+1
| | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=295291
* META MODE: Prefer INSTALL=tools/install.sh to lessen the need for xinstall.host.Bryan Drewery2015-11-251-1/+0
| | | | | | | | | | | This both avoids some dependencies on xinstall.host and allows bootstrapping on older releases to work due to lack of at least 'install -l' support. Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=291307
* Revert r284417 it is not necessary anymoreBaptiste Daroussin2015-06-152-2/+2
| | | | Notes: svn path=/head/; revision=284421
* Enforce overwritting SHLIBDIRBaptiste Daroussin2015-06-152-2/+2
| | | | | | | | | | | | Since METAMODE has been added, sys.mk loads bsd.mkopt.mk which ends load loading bsd.own.mk which then defines SHLIBDIR before all the Makefile.inc everywhere. This makes /lib being populated again. Reported by: many Notes: svn path=/head/; revision=284417
* Add META_MODE support.Simon J. Gerraty2015-06-139-0/+164
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp Notes: svn path=/head/; revision=284345
| * dirdeps.mk now sets DEP_RELDIRSimon J. Gerraty2015-06-081-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=284172
| * Updated dependenciesSimon J. Gerraty2014-05-169-9/+1
| | | | | | | | Notes: svn path=/projects/bmake/; revision=266219
| * Updated dependenciesSimon J. Gerraty2014-05-109-0/+18
| | | | | | | | Notes: svn path=/projects/bmake/; revision=265802
| * Updated dependenciesSimon J. Gerraty2013-03-119-0/+9
| | | | | | | | Notes: svn path=/projects/bmake/; revision=248169
| * Updated dependenciesSimon J. Gerraty2013-02-169-18/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=246868
| * Updated/new Makefile.dependSimon J. Gerraty2012-11-089-0/+27
| | | | | | | | Notes: svn path=/projects/bmake/; revision=242788
| * Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar2012-08-229-0/+145
|/ | | | | | | Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
* Remove redundant WARNS?=6 overrides and inherit the WARNS setting fromUlrich Spörlein2010-03-022-1/+3
| | | | | | | | | | | the toplevel directory. This does not change any WARNS level and survives a make universe. Approved by: ed (co-mentor) Notes: svn path=/head/; revision=204596
* Bump the version of all non-symbol-versioned shared libraries inKen Smith2009-07-191-1/+1
| | | | | | | | | | | preparation for 8.0-RELEASE. Add the previous version of those libraries to ObsoleteFiles.inc and bump __FreeBSD_Version. Reviewed by: kib Approved by: re (rwatson) Notes: svn path=/head/; revision=195767
* -Don't pass down the entire pkt to ProtoAliasIn, ProtoAliasOut, FragmentInPaolo Pisati2008-03-121-1/+1
| | | | | | | | and FragmentOut. -Axe the old PacketAlias API: it has been deprecated since 5.x. Notes: svn path=/head/; revision=177098
* - Bump share library version which were missed in last bumpRong-En Fan2007-06-181-1/+1
| | | | | | | | | Reported by: jhb Discussed with: deischen, des, doubg, harti Approved by: re (kensmith) Notes: svn path=/head/; revision=170925
* Fix a regression: let natd load libalias modules before /usr is mountedPaolo Pisati2006-10-089-9/+10
| | | | | | | | | | renaming /lib/libalias_*.so.4 to /lib/libalias_*.so. Approved by: glebius Reviewed by: glebius, ru Notes: svn path=/head/; revision=163128
* - Removed a copyright from makefile.Ruslan Ermilov2006-09-274-31/+7
| | | | | | | | | | - Added ${.CURDIR} to .include "...". - Whitespace fixes. OK'ed by: piso Notes: svn path=/head/; revision=162701
* Put back NO_WERROR= to fix sparc64 build.Ruslan Ermilov2006-09-271-0/+1
| | | | Notes: svn path=/head/; revision=162698
* Summer of Code 2005: improve libalias - part 1 of 2Paolo Pisati2006-09-2612-13/+101
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With the first part of my previous Summer of Code work, we get: -made libalias modular: -support for 'particular' protocols (like ftp/irc/etcetc) is no more hardcoded inside libalias, but it's available through external modules loadable at runtime -modules are available both in kernel (/boot/kernel/alias_*.ko) and user land (/lib/libalias_*) -protocols/applications modularized are: cuseeme, ftp, irc, nbt, pptp, skinny and smedia -added logging support for kernel side -cleanup After a buildworld, do a 'mergemaster -i' to install the file libalias.conf in /etc or manually copy it. During startup (and after every HUP signal) user land applications running the new libalias will try to read a file in /etc called libalias.conf: that file contains the list of modules to load. User land applications affected by this commit are ppp and natd: if libalias.conf is present in /etc you won't notice any difference. The only kernel land bit affected by this commit is ng_nat: if you are using ng_nat, and it doesn't correctly handle ftp/irc/etcetc sessions anymore, remember to kldload the correspondent module (i.e. kldload alias_ftp). General information and details about the inner working are available in the libalias man page under the section 'MODULAR ARCHITECTURE (AND ipfw(4) SUPPORT)'. NOTA BENE: this commit affects _ONLY_ libalias, ipfw in-kernel nat support will be part of the next libalias-related commit. Approved by: glebius Reviewed by: glebius, ru Notes: svn path=/head/; revision=162674
* Bump the shared library version number of all libraries that have notKen Smith2005-07-221-1/+1
| | | | | | | | | | been bumped since RELENG_5. Reviewed by: ru Approved by: re (not needed for commit check but in principle...) Notes: svn path=/head/; revision=148297
* Build userland libalias using src/sys/netinet/libalias.Gleb Smirnoff2005-05-0417-10259/+2
| | | | | | | | Reviewed by: ru Repocopy by: peter Notes: svn path=/head/; revision=145862
* natd core dumps when -reverse switch is used because of a bug inPoul-Henning Kamp2005-04-051-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | libalias. In /usr/src/lib/libalias/alias.c, the functions LibAliasIn and LibAliasOutTry call the legacy PacketAliasIn/PacketAliasOut instead of LibAliasIn/LibAliasOut when the PKT_ALIAS_REVERSE option is set. In this case, the context variable "la" gets lost because the legacy compatibility routines expect "la" to be global. This was obviously an oversight when rewriting the PacketAlias* functions to the LibAlias* functions. The fix (as shown in the patch below) is to remove the legacy subroutine calls and replace with the new ones using the "la" struct as the first arg. Submitted by: Gil Kloepfer <fgil@kloepfer.org> Confirmed by: <nicolai@catpipe.net> PR: 76839 MFC after: 3 days Notes: svn path=/head/; revision=144666
* Fix a problem in the Skinny ALG where a specially crafted packet could causeJoe Marcus Clarke2005-03-031-4/+4
| | | | | | | | | | | | a libalias application (e.g. natd, ppp, etc.) to crash. Note: Skinny support is not enabled in natd or ppp by default. Approved by: secteam (nectar) MFC after: 1 day Secuiryt: This fixes a remote DoS exploit Notes: svn path=/head/; revision=143083
* Sort sections.Ruslan Ermilov2005-01-201-5/+5
| | | | Notes: svn path=/head/; revision=140505
* include "alias.h", not <alias.h>Brian Somers2005-01-101-1/+1
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=139976
* For variables that are only checked with defined(), don't provideRuslan Ermilov2004-10-241-1/+1
| | | | | | | any fake value. Notes: svn path=/head/; revision=136910
* Fix outgoing ICMP on global instance.Poul-Henning Kamp2004-08-141-5/+5
| | | | Notes: svn path=/head/; revision=133719
* Fix Skinny and PPTP NAT'ing after the introduction of the {ip,tcp,udp}_nextJoe Marcus Clarke2004-08-042-2/+2
| | | | | | | | | | | | functions. Basically, the ip_next() function was used to get the PPTP and Skinny headers when tcp_next() should have been used instead. Symptoms of this included a segfault in natd when trying to process a PPTP or Skinny packet. Approved by: des Notes: svn path=/head/; revision=133121
* Push WARNS back up to 6, but define NO_WERROR; I want the warts out in theDag-Erling Smørgrav2004-07-061-1/+2
| | | | | | | open where people can see them and hopefully fix them. Notes: svn path=/head/; revision=131700
* Introduce inline {ip,udp,tcp}_next() functions which take a pointer to anDag-Erling Smørgrav2004-07-0612-52/+77
| | | | | | | | | | {ip,udp,tcp} header and return a void * pointing to the payload (i.e. the first byte past the end of the header and any required padding). Use them consistently throughout libalias to a) reduce code duplication, b) improve code legibility, c) get rid of a bunch of alignment warnings. Notes: svn path=/head/; revision=131699
* Rewrite twowords() to access its argument through a char pointer and notDag-Erling Smørgrav2004-07-061-3/+10
| | | | | | | | | a short pointer. The previous implementation seems to be in a gray zone of the C standard, and GCC generates incorrect code for it at -O2 or higher on some platforms. Notes: svn path=/head/; revision=131693
* Temporarily lower WARNS to 3 while I figure out the alignment issues onDag-Erling Smørgrav2004-07-061-1/+1
| | | | | | | alpha. Notes: svn path=/head/; revision=131690
* Make libalias WARNS?=6-clean. This mostly involves renaming variablesDag-Erling Smørgrav2004-07-0515-676/+721
| | | | | | | | | | | | named link, foo_link or link_foo to lnk, foo_lnk or lnk_foo, fixing signed / unsigned comparisons, and shoving unused function arguments under the carpet. I was hoping WARNS?=6 might reveal more serious problems, and perhaps the source of the -O2 breakage, but found no smoking gun. Notes: svn path=/head/; revision=131614
* Parenthesize return values.Dag-Erling Smørgrav2004-07-056-120/+120
| | | | Notes: svn path=/head/; revision=131613
* Mechanical whitespace cleanup.Dag-Erling Smørgrav2004-07-056-126/+126
| | | | Notes: svn path=/head/; revision=131612
* Add LibAliasOutTry() which checks a packet for a hit in the tables, butPoul-Henning Kamp2004-07-042-16/+29
| | | | | | | does not create a new entry if none is found. Notes: svn path=/head/; revision=131566
* Mechanically kill hard sentence breaks.Ruslan Ermilov2004-07-021-7/+7
| | | | Notes: svn path=/head/; revision=131504
* Bumped document date.Ruslan Ermilov2004-07-011-5/+7
| | | | | | | | Fixed markup. Fixed examples to match the new API. Notes: svn path=/head/; revision=131420
* Unbreak natd.Daniel Eischen2004-04-021-0/+1
| | | | | | | Reported and submitted by: Sean McNeil (sean at mcneil.com) Notes: svn path=/head/; revision=127757
* Raise WARNS level to 2.Dag-Erling Smørgrav2004-03-311-0/+1
| | | | Notes: svn path=/head/; revision=127690
* Deal with aliasing warnings.Dag-Erling Smørgrav2004-03-314-181/+63
| | | | | | | | Reviewed by: ru Approved by: silence on the lists Notes: svn path=/head/; revision=127689