chiark / gitweb /
upstream changelog: Document merge
[userv-utils.git] / ipif / mech-null.c
1 /*
2  * Null mechanism for udp tunnel (for testing purposes only)
3  *
4  * mechanisms: null
5  * arguments: none
6  *
7  * key values: none
8  * restrictions: none
9  * encoding: no transformation
10  */
11 /*
12  * This file is part of ipif, part of userv-utils
13  *
14  * Copyright 1996-2013 Ian Jackson <ijackson@chiark.greenend.org.uk>
15  * Copyright 1998 David Damerell <damerell@chiark.greenend.org.uk>
16  * Copyright 1999,2003
17  *    Chancellor Masters and Scholars of the University of Cambridge
18  * Copyright 2010 Tony Finch <fanf@dotat.at>
19  *
20  * This is free software; you can redistribute it and/or modify it
21  * under the terms of the GNU General Public License as published by
22  * the Free Software Foundation; either version 3 of the License, or
23  * (at your option) any later version.
24  *
25  * This program is distributed in the hope that it will be useful, but
26  * WITHOUT ANY WARRANTY; without even the implied warranty of
27  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
28  * General Public License for more details.
29  *
30  * You should have received a copy of the GNU General Public License
31  * along with userv-utils; if not, see http://www.gnu.org/licenses/.
32  */
33
34 #include "forwarder.h"
35
36 static void mes_null(struct mechdata **md_r, int *maxprefix_io, int *maxsuffix_io) { }
37 static void mds_null(struct mechdata **md_r) { }
38 static void menc_null(struct mechdata *md, struct buffer *buf) { }
39 static const char *mdec_null(struct mechdata *md, struct buffer *buf) { return 0; }
40
41 STANDARD_MECHANISMLIST("null",null)