<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src-test2/sys/netinet/libalias/alias.c, branch releng/6.4</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src-test2/atom?h=releng%2F6.4</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src-test2/atom?h=releng%2F6.4'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/'/>
<updated>2005-06-27T22:21:42Z</updated>
<entry>
<title>Libalias incorrectly applies proxy rules to the global divert</title>
<updated>2005-06-27T22:21:42Z</updated>
<author>
<name>Poul-Henning Kamp</name>
<email>phk@FreeBSD.org</email>
</author>
<published>2005-06-27T22:21:42Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=dca9c930dacb67e5f09dbbccf27020b7d6373268'/>
<id>urn:sha1:dca9c930dacb67e5f09dbbccf27020b7d6373268</id>
<content type='text'>
socket: it should only look for existing translation entries,
not create new ones (no matter how it got the idea).

Approved by:	re(scottl)
</content>
</entry>
<entry>
<title>Always include alias.h before alias_local.h</title>
<updated>2005-05-05T21:55:17Z</updated>
<author>
<name>Gleb Smirnoff</name>
<email>glebius@FreeBSD.org</email>
</author>
<published>2005-05-05T21:55:17Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=75bc262006b2b639ae568db84681ecf1053b0ad6'/>
<id>urn:sha1:75bc262006b2b639ae568db84681ecf1053b0ad6</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Play with includes so that libalias can be compiled both as userland</title>
<updated>2005-05-05T19:27:32Z</updated>
<author>
<name>Gleb Smirnoff</name>
<email>glebius@FreeBSD.org</email>
</author>
<published>2005-05-05T19:27:32Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=c649a2e033f92a25f66149051f8e1db05c8a0b96'/>
<id>urn:sha1:c649a2e033f92a25f66149051f8e1db05c8a0b96</id>
<content type='text'>
library and kernel module.
</content>
</entry>
<entry>
<title>natd core dumps when -reverse switch is used because of a bug in</title>
<updated>2005-04-05T13:04:35Z</updated>
<author>
<name>Poul-Henning Kamp</name>
<email>phk@FreeBSD.org</email>
</author>
<published>2005-04-05T13:04:35Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=a8bc22b47a3f197b6a9e981662d7b771057d55dd'/>
<id>urn:sha1:a8bc22b47a3f197b6a9e981662d7b771057d55dd</id>
<content type='text'>
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 &lt;fgil@kloepfer.org&gt;
Confirmed by:	&lt;nicolai@catpipe.net&gt;
PR:		76839
MFC after:	3 days
</content>
</entry>
<entry>
<title>Fix outgoing ICMP on global instance.</title>
<updated>2004-08-14T14:21:09Z</updated>
<author>
<name>Poul-Henning Kamp</name>
<email>phk@FreeBSD.org</email>
</author>
<published>2004-08-14T14:21:09Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=e7581f0fc2b97703022b42069967a8cfca46e8a2'/>
<id>urn:sha1:e7581f0fc2b97703022b42069967a8cfca46e8a2</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Introduce inline {ip,udp,tcp}_next() functions which take a pointer to an</title>
<updated>2004-07-06T12:13:28Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2004-07-06T12:13:28Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=9fa0fd268273d90e765d9ebfe0be87ea4d64e138'/>
<id>urn:sha1:9fa0fd268273d90e765d9ebfe0be87ea4d64e138</id>
<content type='text'>
{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.
</content>
</entry>
<entry>
<title>Rewrite twowords() to access its argument through a char pointer and not</title>
<updated>2004-07-06T09:22:18Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2004-07-06T09:22:18Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=e3e2c216398b34e94a5d10701c8a25745cb910e0'/>
<id>urn:sha1:e3e2c216398b34e94a5d10701c8a25745cb910e0</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>Make libalias WARNS?=6-clean.  This mostly involves renaming variables</title>
<updated>2004-07-05T11:10:57Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2004-07-05T11:10:57Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=ed01a5821550bf9859165f24c95b30c5f1b69f22'/>
<id>urn:sha1:ed01a5821550bf9859165f24c95b30c5f1b69f22</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>Parenthesize return values.</title>
<updated>2004-07-05T10:55:23Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2004-07-05T10:55:23Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=ffcb611a9d2113db86746085135c2d822e3bf357'/>
<id>urn:sha1:ffcb611a9d2113db86746085135c2d822e3bf357</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Mechanical whitespace cleanup.</title>
<updated>2004-07-05T10:53:28Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2004-07-05T10:53:28Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=f311ebb4ec205d59f36b71b24e8695cbb19a31ac'/>
<id>urn:sha1:f311ebb4ec205d59f36b71b24e8695cbb19a31ac</id>
<content type='text'>
</content>
</entry>
</feed>
