ip_nat_irc.h
上传用户:lgb322
上传日期:2013-02-24
资源大小:30529k
文件大小:1k
源码类别:

嵌入式Linux

开发平台:

Unix_Linux

  1. #ifndef _IP_NAT_IRC_H
  2. #define _IP_NAT_IRC_H
  3. /* IRC extension for TCP NAT alteration.
  4.  * (C) 2000 by Harald Welte <laforge@gnumonks.org>
  5.  * based on RR's ip_nat_ftp.h
  6.  *
  7.  * ip_nat_irc.h,v 1.3 2000/09/14 12:22:13 laforge Exp
  8.  *
  9.  *      This program is free software; you can redistribute it and/or
  10.  *      modify it under the terms of the GNU General Public License
  11.  *      as published by the Free Software Foundation; either version
  12.  *      2 of the License, or (at your option) any later version.
  13.  *
  14.  *
  15.  */
  16. #ifndef __KERNEL__
  17. #error Only in kernel.
  18. #endif
  19. /* Protects irc part of conntracks */
  20. DECLARE_LOCK_EXTERN(ip_irc_lock);
  21. /* We keep track of where the last SYN correction was, and the SYN
  22.    offsets before and after that correction.  Two of these (indexed by
  23.    direction). */
  24. struct ip_nat_irc_info
  25. {
  26. u_int32_t syn_correction_pos;                              
  27. int32_t syn_offset_before, syn_offset_after; 
  28. };
  29. #endif /* _IP_NAT_IRC_H */