mirror of
https://github.com/ChronosX88/netsukuku.git
synced 2024-11-29 21:52:18 +00:00
268 lines
38 KiB
HTML
268 lines
38 KiB
HTML
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||
|
<head>
|
||
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||
|
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
||
|
<meta name="generator" content="Doxygen 1.8.6"/>
|
||
|
<title>The Netsukuku Project: src/mark.h Source File</title>
|
||
|
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
|
||
|
<script type="text/javascript" src="../../jquery.js"></script>
|
||
|
<script type="text/javascript" src="../../dynsections.js"></script>
|
||
|
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
|
||
|
<script type="text/javascript" src="../../resize.js"></script>
|
||
|
<script type="text/javascript" src="../../navtree.js"></script>
|
||
|
<script type="text/javascript">
|
||
|
$(document).ready(initResizable);
|
||
|
$(window).load(resizeHeight);
|
||
|
</script>
|
||
|
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
|
||
|
<script type="text/javascript" src="../../search/search.js"></script>
|
||
|
<script type="text/javascript">
|
||
|
$(document).ready(function() { searchBox.OnSelectItem(0); });
|
||
|
</script>
|
||
|
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
|
||
|
</head>
|
||
|
<body>
|
||
|
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
||
|
<div id="titlearea">
|
||
|
<table cellspacing="0" cellpadding="0">
|
||
|
<tbody>
|
||
|
<tr style="height: 56px;">
|
||
|
<td style="padding-left: 0.5em;">
|
||
|
<div id="projectname">The Netsukuku Project
|
||
|
 <span id="projectnumber">0.0.9</span>
