1 /* 2 * Copyright (c) 1994-2004 3 * Ohio University. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that: (1) source code 7 * distributions retain the above copyright notice and this paragraph 8 * in its entirety, (2) distributions including binary code include 9 * the above copyright notice and this paragraph in its entirety in 10 * the documentation or other materials provided with the 11 * distribution, and (3) all advertising materials mentioning features 12 * or use of this software display the following acknowledgment: 13 * ``This product includes software developed by the Ohio University 14 * Internetworking Research Laboratory.'' Neither the name of the 15 * University nor the names of its contributors may be used to endorse 16 * or promote products derived from this software without specific 17 * prior written permission. 18 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR 19 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED 20 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 21 * 22 * Author: Shawn Ostermann 23 * School of Electrical Engineering and Computer Science 24 * Ohio University 25 * Athens, OH 26 * ostermann@cs.ohiou.edu 27 */ 28 29 #define MAX_LINE_LEN 256 30 #define UDP_REMOVE_LIVE_CONN_INTERVAL 60 31 32 /* header file for inbounds.c */ 33 int inbounds_init(int argc, char *argv[]); 34 void inbounds_tcp_read(struct ip *pip, tcp_pair *ptp, void *plast, void *pmod_data); 35 void inbounds_done(void); 36 void inbounds_usage(void); 37 void inbounds_udp_read(struct ip *pip, udp_pair *pup, void *plast, void *pmodstruct); 38 void inbounds_nontcpudp_read(struct ip *pip, void *plast); 39 void *inbounds_tcp_newconn( tcp_pair *ptp); 40 void inbounds_tcp_deleteconn(tcp_pair *ptp, void *mod_data); 41 void *inbounds_udp_newconn( udp_pair *pup); 42 void inbounds_udp_deleteconn(udp_pair *pup, void *mod_data); 43