ip_conntrack_irc.h
上传用户:jlfgdled
上传日期:2013-04-10
资源大小:33168k
文件大小:1k
源码类别:

Linux/Unix编程

开发平台:

Unix_Linux

  1. /* IRC extension for IP connection tracking.
  2.  * (C) 2000 by Harald Welte <laforge@gnumonks.org>
  3.  * based on RR's ip_conntrack_ftp.h
  4.  *
  5.  * ip_conntrack_irc.h,v 1.6 2000/11/07 18:26:42 laforge Exp
  6.  *
  7.  *      This program is free software; you can redistribute it and/or
  8.  *      modify it under the terms of the GNU General Public License
  9.  *      as published by the Free Software Foundation; either version
  10.  *      2 of the License, or (at your option) any later version.
  11.  *
  12.  *
  13.  */
  14. #ifndef _IP_CONNTRACK_IRC_H
  15. #define _IP_CONNTRACK_IRC_H
  16. /* We record seq number and length of irc ip/port text here: all in
  17.    host order. */
  18. /* This structure is per expected connection */
  19. struct ip_ct_irc_expect
  20. {
  21. /* length of IP address */
  22. u_int32_t len;
  23. /* Port that was to be used */
  24. u_int16_t port;
  25. };
  26. /* This structure exists only once per master */
  27. struct ip_ct_irc_master {
  28. };
  29. #ifdef __KERNEL__
  30. #include <linux/netfilter_ipv4/lockhelp.h>
  31. #define IRC_PORT 6667
  32. struct dccproto {
  33. char* match;
  34. int matchlen;
  35. };
  36. /* Protects irc part of conntracks */
  37. DECLARE_LOCK_EXTERN(ip_irc_lock);
  38. #endif /* __KERNEL__ */
  39. #endif /* _IP_CONNTRACK_IRC_H */