|
||
|
</div>
|
||
|
<div id="projectbrief">An Alternative routing method</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</tbody>
|
||
|
</table>
|
||
|
</div>
|
||
|
<!-- end header part -->
|
||
|
<!-- Generated by Doxygen 1.8.6 -->
|
||
|
<script type="text/javascript">
|
||
|
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
|
||
|
</script>
|
||
|
<div id="navrow1" class="tabs">
|
||
|
<ul class="tablist">
|
||
|
<li><a href="../../index.html"><span>Main Page</span></a></li>
|
||
|
<li><a href="../../annotated.html"><span>Data Structures</span></a></li>
|
||
|
<li class="current"><a href="../../files.html"><span>Files</span></a></li>
|
||
|
<li>
|
||
|
<div id="MSearchBox" class="MSearchBoxInactive">
|
||
|
<span class="left">
|
||
|
<img id="MSearchSelect" src="../../search/mag_sel.png"
|
||
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
||
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
||
|
alt=""/>
|
||
|
<input type="text" id="MSearchField" value="Search" accesskey="S"
|
||
|
onfocus="searchBox.OnSearchFieldFocus(true)"
|
||
|
onblur="searchBox.OnSearchFieldFocus(false)"
|
||
|
onkeyup="searchBox.OnSearchFieldChange(event)"/>
|
||
|
</span><span class="right">
|
||
|
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="../../search/close.png" alt=""/></a>
|
||
|
</span>
|
||
|
</div>
|
||
|
</li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
<div id="navrow2" class="tabs2">
|
||
|
<ul class="tablist">
|
||
|
<li><a href="../../files.html"><span>File List</span></a></li>
|
||
|
<li><a href="../../globals.html"><span>Globals</span></a></li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
</div><!-- top -->
|
||
|
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||
|
<div id="nav-tree">
|
||
|
<div id="nav-tree-contents">
|
||
|
<div id="nav-sync" class="sync"></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div id="splitbar" style="-moz-user-select:none;"
|
||
|
class="ui-resizable-handle">
|
||
|
</div>
|
||
|
</div>
|
||
|
<script type="text/javascript">
|
||
|
$(document).ready(function(){initNavTree('d3/de6/mark_8h_source.html','../../');});
|
||
|
</script>
|
||
|
<div id="doc-content">
|
||
|
<!-- window showing the filter options -->
|
||
|
<div id="MSearchSelectWindow"
|
||
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
||
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
||
|
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
||
|
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark"> </span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark"> </span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark"> </span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark"> </span>Macros</a></div>
|
||
|
|
||
|
<!-- iframe showing the search results (closed by default) -->
|
||
|
<div id="MSearchResultsWindow">
|
||
|
<iframe src="javascript:void(0)" frameborder="0"
|
||
|
name="MSearchResults" id="MSearchResults">
|
||
|
</iframe>
|
||
|
</div>
|
||
|
|
||
|
<div class="header">
|
||
|
<div class="headertitle">
|
||
|
<div class="title">mark.h</div> </div>
|
||
|
</div><!--header-->
|
||
|
<div class="contents">
|
||
|
<a href="../../d3/de6/mark_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="preprocessor">#ifndef MARK_H</span></div>
|
||
|
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="preprocessor">#define MARK_H</span></div>
|
||
|
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> </div>
|
||
|
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="preprocessor">#include <linux/version.h></span></div>
|
||
|
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> </div>
|
||
|
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment">//original inclusions</span></div>
|
||
|
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="preprocessor">#if LINUX_VERSION_CODE <= KERNEL_VERSION(2, 7, 0)</span></div>
|
||
|
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="preprocessor">#if 0</span></div>
|
||
|
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="preprocessor"> #include "<a class="code" href="../../d1/d6b/libiptc_8h.html">libiptc/libiptc.h</a>"</span></div>
|
||
|
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="preprocessor"> #include <linux/netfilter_ipv4/ip_conntrack.h></span></div>
|
||
|
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="preprocessor"> #include <linux/netfilter_ipv4/ip_conntrack_tuple.h></span></div>
|
||
|
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="preprocessor"> #include "<a class="code" href="../../d1/da3/ipt__conntrack_8h.html">libiptc/ipt_conntrack.h</a>"</span></div>
|
||
|
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="preprocessor"> #include "<a class="code" href="../../d2/df7/ipt__connmark_8h.html">libiptc/ipt_connmark.h</a>"</span></div>
|
||
|
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="preprocessor"> #include "<a class="code" href="../../dd/d08/ipt__CONNMARK_8h.html">libiptc/ipt_CONNMARK.h</a>"</span></div>
|
||
|
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="preprocessor"> #endif</span></div>
|
||
|
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> </div>
|
||
|
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="preprocessor"> #if 1</span></div>
|
||
|
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="preprocessor"> #include "<a class="code" href="../../d1/d6b/libiptc_8h.html">libiptc/libiptc.h</a>"</span></div>
|
||
|
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="preprocessor"> #if 1</span></div>
|
||
|
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="preprocessor"> #include <linux/netfilter/nf_conntrack_common.h></span></div>
|
||
|
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor"> #endif</span></div>
|
||
|
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor"> #if 0</span></div>
|
||
|
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor"> #include <linux/netfilter_ipv4/ipt_conntrack_tuple.h></span></div>
|
||
|
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor"> #endif</span></div>
|
||
|
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor">#include "<a class="code" href="../../d1/da3/ipt__conntrack_8h.html">libiptc/ipt_conntrack.h</a>"</span></div>
|
||
|
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="preprocessor">#include "<a class="code" href="../../d2/df7/ipt__connmark_8h.html">libiptc/ipt_connmark.h</a>"</span></div>
|
||
|
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#include "<a class="code" href="../../dd/d08/ipt__CONNMARK_8h.html">libiptc/ipt_CONNMARK.h</a>"</span></div>
|
||
|
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="preprocessor"> #endif</span></div>
|
||
|
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> </div>
|
||
|
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  <span class="comment">/* 2010 fixes for debian package */</span></div>
|
||
|
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="preprocessor"> #if 0</span></div>
|
||
|
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="preprocessor"> #include "<a class="code" href="../../d1/d6b/libiptc_8h.html">libiptc/libiptc.h</a>"</span></div>
|
||
|
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="preprocessor"> #include <linux/netfilter/nf_conntrack_common.h></span></div>
|
||
|
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span> <span class="preprocessor"> #include <linux/netfilter_ipv4/ipt_conntrack.h></span></div>
|
||
|
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span> <span class="preprocessor"> #include <linux/netfilter_ipv4/ipt_connmark.h></span></div>
|
||
|
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span> <span class="preprocessor"> #include <linux/netfilter_ipv4/ipt_CONNMARK.h></span></div>
|
||
|
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span> <span class="preprocessor"> #endif</span></div>
|
||
|
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span> <span class="preprocessor">#endif</span></div>
|
||
|
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span> </div>
|
||
|
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span> <span class="preprocessor">#include "<a class="code" href="../../d1/d6b/libiptc_8h.html">libiptc/libiptc.h</a>"</span></div>
|
||
|
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span> <span class="preprocessor">#include <linux/netfilter/nf_conntrack_common.h></span></div>
|
||
|
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span> <span class="preprocessor">#include "<a class="code" href="../../d1/da3/ipt__conntrack_8h.html">libiptc/ipt_conntrack.h</a>"</span></div>
|
||
|
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span> <span class="preprocessor">#include "<a class="code" href="../../d2/df7/ipt__connmark_8h.html">libiptc/ipt_connmark.h</a>"</span></div>
|
||
|
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span> <span class="preprocessor">#include "<a class="code" href="../../dd/d08/ipt__CONNMARK_8h.html">libiptc/ipt_CONNMARK.h</a>"</span></div>
|
||
|
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span> </div>
|
||
|
<div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="../../d3/de6/mark_8h.html#a41fc7a1230e9fc4703fa36a86438c16a"> 46</a></span> <span class="preprocessor">#define MANGLE_TABLE "mangle"</span></div>
|
||
|
<div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="../../d3/de6/mark_8h.html#aa92ca78f91d005337f0619e13dcbf4a4"> 47</a></span> <span class="preprocessor">#define FILTER_TABLE "filter"</span></div>
|
||
|
<div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="../../d3/de6/mark_8h.html#ae4e81f7be09c0099e216611d14eb0785"> 48</a></span> <span class="preprocessor">#define NTK_MARK_CHAIN "ntk_mark_chain"</span></div>
|
||
|
<div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="../../d3/de6/mark_8h.html#ab7639154e9813d9f8369f0809f7599b7"> 49</a></span> <span class="preprocessor">#define CHAIN_OUTPUT "OUTPUT"</span></div>
|
||
|
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span> <span class="preprocessor">#define CHAIN_POSTROUTING "POSTROUTING"</span></div>
|
||
|
<div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="../../d3/de6/mark_8h.html#a26807446309325a9b545d388f58aeb91"> 51</a></span> <span class="preprocessor">#define CHAIN_PREROUTING "PREROUTING"</span></div>
|
||
|
<div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="../../d3/de6/mark_8h.html#ab5679c66707bfd2add5fc3423c1d08ca"> 52</a></span> <span class="preprocessor">#define CHAIN_POSTROUTING "POSTROUTING"</span></div>
|
||
|
<div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="../../d3/de6/mark_8h.html#a0a42a5c855e0b5569f9746cbbf471cb6"> 53</a></span> <span class="preprocessor">#define CHAIN_FORWARD "FORWARD"</span></div>
|
||
|
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span> </div>
|
||
|
<div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="../../d3/de6/mark_8h.html#a110904c962e0d938983c9afe1811b25f"> 55</a></span> <span class="preprocessor">#define MOD_CONNTRACK "conntrack"</span></div>
|
||
|
<div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="../../d3/de6/mark_8h.html#af9c7b8b257825865592a6a9942e18bd8"> 56</a></span> <span class="preprocessor">#define MOD_CONNMARK "CONNMARK"</span></div>
|
||
|
<div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="../../d3/de6/mark_8h.html#a978fabf499a36d615e7ce8ab7867365a"> 57</a></span> <span class="preprocessor">#define MARK_TARGET "MARK"</span></div>
|
||
|
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span> </div>
|
||
|
<div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="../../d3/de6/mark_8h.html#ade8bba361d81793d9cca279860c36488"> 59</a></span> <span class="preprocessor">#define NTK_NET_STR "10.0.0.0"</span></div>
|
||
|
<div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="../../d3/de6/mark_8h.html#a02686adafcc67933bbf08a87f5c42edb"> 60</a></span> <span class="preprocessor">#define NTK_NET_MASK_STR "255.0.0.0"</span></div>
|
||
|
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span> </div>
|
||
|
<div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="../../d3/de6/mark_8h.html#a23f4ae361454515c34d79dccf0a7ac83"> 62</a></span> <span class="preprocessor">#define IPT_ENTRY_SZ sizeof(struct ipt_entry)</span></div>
|
||
|
<div class="line"><a name="l00063"></a><span class="lineno"><a class="line" href="../../d3/de6/mark_8h.html#a3419b47e4ee4e2642f0b6437fae302bf"> 63</a></span> <span class="preprocessor">#define IPT_ENTRY_MATCH_SZ sizeof(struct ipt_entry_match)</span></div>
|
||
|
<div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="../../d3/de6/mark_8h.html#af294401f94d7069d124920fa6ec1215d"> 64</a></span> <span class="preprocessor">#define IPT_ENTRY_TARGET_SZ sizeof(struct ipt_entry_target)</span></div>
|
||
|
<div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="../../d3/de6/mark_8h.html#a6eb8e2a1524f921687ed4b5f018941e8"> 65</a></span> <span class="preprocessor">#define IPT_CT_INFO_SZ sizeof(struct ipt_conntrack_info)</span></div>
|
||
|
<div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="../../d3/de6/mark_8h.html#ab17faf26290c73b79e21b1fea17f07a2"> 66</a></span> <span class="preprocessor">#define IPT_CM_TARGET_INFO_SZ sizeof(struct ipt_connmark_target_info)</span></div>
|
||
|
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span> </div>
|
||
|
<div class="line"><a name="l00068"></a><span class="lineno"><a class="line" href="../../d3/de6/mark_8h.html#ad0d5c9bb8f80da83dd09c2289a4ee641"> 68</a></span> <span class="preprocessor">#define MATCH_SZ IPT_ENTRY_MATCH_SZ+IPT_CT_INFO_SZ</span></div>
|
||
|
<div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="../../d3/de6/mark_8h.html#a4c2e9d7267ef9662ea939278b7dc9d69"> 69</a></span> <span class="preprocessor">#define TARGET_SZ IPT_ENTRY_TARGET_SZ+IPT_CM_TARGET_INFO_SZ</span></div>
|
||
|
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span> </div>
|
||
|
<div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="../../d3/de6/mark_8h.html#a3ddd8afd46e7cd5f5d3bc8052a310e03"> 71</a></span> <span class="preprocessor">#define RESTORE_OUTPUT_RULE_SZ IPT_ENTRY_SZ+MATCH_SZ+TARGET_SZ</span></div>
|
||
|
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span> </div>
|
||
|
<div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="../../d3/de6/mark_8h.html#a5f17e85db01580ef2510d16cd28c8e9c"> 73</a></span> <span class="preprocessor">#define OFFSET_MATCH IPT_ENTRY_SZ</span></div>
|
||
|
<div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="../../d3/de6/mark_8h.html#a655119eca9df37a0a1921fb60eecdca3"> 74</a></span> <span class="preprocessor">#define OFFSET_MATCH_INFO OFFSET_MATCH+IPT_ENTRY_MATCH_SZ</span></div>
|
||
|
<div class="line"><a name="l00075"></a><span class="lineno"><a class="line" href="../../d3/de6/mark_8h.html#a560d948b13ed2e1498a041bd2b0c95cc"> 75</a></span> <span class="preprocessor">#define OFFSET_TARGET OFFSET_MATCH_INFO+IPT_CT_INFO_SZ</span></div>
|
||
|
<div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="../../d3/de6/mark_8h.html#a0fce38cbbaa2a65f1ea936cdfcbeec1e"> 76</a></span> <span class="preprocessor">#define OFFSET_TARGET_INFO OFFSET_TARGET+IPT_ENTRY_TARGET_SZ</span></div>
|
||
|
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span> </div>
|
||
|
<div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="../../d3/de6/mark_8h.html#a75e4225ff09ece74a7cac3265a9fc13b"> 78</a></span> <span class="preprocessor">#define MARK_RULE_SZ IPT_ENTRY_SZ+TARGET_SZ</span></div>
|
||
|
<div class="line"><a name="l00079"></a><span class="lineno"><a class="line" href="../../d3/de6/mark_8h.html#a076d3c513f08bfb600ee2087b5241f1d"> 79</a></span> <span class="preprocessor">#define MAX_MARK_RULES 100</span></div>
|
||
|
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span> </div>
|
||
|
<div class="line"><a name="l00081"></a><span class="lineno"><a class="line" href="../../d3/de6/mark_8h.html#ada3f9d5c7c73e78aee1403188b747849"> 81</a></span> <span class="preprocessor">#define NTK_FORWARD_RULE_SZ OFFSET_TARGET_INFO+4</span></div>
|
||
|
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span> </div>
|
||
|
<div class="line"><a name="l00083"></a><span class="lineno"><a class="line" href="../../d3/de6/mark_8h.html#a673f9af568ee9cf57cc7794d00433d55"> 83</a></span> <span class="preprocessor">#define IGW_FILTER_RULE_SZ IPT_ENTRY_SZ+IPT_ENTRY_SZ+4</span></div>
|
||
|
<div class="line"><a name="l00084"></a><span class="lineno"><a class="line" href="../../d3/de6/mark_8h.html#ab6a85c440cbe126697f3fc3217fb1fa6"> 84</a></span> <span class="preprocessor">#define INET_MARK 25</span></div>
|
||
|
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span> </div>
|
||
|
<div class="line"><a name="l00086"></a><span class="lineno"><a class="line" href="../../d3/de6/mark_8h.html#a44e2ff9568b65325b5deeb440f1bc523"> 86</a></span> <span class="preprocessor">#define MAX_RULE_SZ RESTORE_OUTPUT_RULE_SZ</span></div>
|
||
|
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span> </div>
|
||
|
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span> <span class="comment">//struct in_addr inet_dst,inet_dst_mask;</span></div>
|
||
|
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span> </div>
|
||
|
<div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="../../de/dbf/structrule__store.html"> 90</a></span> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="../../de/dbf/structrule__store.html">rule_store</a> {</div>
|
||
|
<div class="line"><a name="l00091"></a><span class="lineno"><a class="line" href="../../de/dbf/structrule__store.html#ac5baee796a36897f1ea489a428015ac9"> 91</a></span>  <span class="keywordtype">char</span> <a class="code" href="../../de/dbf/structrule__store.html#ac5baee796a36897f1ea489a428015ac9">e</a>[<a class="code" href="../../d3/de6/mark_8h.html#a3ddd8afd46e7cd5f5d3bc8052a310e03">RESTORE_OUTPUT_RULE_SZ</a>];</div>
|
||
|
<div class="line"><a name="l00092"></a><span class="lineno"><a class="line" href="../../de/dbf/structrule__store.html#adceae73f1086702742797ff6cd76726f"> 92</a></span>  <span class="keywordtype">int</span> <a class="code" href="../../de/dbf/structrule__store.html#adceae73f1086702742797ff6cd76726f">sz</a>;</div>
|
||
|
<div class="line"><a name="l00093"></a><span class="lineno"><a class="line" href="../../de/dbf/structrule__store.html#af86b1cafbd6182b68e63aae244fc6ab8"> 93</a></span>  <span class="keywordtype">char</span> *<a class="code" href="../../de/dbf/structrule__store.html#af86b1cafbd6182b68e63aae244fc6ab8">chain</a>;</div>
|
||
|
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span> } <a class="code" href="../../d3/de6/mark_8h.html#ab95734c79a210d38183d3ff0cb972d88">rule_store</a>;</div>
|
||
|
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span> </div>
|
||
|
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span> <span class="comment">/* Functions */</span></div>
|
||
|
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span> </div>
|
||
|
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span> <span class="keywordtype">int</span> <a class="code" href="../../d3/de6/mark_8h.html#a0c43ef6d239a67007d554dc82e2bf3f6">table_init</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *table, <a class="code" href="../../d1/d6b/libiptc_8h.html#a2748325528965622493003928cfaf6fd">iptc_handle_t</a> *t);</div>
|
||
|
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span> <span class="keywordtype">int</span> <a class="code" href="../../d3/de6/mark_8h.html#a60f18561aa43df1660ba248a0d8b7e9a">insert_rule</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *rule,<a class="code" href="../../d1/d6b/libiptc_8h.html#a2748325528965622493003928cfaf6fd">iptc_handle_t</a> *t,<span class="keyword">const</span> <span class="keywordtype">char</span> *chain,<span class="keywordtype">int</span> pos);</div>
|
||
|
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span> <span class="keywordtype">int</span> <a class="code" href="../../d3/de6/mark_8h.html#ad51a5da17eeb62f880494a790003d7dd">append_rule</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *rule,<a class="code" href="../../d1/d6b/libiptc_8h.html#a2748325528965622493003928cfaf6fd">iptc_handle_t</a> *t,<span class="keyword">const</span> <span class="keywordtype">char</span> *chain);</div>
|
||
|
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span> <span class="keywordtype">int</span> <a class="code" href="../../d3/de6/mark_8h.html#a26d05a69abbae35daae19fdbf6b0ed37">commit_rules</a>(<a class="code" href="../../d1/d6b/libiptc_8h.html#a2748325528965622493003928cfaf6fd">iptc_handle_t</a> *t);</div>
|
||
|
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span> <span class="keywordtype">void</span> <a class="code" href="../../d3/de6/mark_8h.html#a3e2f008ced2b3d6a4502ef9f8b5586e2">restore_output_rule_init</a>(<span class="keywordtype">char</span> *rule);</div>
|
||
|
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span> <span class="keywordtype">void</span> <a class="code" href="../../d3/de6/mark_8h.html#aa2ac4a9fa8715a9bfa35588c986d666f">ntk_forward_rule_init</a>(<span class="keywordtype">char</span> *rule);</div>
|
||
|
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span> <span class="keywordtype">void</span> <a class="code" href="../../d3/de6/mark_8h.html#ae25f34efd8149097818c5b089c91afd7">mark_rule_init</a>(<span class="keywordtype">char</span> *rule,<span class="keywordtype">char</span> *outiface,<span class="keywordtype">int</span> outiface_num);</div>
|
||
|
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span> <span class="keywordtype">void</span> <a class="code" href="../../d3/de6/mark_8h.html#a50b80d32a52e77946550b618b423dc16">igw_mark_rule_init</a>(<span class="keywordtype">char</span> *rule);</div>
|
||
|
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span> <span class="keywordtype">int</span> <a class="code" href="../../d3/de6/mark_8h.html#acc021e7bc72ddf7254f266632ffa8a52">ntk_mark_chain_init</a>(<a class="code" href="../../d1/d6b/libiptc_8h.html#a2748325528965622493003928cfaf6fd">iptc_handle_t</a> *t);</div>
|
||
|
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span> <span class="keywordtype">int</span> <a class="code" href="../../d3/de6/mark_8h.html#a76823239efa7a0e6f5b55634dff9f53f">store_rules</a>();</div>
|
||
|
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span> <span class="keywordtype">int</span> <a class="code" href="../../d3/de6/mark_8h.html#a1241770376c64ee1ee386784a6e6c1d0">mark_init</a>(<span class="keywordtype">int</span> igw);</div>
|
||
|
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span> <span class="keywordtype">int</span> <a class="code" href="../../d3/de6/mark_8h.html#a21fd94f42c6edacfb0810ed03c6b726e">count_ntk_mark_chain</a>(<a class="code" href="../../d1/d6b/libiptc_8h.html#a2748325528965622493003928cfaf6fd">iptc_handle_t</a> *t);</div>
|
||
|
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span> <span class="keywordtype">int</span> <a class="code" href="../../d3/de6/mark_8h.html#a5c3adca3da96bafac143438ab9b75f66">create_mark_rules</a>(<span class="keywordtype">int</span> n);</div>
|
||
|
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span> <span class="keywordtype">int</span> <a class="code" href="../../d3/de6/mark_8h.html#a155288a49eecef45917d64c265010e02">delete_ntk_forward_chain</a>(<a class="code" href="../../d1/d6b/libiptc_8h.html#a2748325528965622493003928cfaf6fd">iptc_handle_t</a> *t);</div>
|
||
|
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span> <span class="keywordtype">int</span> <a class="code" href="../../d3/de6/mark_8h.html#a58b54808330aab0f5d6bba8ca58f86c6">delete_first_rule</a>(<a class="code" href="../../d1/d6b/libiptc_8h.html#a2748325528965622493003928cfaf6fd">iptc_handle_t</a> *t,<span class="keyword">const</span> <span class="keywordtype">char</span> *chain);</div>
|
||
|
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span> <span class="keywordtype">int</span> <a class="code" href="../../d3/de6/mark_8h.html#a3ba74fd839273760b943435a4761b89d">rule_position</a>(<a class="code" href="../../de/dbf/structrule__store.html">rule_store</a> *rule,<a class="code" href="../../d1/d6b/libiptc_8h.html#a2748325528965622493003928cfaf6fd">iptc_handle_t</a> *t);</div>
|
||
|
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span> <span class="keywordtype">int</span> <a class="code" href="../../d3/de6/mark_8h.html#ac8de283fd015ee2dc49c172db4e7dab9">delete_rule</a>(<a class="code" href="../../de/dbf/structrule__store.html">rule_store</a> *rule,<a class="code" href="../../d1/d6b/libiptc_8h.html#a2748325528965622493003928cfaf6fd">iptc_handle_t</a> *t);</div>
|
||
|
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span> <span class="keywordtype">int</span> <a class="code" href="../../d3/de6/mark_8h.html#abce88ee61b36a36e1e58278165d6004d">mark_close</a>();</div>
|
||
|
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span> </div>
|
||
|
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span> <span class="preprocessor">#endif </span><span class="comment">/* MARK_H */</span><span class="preprocessor"></span></div>
|
||
|
<div class="ttc" id="structrule__store_html"><div class="ttname"><a href="../../de/dbf/structrule__store.html">rule_store</a></div><div class="ttdef"><b>Definition:</b> mark.h:90</div></div>
|
||
|
<div class="ttc" id="mark_8h_html_acc021e7bc72ddf7254f266632ffa8a52"><div class="ttname"><a href="../../d3/de6/mark_8h.html#acc021e7bc72ddf7254f266632ffa8a52">ntk_mark_chain_init</a></div><div class="ttdeci">int ntk_mark_chain_init(iptc_handle_t *t)</div><div class="ttdef"><b>Definition:</b> mark.c:268</div></div>
|
||
|
<div class="ttc" id="mark_8h_html_a26d05a69abbae35daae19fdbf6b0ed37"><div class="ttname"><a href="../../d3/de6/mark_8h.html#a26d05a69abbae35daae19fdbf6b0ed37">commit_rules</a></div><div class="ttdeci">int commit_rules(iptc_handle_t *t)</div><div class="ttdef"><b>Definition:</b> mark.c:104</div></div>
|
||
|
<div class="ttc" id="mark_8h_html_ad51a5da17eeb62f880494a790003d7dd"><div class="ttname"><a href="../../d3/de6/mark_8h.html#ad51a5da17eeb62f880494a790003d7dd">append_rule</a></div><div class="ttdeci">int append_rule(const char *rule, iptc_handle_t *t, const char *chain)</div><div class="ttdef"><b>Definition:</b> mark.c:88</div></div>
|
||
|
<div class="ttc" id="mark_8h_html_a155288a49eecef45917d64c265010e02"><div class="ttname"><a href="../../d3/de6/mark_8h.html#a155288a49eecef45917d64c265010e02">delete_ntk_forward_chain</a></div><div class="ttdeci">int delete_ntk_forward_chain(iptc_handle_t *t)</div><div class="ttdef"><b>Definition:</b> mark.c:564</div></div>
|
||
|
<div class="ttc" id="mark_8h_html_a50b80d32a52e77946550b618b423dc16"><div class="ttname"><a href="../../d3/de6/mark_8h.html#a50b80d32a52e77946550b618b423dc16">igw_mark_rule_init</a></div><div class="ttdeci">void igw_mark_rule_init(char *rule)</div><div class="ttdef"><b>Definition:</b> mark.c:243</div></div>
|
||
|
<div class="ttc" id="mark_8h_html_a58b54808330aab0f5d6bba8ca58f86c6"><div class="ttname"><a href="../../d3/de6/mark_8h.html#a58b54808330aab0f5d6bba8ca58f86c6">delete_first_rule</a></div><div class="ttdeci">int delete_first_rule(iptc_handle_t *t, const char *chain)</div><div class="ttdef"><b>Definition:</b> mark.c:586</div></div>
|
||
|
<div class="ttc" id="mark_8h_html_a60f18561aa43df1660ba248a0d8b7e9a"><div class="ttname"><a href="../../d3/de6/mark_8h.html#a60f18561aa43df1660ba248a0d8b7e9a">insert_rule</a></div><div class="ttdeci">int insert_rule(const char *rule, iptc_handle_t *t, const char *chain, int pos)</div><div class="ttdef"><b>Definition:</b> mark.c:72</div></div>
|
||
|
<div class="ttc" id="libiptc_8h_html_a2748325528965622493003928cfaf6fd"><div class="ttname"><a href="../../d1/d6b/libiptc_8h.html#a2748325528965622493003928cfaf6fd">iptc_handle_t</a></div><div class="ttdeci">struct iptc_handle * iptc_handle_t</div><div class="ttdef"><b>Definition:</b> libiptc.h:51</div></div>
|
||
|
<div class="ttc" id="mark_8h_html_a0c43ef6d239a67007d554dc82e2bf3f6"><div class="ttname"><a href="../../d3/de6/mark_8h.html#a0c43ef6d239a67007d554dc82e2bf3f6">table_init</a></div><div class="ttdeci">int table_init(const char *table, iptc_handle_t *t)</div><div class="ttdef"><b>Definition:</b> mark.c:55</div></div>
|
||
|
<div class="ttc" id="structrule__store_html_adceae73f1086702742797ff6cd76726f"><div class="ttname"><a href="../../de/dbf/structrule__store.html#adceae73f1086702742797ff6cd76726f">rule_store::sz</a></div><div class="ttdeci">int sz</div><div class="ttdef"><b>Definition:</b> mark.h:92</div></div>
|
||
|
<div class="ttc" id="mark_8h_html_a76823239efa7a0e6f5b55634dff9f53f"><div class="ttname"><a href="../../d3/de6/mark_8h.html#a76823239efa7a0e6f5b55634dff9f53f">store_rules</a></div><div class="ttdeci">int store_rules()</div><div class="ttdef"><b>Definition:</b> mark.c:297</div></div>
|
||
|
<div class="ttc" id="mark_8h_html_aa2ac4a9fa8715a9bfa35588c986d666f"><div class="ttname"><a href="../../d3/de6/mark_8h.html#aa2ac4a9fa8715a9bfa35588c986d666f">ntk_forward_rule_init</a></div><div class="ttdeci">void ntk_forward_rule_init(char *rule)</div><div class="ttdef"><b>Definition:</b> mark.c:170</div></div>
|
||
|
<div class="ttc" id="mark_8h_html_ac8de283fd015ee2dc49c172db4e7dab9"><div class="ttname"><a href="../../d3/de6/mark_8h.html#ac8de283fd015ee2dc49c172db4e7dab9">delete_rule</a></div><div class="ttdeci">int delete_rule(rule_store *rule, iptc_handle_t *t)</div><div class="ttdef"><b>Definition:</b> mark.c:633</div></div>
|
||
|
<div class="ttc" id="structrule__store_html_af86b1cafbd6182b68e63aae244fc6ab8"><div class="ttname"><a href="../../de/dbf/structrule__store.html#af86b1cafbd6182b68e63aae244fc6ab8">rule_store::chain</a></div><div class="ttdeci">char * chain</div><div class="ttdef"><b>Definition:</b> mark.h:93</div></div>
|
||
|
<div class="ttc" id="mark_8h_html_a21fd94f42c6edacfb0810ed03c6b726e"><div class="ttname"><a href="../../d3/de6/mark_8h.html#a21fd94f42c6edacfb0810ed03c6b726e">count_ntk_mark_chain</a></div><div class="ttdeci">int count_ntk_mark_chain(iptc_handle_t *t)</div><div class="ttdef"><b>Definition:</b> mark.c:489</div></div>
|
||
|
<div class="ttc" id="ipt__connmark_8h_html"><div class="ttname"><a href="../../d2/df7/ipt__connmark_8h.html">ipt_connmark.h</a></div></div>
|
||
|
<div class="ttc" id="structrule__store_html_ac5baee796a36897f1ea489a428015ac9"><div class="ttname"><a href="../../de/dbf/structrule__store.html#ac5baee796a36897f1ea489a428015ac9">rule_store::e</a></div><div class="ttdeci">char e[sizeof(struct ipt_entry)+sizeof(struct ipt_entry_match)+sizeof(struct ipt_conntrack_info)+sizeof(struct ipt_entry_target)+sizeof(struct ipt_connmark_target_info)]</div><div class="ttdef"><b>Definition:</b> mark.h:91</div></div>
|
||
|
<div class="ttc" id="mark_8h_html_ab95734c79a210d38183d3ff0cb972d88"><div class="ttname"><a href="../../d3/de6/mark_8h.html#ab95734c79a210d38183d3ff0cb972d88">rule_store</a></div><div class="ttdeci">struct rule_store rule_store</div></div>
|
||
|
<div class="ttc" id="mark_8h_html_a5c3adca3da96bafac143438ab9b75f66"><div class="ttname"><a href="../../d3/de6/mark_8h.html#a5c3adca3da96bafac143438ab9b75f66">create_mark_rules</a></div><div class="ttdeci">int create_mark_rules(int n)</div><div class="ttdef"><b>Definition:</b> mark.c:519</div></div>
|
||
|
<div class="ttc" id="mark_8h_html_a3ddd8afd46e7cd5f5d3bc8052a310e03"><div class="ttname"><a href="../../d3/de6/mark_8h.html#a3ddd8afd46e7cd5f5d3bc8052a310e03">RESTORE_OUTPUT_RULE_SZ</a></div><div class="ttdeci">#define RESTORE_OUTPUT_RULE_SZ</div><div class="ttdef"><b>Definition:</b> mark.h:71</div></div>
|
||
|
<div class="ttc" id="mark_8h_html_a1241770376c64ee1ee386784a6e6c1d0"><div class="ttname"><a href="../../d3/de6/mark_8h.html#a1241770376c64ee1ee386784a6e6c1d0">mark_init</a></div><div class="ttdeci">int mark_init(int igw)</div><div class="ttdef"><b>Definition:</b> mark.c:400</div></div>
|
||
|
<div class="ttc" id="mark_8h_html_a3e2f008ced2b3d6a4502ef9f8b5586e2"><div class="ttname"><a href="../../d3/de6/mark_8h.html#a3e2f008ced2b3d6a4502ef9f8b5586e2">restore_output_rule_init</a></div><div class="ttdeci">void restore_output_rule_init(char *rule)</div><div class="ttdef"><b>Definition:</b> mark.c:125</div></div>
|
||
|
<div class="ttc" id="libiptc_8h_html"><div class="ttname"><a href="../../d1/d6b/libiptc_8h.html">libiptc.h</a></div></div>
|
||
|
<div class="ttc" id="mark_8h_html_abce88ee61b36a36e1e58278165d6004d"><div class="ttname"><a href="../../d3/de6/mark_8h.html#abce88ee61b36a36e1e58278165d6004d">mark_close</a></div><div class="ttdeci">int mark_close()</div><div class="ttdef"><b>Definition:</b> mark.c:657</div></div>
|
||
|
<div class="ttc" id="mark_8h_html_ae25f34efd8149097818c5b089c91afd7"><div class="ttname"><a href="../../d3/de6/mark_8h.html#ae25f34efd8149097818c5b089c91afd7">mark_rule_init</a></div><div class="ttdeci">void mark_rule_init(char *rule, char *outiface, int outiface_num)</div><div class="ttdef"><b>Definition:</b> mark.c:209</div></div>
|
||
|
<div class="ttc" id="mark_8h_html_a3ba74fd839273760b943435a4761b89d"><div class="ttname"><a href="../../d3/de6/mark_8h.html#a3ba74fd839273760b943435a4761b89d">rule_position</a></div><div class="ttdeci">int rule_position(rule_store *rule, iptc_handle_t *t)</div><div class="ttdef"><b>Definition:</b> mark.c:609</div></div>
|
||
|
<div class="ttc" id="ipt__conntrack_8h_html"><div class="ttname"><a href="../../d1/da3/ipt__conntrack_8h.html">ipt_conntrack.h</a></div></div>
|
||
|
<div class="ttc" id="ipt__CONNMARK_8h_html"><div class="ttname"><a href="../../dd/d08/ipt__CONNMARK_8h.html">ipt_CONNMARK.h</a></div></div>
|
||
|
</div><!-- fragment --></div><!-- contents -->
|
||
|
</div><!-- doc-content -->
|
||
|
<!-- start footer part -->
|
||
|
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||
|
<ul>
|
||
|
<li class="navelem"><a class="el" href="../../dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="../../d3/de6/mark_8h.html">mark.h</a></li>
|
||
|
<li class="footer">Generated on Wed Feb 19 2014 14:19:08 for The Netsukuku Project by
|
||
|
<a href="http://www.doxygen.org/index.html">
|
||
|
<img class="footer" src="../../doxygen.png" alt="doxygen"/></a> 1.8.6 </li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
</body>
|
||
|
</html>
|