1*fb9475d6Sderaadt /* $OpenBSD: connection.h,v 1.5 2004/04/15 18:39:25 deraadt Exp $ */ 250083863Sniklas /* $EOM: connection.h,v 1.6 1999/06/07 00:10:48 ho Exp $ */ 35ddb0317Sniklas 45ddb0317Sniklas /* 55ddb0317Sniklas * Copyright (c) 1999 Niklas Hallqvist. All rights reserved. 650083863Sniklas * Copyright (c) 1999 Hakan Olsson. All rights reserved. 75ddb0317Sniklas * 85ddb0317Sniklas * Redistribution and use in source and binary forms, with or without 95ddb0317Sniklas * modification, are permitted provided that the following conditions 105ddb0317Sniklas * are met: 115ddb0317Sniklas * 1. Redistributions of source code must retain the above copyright 125ddb0317Sniklas * notice, this list of conditions and the following disclaimer. 135ddb0317Sniklas * 2. Redistributions in binary form must reproduce the above copyright 145ddb0317Sniklas * notice, this list of conditions and the following disclaimer in the 155ddb0317Sniklas * documentation and/or other materials provided with the distribution. 165ddb0317Sniklas * 175ddb0317Sniklas * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 185ddb0317Sniklas * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 195ddb0317Sniklas * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 205ddb0317Sniklas * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 215ddb0317Sniklas * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 225ddb0317Sniklas * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 235ddb0317Sniklas * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 245ddb0317Sniklas * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 255ddb0317Sniklas * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 265ddb0317Sniklas * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 275ddb0317Sniklas */ 285ddb0317Sniklas 295ddb0317Sniklas /* 305ddb0317Sniklas * This code was written under funding by Ericsson Radio Systems. 315ddb0317Sniklas */ 325ddb0317Sniklas 335ddb0317Sniklas /* 345ddb0317Sniklas * The connection module deals with connections that should always be up. 355ddb0317Sniklas */ 365ddb0317Sniklas 375ddb0317Sniklas #ifndef _CONNECTION_H_ 385ddb0317Sniklas #define _CONNECTION_H_ 395ddb0317Sniklas 40fd6b73d1Sniklas #include <sys/types.h> 41fd6b73d1Sniklas 4250083863Sniklas extern int connection_exist(char *); 435ddb0317Sniklas extern void connection_init(void); 44fd6b73d1Sniklas extern char *connection_passive_lookup_by_ids(u_int8_t *, u_int8_t *); 45fd6b73d1Sniklas extern void connection_reinit(void); 46fd6b73d1Sniklas extern void connection_report(void); 475ddb0317Sniklas extern int connection_setup(char *); 48fd6b73d1Sniklas extern int connection_record_passive(char *); 495ddb0317Sniklas extern void connection_teardown(char *); 505ddb0317Sniklas 515ddb0317Sniklas #endif /* _CONNECTION_H_ */ 52