~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/net/netfilter/nf_conntrack_seqadj.h

Version: ~ [ linux-5.7 ] ~ [ linux-5.6.15 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.43 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.125 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.182 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.225 ] ~ [ linux-4.8.17 ] ~ [ linux-4.7.10 ] ~ [ linux-4.6.7 ] ~ [ linux-4.5.7 ] ~ [ linux-4.4.225 ] ~ [ linux-4.3.6 ] ~ [ linux-4.2.8 ] ~ [ linux-4.1.52 ] ~ [ linux-4.0.9 ] ~ [ linux-3.19.8 ] ~ [ linux-3.18.140 ] ~ [ linux-3.17.8 ] ~ [ linux-3.16.84 ] ~ [ linux-3.15.10 ] ~ [ linux-3.14.79 ] ~ [ linux-3.13.11 ] ~ [ linux-3.12.74 ] ~ [ linux-3.11.10 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.5 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0 */
  2 #ifndef _NF_CONNTRACK_SEQADJ_H
  3 #define _NF_CONNTRACK_SEQADJ_H
  4 
  5 #include <net/netfilter/nf_conntrack_extend.h>
  6 
  7 /**
  8  * struct nf_ct_seqadj - sequence number adjustment information
  9  *
 10  * @correction_pos: position of the last TCP sequence number modification
 11  * @offset_before: sequence number offset before last modification
 12  * @offset_after: sequence number offset after last modification
 13  */
 14 struct nf_ct_seqadj {
 15         u32             correction_pos;
 16         s32             offset_before;
 17         s32             offset_after;
 18 };
 19 
 20 struct nf_conn_seqadj {
 21         struct nf_ct_seqadj     seq[IP_CT_DIR_MAX];
 22 };
 23 
 24 static inline struct nf_conn_seqadj *nfct_seqadj(const struct nf_conn *ct)
 25 {
 26         return nf_ct_ext_find(ct, NF_CT_EXT_SEQADJ);
 27 }
 28 
 29 static inline struct nf_conn_seqadj *nfct_seqadj_ext_add(struct nf_conn *ct)
 30 {
 31         return nf_ct_ext_add(ct, NF_CT_EXT_SEQADJ, GFP_ATOMIC);
 32 }
 33 
 34 int nf_ct_seqadj_init(struct nf_conn *ct, enum ip_conntrack_info ctinfo,
 35                       s32 off);
 36 int nf_ct_seqadj_set(struct nf_conn *ct, enum ip_conntrack_info ctinfo,
 37                      __be32 seq, s32 off);
 38 void nf_ct_tcp_seqadj_set(struct sk_buff *skb, struct nf_conn *ct,
 39                           enum ip_conntrack_info ctinfo, s32 off);
 40 
 41 int nf_ct_seq_adjust(struct sk_buff *skb, struct nf_conn *ct,
 42                      enum ip_conntrack_info ctinfo, unsigned int protoff);
 43 s32 nf_ct_seq_offset(const struct nf_conn *ct, enum ip_conntrack_dir, u32 seq);
 44 
 45 int nf_conntrack_seqadj_init(void);
 46 void nf_conntrack_seqadj_fini(void);
 47 
 48 #endif /* _NF_CONNTRACK_SEQADJ_H */
 49 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | Wiki (Japanese) | Wiki (English) | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

osdn.jp