|
Revision tags: release/12.2.0, release/11.4.0 |
|
| #
8f442d6b |
| 12-May-2020 |
Gordon Tetlow <[email protected]> |
Fix insufficient packet length validation in libalias.
Approved by: so Approved by: re (implicit) Security: FreeBSD-SA-20:12.libalias Security: CVE-2020-7454
|
|
Revision tags: release/12.1.0, release/11.3.0, release/12.0.0, release/11.2.0 |
|
| #
eb548a1a |
| 14-Jun-2018 |
Andrey V. Elsukov <[email protected]> |
In m_megapullup() use m_getjcl() to allocate 9k or 16k mbuf when requested.
It is better to try allocate a big mbuf, than just silently drop a big packet. A better solution could be reworking of lib
In m_megapullup() use m_getjcl() to allocate 9k or 16k mbuf when requested.
It is better to try allocate a big mbuf, than just silently drop a big packet. A better solution could be reworking of libalias modules to be able use m_copydata()/m_copyback() instead of requiring the single contiguous buffer.
PR: 229006 MFC after: 1 week
show more ...
|
| #
fe267a55 |
| 27-Nov-2017 |
Pedro F. Giffuni <[email protected]> |
sys: general adoption of SPDX licensing ID tags.
Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error pro
sys: general adoption of SPDX licensing ID tags.
Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error prone - task.
The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts.
No functional change intended.
show more ...
|
|
Revision tags: release/10.4.0, release/11.1.0 |
|
| #
1a356b8b |
| 10-May-2017 |
Eugene Grosbein <[email protected]> |
ipfw nat and natd support multiple aliasing instances with "nat global" feature that chooses right alias_address for outgoing packets that already have corresponding state in one of aliasing instance
ipfw nat and natd support multiple aliasing instances with "nat global" feature that chooses right alias_address for outgoing packets that already have corresponding state in one of aliasing instances. This feature works just fine for ICMP, UDP, TCP and SCTP packes but not for others. For example, outgoing PPtP/GRE packets always get alias_address of latest configured instance no matter whether such packets have corresponding state or not.
This change unbreaks translation of transit PPtP/GRE connections for "nat global" case fixing a bug in static ProtoAliasOut() function that ignores its "create" argument and performs translation regardless of its value. This static function is called only by LibAliasOutLocked() function and only for packers other than ICMP, UDP, TCP and SCTP. LibAliasOutLocked() passes its "create" argument unmodified.
We have only two consumers of LibAliasOutLocked() in the source tree calling it with "create" unequal to 1: "ipfw nat global" code and similar natd code having same problem. All other consumers of LibAliasOutLocked() call it with create = 1 and the patch is "no-op" for such cases.
PR: 218968 Approved by: ae, vsevolod (mentor) MFC after: 1 week
show more ...
|
|
Revision tags: release/11.0.1, release/11.0.0, release/10.3.0, release/10.2.0, release/10.1.0, release/9.3.0, release/10.0.0 |
|
| #
ec5df3a7 |
| 25-Dec-2013 |
Gleb Smirnoff <[email protected]> |
It'll be okay to use LibAliasDetachHandlers() here, relying on the fact that all handlers come from modules' bss and are followed by NODIR handler.
|
|
Revision tags: release/9.2.0, release/8.4.0 |
|
| #
7525c481 |
| 17-Mar-2013 |
Gleb Smirnoff <[email protected]> |
In m_megapullup() instead of reserving some space at the end of packet, m_align() it, reserving space to prepend data.
Reviewed by: mav
|
| #
41a7572b |
| 12-Mar-2013 |
Gleb Smirnoff <[email protected]> |
Functions m_getm2() and m_get2() have different order of arguments, and that can drive someone crazy. While m_get2() is young and not documented yet, change its order of arguments to match m_getm2().
Functions m_getm2() and m_get2() have different order of arguments, and that can drive someone crazy. While m_get2() is young and not documented yet, change its order of arguments to match m_getm2().
Sorry for churn, but better now than later.
show more ...
|
| #
ea26ed7e |
| 30-Jan-2013 |
Gleb Smirnoff <[email protected]> |
Utilize m_get2() to get mbuf of appropriate size.
|
| #
eb1b1807 |
| 05-Dec-2012 |
Gleb Smirnoff <[email protected]> |
Mechanically substitute flags from historic mbuf allocator with malloc(9) flags within sys.
Exceptions:
- sys/contrib not touched - sys/mbuf.h edited manually
|
|
Revision tags: release/9.1.0, release/8.3.0, release/7.4.0, release/8.2.0, release/8.1.0, release/7.3.0, release/8.0.0 |
|
| #
a4f93c10 |
| 04-Nov-2009 |
Christian Brueffer <[email protected]> |
MFC: r198539
Close a stream file descriptor leak.
|
| #
770c6c33 |
| 03-Nov-2010 |
Nick Hibma <[email protected]> |
Don't spam the console with loaded modules during boot and/or during startup of ppp.
Note: This cannot be hidden behind bootverbose as this file is included from lib/libalias as well.
|
| #
621882f0 |
| 28-Oct-2009 |
Christian Brueffer <[email protected]> |
Close a stream file descriptor leak.
PR: 138130 Submitted by: Patroklos Argyroudis <[email protected]> MFC after: 1 week
|
|
Revision tags: release/7.2.0 |
|
| #
50d25dda |
| 11-Apr-2009 |
Paolo Pisati <[email protected]> |
What's the point of adjusting a checksum if we are going to toss the packet? Anticipate the check/return code.
|
| #
ea80b0ac |
| 11-Apr-2009 |
Paolo Pisati <[email protected]> |
Plug two bugs introduced with modules conversion:
-UdpAliasIn(): correctly check return code after modules ran. -alias_nbt: in case of malformed packets (or some other unrecoverable error), toss th
Plug two bugs introduced with modules conversion:
-UdpAliasIn(): correctly check return code after modules ran. -alias_nbt: in case of malformed packets (or some other unrecoverable error), toss the packet.
show more ...
|
| #
1cd68a24 |
| 11-Apr-2009 |
Paolo Pisati <[email protected]> |
Remove stale comments.
|
| #
37ce2656 |
| 07-Feb-2009 |
Paolo Pisati <[email protected]> |
Add SCTP NAT support.
Submitted by: CAIA (http://caia.swin.edu.au)
|
|
Revision tags: release/7.1.0, release/6.4.0 |
|
| #
ea29dd92 |
| 21-Jun-2008 |
Alexander Motin <[email protected]> |
Implement UDP transparent proxy support.
PR: bin/54274 Submitted by: Nicolai Petri <[email protected]>
|
| #
efc66711 |
| 01-Jun-2008 |
Alexander Motin <[email protected]> |
Make m_megapullup() more intelligent: - to increase performance do not reallocate mbuf when possible, - to support up to 16K packets (was 2K max) use mbuf cluster of proper size. This change depend
Make m_megapullup() more intelligent: - to increase performance do not reallocate mbuf when possible, - to support up to 16K packets (was 2K max) use mbuf cluster of proper size. This change depends on recent ng_nat and ip_fw_nat changes.
show more ...
|
| #
aac54f0a |
| 01-Jun-2008 |
Alexander Motin <[email protected]> |
Fix packet fragmentation support broken by copy/paste error in rev.1.60. ip_id should be u_short, but not u_char.
|
| #
03bc210e |
| 02-May-2008 |
Dmitry Morozovsky <[email protected]> |
Fix build, together with a bit of style breakage.
|
| #
ab0fcfd0 |
| 12-Mar-2008 |
Paolo Pisati <[email protected]> |
-Don't pass down the entire pkt to ProtoAliasIn, ProtoAliasOut, FragmentIn and FragmentOut. -Axe the old PacketAlias API: it has been deprecated since 5.x.
|
| #
4741f3a1 |
| 06-Mar-2008 |
Paolo Pisati <[email protected]> |
MFP4: restrict the utilization of direct pointers to the content of ip packet. These modifications are functionally nop()s thus can be merged with no side effects.
|
|
Revision tags: release/7.0.0, release/6.3.0, release/6.2.0 |
|
| #
ccd57eea |
| 15-Dec-2006 |
Paolo Pisati <[email protected]> |
o made in kernel libalias mpsafe o fixed a comment o made in kernel libalias a bit less verbose (disabled automatic logging everytime a new link is added or deleted)
Approved by: glebius (mentor)
|
| #
5910c1c1 |
| 01-Dec-2006 |
Paolo Pisati <[email protected]> |
Make libalias.conf parsing a bit smarter. This closes PR kern/106112.
While here, add mbuf's #includes i forgot in the previous commit.
Approved by: gleb
|
| #
e876228e |
| 01-Dec-2006 |
Paolo Pisati <[email protected]> |
Remove m_megapullup from ng_nat and put it under libalias.
Approved by: gleb
|