Date: Tue, 6 Jul 2004 12:13:28 +0000 (UTC) From: Dag-Erling Smorgrav <des@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libalias alias.c alias_cuseeme.c alias_db.c alias_ftp.c alias_irc.c alias_local.h alias_nbt.c alias_pptp.c alias_proxy.c alias_skinny.c alias_smedia.c alias_util.c Message-ID: <200407061213.i66CDSkF020020@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
des 2004-07-06 12:13:28 UTC FreeBSD src repository Modified files: lib/libalias alias.c alias_cuseeme.c alias_db.c alias_ftp.c alias_irc.c alias_local.h alias_nbt.c alias_pptp.c alias_proxy.c alias_skinny.c alias_smedia.c alias_util.c Log: Introduce inline {ip,udp,tcp}_next() functions which take a pointer to an {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. Revision Changes Path 1.48 +22 -22 src/lib/libalias/alias.c 1.10 +4 -5 src/lib/libalias/alias_cuseeme.c 1.61 +3 -3 src/lib/libalias/alias_db.c 1.23 +2 -2 src/lib/libalias/alias_ftp.c 1.18 +1 -1 src/lib/libalias/alias_irc.c 1.29 +26 -0 src/lib/libalias/alias_local.h 1.15 +4 -4 src/lib/libalias/alias_nbt.c 1.11 +6 -6 src/lib/libalias/alias_pptp.c 1.18 +3 -3 src/lib/libalias/alias_proxy.c 1.6 +2 -2 src/lib/libalias/alias_skinny.c 1.11 +3 -3 src/lib/libalias/alias_smedia.c 1.15 +1 -1 src/lib/libalias/alias_util.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200407061213.i66CDSkF020020>