netsukuku/da/dd7/igs_8h_source.html
MissValeska f97a6e4a6f missvaleska@missvaleska-GA-970A-D3:~/Documents/Netsukuku/NtkDoc/html$ git status# On branch gh-pages
missvaleska@missvaleska-GA-970A-D3:~/Documents/Netsukuku/NtkDoc/html$ git status# On branch gh-pages
Doxygen generated Documentation
2014-02-19 15:45:00 -08:00

419 lines
70 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/igs.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
&#160;<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&#160;Page</span></a></li>
<li><a href="../../annotated.html"><span>Data&#160;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&#160;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('da/dd7/igs_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">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</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">igs.h</div> </div>
</div><!--header-->
<div class="contents">
<a href="../../da/dd7/igs_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>&#160;<span class="comment">/* This file is part of Netsukuku</span></div>
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="comment"> * (c) Copyright 2005 Andrea Lo Pumo aka AlpT &lt;alpt@freaknet.org&gt;</span></div>
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="comment"> * This source code is free software; you can redistribute it and/or</span></div>
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<span class="comment"> * modify it under the terms of the GNU General Public License as published</span></div>
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="comment"> * by the Free Software Foundation; either version 2 of the License,</span></div>
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="comment"> * or (at your option) any later version.</span></div>
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="comment"> * This source code is distributed in the hope that it will be useful,</span></div>
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.</span></div>
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="comment"> * Please refer to the GNU Public License for more details.</span></div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;<span class="comment"> * You should have received a copy of the GNU Public License along with</span></div>
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<span class="comment"> * this source code; if not, write to:</span></div>
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;<span class="comment"> * Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.</span></div>
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;</div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;<span class="preprocessor">#ifndef IGS_H</span></div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;<span class="preprocessor">#define IGS_H</span></div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;</div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="../../d9/d7f/route_8h.html">route.h</a>&quot;</span></div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;</div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;</div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;<span class="comment"> * The IGS_MULTI_GW feature relies heavily on netfilter and the linux advanced</span></div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160;<span class="comment"> * routing.</span></div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;<span class="preprocessor">#ifdef GNU_LINUX</span></div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160;<span class="preprocessor">#define IGS_MULTI_GW</span></div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160;</div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160;<span class="comment">/*\</span></div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160;<span class="comment"> * * Bandwidth notes *</span></div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160;<span class="comment"> * When we talk of `bandwidth&#39; we mean the average of the download and </span></div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160;<span class="comment"> * upload bandwidth of a particular node.</span></div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160;<span class="comment"> * The bandwidth of a gnode is the average of all the bandwidths of the nodes</span></div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160;<span class="comment"> * belonging to that gnode.</span></div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160;<span class="comment"> * </span></div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160;<span class="comment"> * Internally we save the `bandwidth&#39; as a u_char variable using the</span></div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160;<span class="comment"> * `bandwidth_in_8bit&#39; function (see igs.c)</span></div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160;<span class="comment">\*/</span></div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160;</div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160;<span class="comment">/* Minum bandwidth necessary to share an internet connection */</span></div>
<div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="../../da/dd7/igs_8h.html#a6b93ad97d3af97847910f573bc2d9074"> 46</a></span>&#160;<span class="preprocessor">#define MIN_CONN_BANDWIDTH 3 </span><span class="comment">/* 16 Kb/s */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160;</div>
<div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="../../da/dd7/igs_8h.html#a6a315905232e554650cbba46a6967b05"> 48</a></span>&#160;<span class="preprocessor">#define MAX_INTERNET_HNAMES 10</span></div>
<div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="../../da/dd7/igs_8h.html#ad84f06712bae2a529c48e0469366f181"> 49</a></span>&#160;<span class="preprocessor">#define MAX_INTERNET_HNAME_SZ 64</span></div>
<div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="../../da/dd7/igs_8h.html#a4d24fc3b9e5b7e9b2f978896456d3db4"> 50</a></span>&#160;<span class="preprocessor">#define INET_HOST_PING_TIMEOUT 3</span></div>
<div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="../../da/dd7/igs_8h.html#a1b3d96e5d6aa36ebeb548e09a3c7cbaf"> 51</a></span>&#160;<span class="preprocessor">#define IGW_HOST_PING_TIMEOUT 10</span></div>
<div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="../../da/dd7/igs_8h.html#a13c8adb4e458d28bd451b5a7cb86da62"> 52</a></span>&#160;<span class="preprocessor">#define INET_NEXT_PING_WAIT 10</span></div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160;</div>
<div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="../../da/dd7/igs_8h.html#a2d04aa40319ca842c3c2b9698e150dd5"> 54</a></span>&#160;<span class="preprocessor">#define IGW_BW_DELTA 1 </span><span class="comment">/* If the difference between the old and the new</span></div>
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160;<span class="comment"> igw-&gt;bandwidth is &gt;= IGW_BW_DELTA, then </span></div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160;<span class="comment"> me.igws is reordered and the routing table</span></div>
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160;<span class="comment"> updated */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="../../da/dd7/igs_8h.html#a83bc8572beefbe092fb96ddcea030fa7"> 58</a></span>&#160;<span class="preprocessor">#define MAXIGWS MAXGROUPNODE </span><span class="comment">/* max number of internet </span></div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160;<span class="comment"> gateways in each level */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160;</div>
<div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="../../da/dd7/igs_8h.html#ae40fd06e6bcc31b8e82e4e3908983733"> 61</a></span>&#160;<span class="preprocessor">#define RTTABLE_IGW 221 </span><span class="comment">/* Routing tables from 221 to 244 */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="../../da/dd7/igs_8h.html#ae05ce4a03cf48d4461af94f838aabec6"> 62</a></span>&#160;<span class="preprocessor">#define RTTABLE_ALISHIELD 245 </span><span class="comment">/* Anti Loop multi-Igw Shield</span></div>
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160;<span class="comment"> (what a damn long name, read the Ntk_IGS</span></div>
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160;<span class="comment"> RFC) */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="../../da/dd7/igs_8h.html#af9cc7ceea222fa6e91fa5faf26079b7a"> 65</a></span>&#160;<span class="preprocessor">#define FWMARK_ALISHIELD 25</span></div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160;</div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160;<span class="preprocessor">#ifdef DEBUG</span></div>
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160;<span class="preprocessor">#undef INET_NEXT_PING_WAIT</span></div>
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160;<span class="preprocessor">#define INET_NEXT_PING_WAIT 5</span></div>
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160;</div>
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160;<span class="comment">/* </span></div>
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160;<span class="comment"> * inet_gw flags</span></div>
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00075"></a><span class="lineno"><a class="line" href="../../da/dd7/igs_8h.html#a7405e51c8f9c5351f4ee1b61b33f2343"> 75</a></span>&#160;<span class="preprocessor">#define IGW_TUNNELED 1</span></div>
<div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="../../da/dd7/igs_8h.html#a275f849b3bd2b805508b8beee8bfd883"> 76</a></span>&#160;<span class="preprocessor">#define IGW_ACTIVE (1&lt;&lt;1) </span><span class="comment">/* This gw is being used in the</span></div>
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>&#160;<span class="comment"> routing table */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="../../da/dd7/igs_8h.html#a53cf60e0a3f12eb6f0398228d4b37300"> 78</a></span>&#160;<span class="preprocessor">#define IGW_RTRULE (1&lt;&lt;2) </span><span class="comment">/* The relative routing rule is already</span></div>
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160;<span class="comment"> present */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>&#160;</div>
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160;<span class="comment"> * internet_gateway</span></div>
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>&#160;<span class="comment"> * </span></div>
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>&#160;<span class="comment"> * This struct points to a particular (g)node which is sharing its Internet </span></div>
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>&#160;<span class="comment"> * connection</span></div>
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00087"></a><span class="lineno"><a class="line" href="../../d8/daf/structinternet__gateway.html"> 87</a></span>&#160;<span class="keyword">struct </span><a class="code" href="../../d8/daf/structinternet__gateway.html">internet_gateway</a></div>
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>&#160;{</div>
<div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="../../d8/daf/structinternet__gateway.html#a99a1d2cf0c2c54831486ace851223980"> 89</a></span>&#160; <a class="code" href="../../d4/de1/llist_8c.html#ac92348e99cfae025c3893c07fee7b263">LLIST_HDR</a> (<span class="keyword">struct</span> <a class="code" href="../../d8/daf/structinternet__gateway.html">internet_gateway</a>);</div>
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>&#160;</div>
<div class="line"><a name="l00091"></a><span class="lineno"><a class="line" href="../../d8/daf/structinternet__gateway.html#afa294dffc3d0c43a71e2d66e685d057c"> 91</a></span>&#160; u_int <a class="code" href="../../d8/daf/structinternet__gateway.html#afa294dffc3d0c43a71e2d66e685d057c">ip</a>[<a class="code" href="../../d6/d4a/inet_8h.html#a70f8406c9556460a606bee45306c5630">MAX_IP_INT</a>];</div>
<div class="line"><a name="l00092"></a><span class="lineno"><a class="line" href="../../d8/daf/structinternet__gateway.html#a51c7ac4a86de786ab61c4e89852675ca"> 92</a></span>&#160; u_char <a class="code" href="../../d8/daf/structinternet__gateway.html#a51c7ac4a86de786ab61c4e89852675ca">gid</a>;</div>
<div class="line"><a name="l00093"></a><span class="lineno"><a class="line" href="../../d8/daf/structinternet__gateway.html#a6603e23fbe48da6884208e57fce99e15"> 93</a></span>&#160; <a class="code" href="../../d6/d1c/structmap__node.html">map_node</a> *<a class="code" href="../../d8/daf/structinternet__gateway.html#a6603e23fbe48da6884208e57fce99e15">node</a>;</div>
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>&#160;</div>
<div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="../../d8/daf/structinternet__gateway.html#ae80276e2e9cfbac79d4bfb26390c5ff8"> 95</a></span>&#160; <span class="keywordtype">char</span> <a class="code" href="../../d8/daf/structinternet__gateway.html#ae80276e2e9cfbac79d4bfb26390c5ff8">flags</a>;</div>
<div class="line"><a name="l00096"></a><span class="lineno"><a class="line" href="../../d8/daf/structinternet__gateway.html#aa7aaba07202ef0bb6503098b72302c20"> 96</a></span>&#160; u_char <a class="code" href="../../d8/daf/structinternet__gateway.html#aa7aaba07202ef0bb6503098b72302c20">bandwidth</a>; <span class="comment">/* Its Internet bandwidth */</span></div>
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>&#160;};</div>
<div class="line"><a name="l00098"></a><span class="lineno"><a class="line" href="../../da/dd7/igs_8h.html#a70b61be6ea7e5cbbe9d3e95eac23d505"> 98</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="../../d8/daf/structinternet__gateway.html">internet_gateway</a> <a class="code" href="../../d8/daf/structinternet__gateway.html">inet_gw</a>;</div>
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>&#160;</div>
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>&#160;<span class="comment">/* We pack only `gid&#39; and `bandwidth&#39; */</span></div>
<div class="line"><a name="l00101"></a><span class="lineno"><a class="line" href="../../da/dd7/igs_8h.html#ae7bfe266fb85224c1f68643610f15077"> 101</a></span>&#160;<span class="preprocessor">#define INET_GW_PACK_SZ (sizeof(u_char)*2 + MAX_IP_SZ)</span></div>
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>&#160;</div>
<div class="line"><a name="l00103"></a><span class="lineno"><a class="line" href="../../df/dbb/structinet__gw__pack__hdr.html"> 103</a></span>&#160;<span class="keyword">struct </span><a class="code" href="../../df/dbb/structinet__gw__pack__hdr.html">inet_gw_pack_hdr</a></div>
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>&#160;{</div>
<div class="line"><a name="l00105"></a><span class="lineno"><a class="line" href="../../df/dbb/structinet__gw__pack__hdr.html#a22607e975db3e95e0f7208a464b4b85e"> 105</a></span>&#160; int16_t <a class="code" href="../../df/dbb/structinet__gw__pack__hdr.html#a22607e975db3e95e0f7208a464b4b85e">gws</a>[<a class="code" href="../../d7/d3b/gmap_8h.html#add784659439a8dd6b1423406171414d3">MAX_LEVELS</a>];<span class="comment">/* Number of inet_gws there are in the</span></div>
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>&#160;<span class="comment"> pack, for each level */</span></div>
<div class="line"><a name="l00107"></a><span class="lineno"><a class="line" href="../../df/dbb/structinet__gw__pack__hdr.html#a6659e021322ce90104f553d06f92e0c5"> 107</a></span>&#160; u_char <a class="code" href="../../df/dbb/structinet__gw__pack__hdr.html#a6659e021322ce90104f553d06f92e0c5">levels</a>;</div>
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>&#160;}<a class="code" href="../../da/dd7/igs_8h.html#a8f2b617dc42f9ab3075ff6e9d08b8893">_PACKED_</a>;</div>
<div class="line"><a name="l00109"></a><span class="lineno"><a class="line" href="../../da/dd7/igs_8h.html#a76117500992954b0514693bf053a893a"> 109</a></span>&#160;<a class="code" href="../../dc/d3e/endianness_8h.html#a3e44b8503d7a90af675c81800fe6d275">INT_INFO</a> <a class="code" href="../../da/dd7/igs_8h.html#a76117500992954b0514693bf053a893a">inet_gw_pack_hdr_iinfo</a> = { 1, { <a class="code" href="../../dc/d3e/endianness_8h.html#a66b75e81c28419f622f82e631e5da9bc">INT_TYPE_16BIT</a> }, { 0 }, { <a class="code" href="../../d7/d3b/gmap_8h.html#add784659439a8dd6b1423406171414d3">MAX_LEVELS</a> } };</div>
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>&#160;</div>
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>&#160;<span class="comment">/* </span></div>
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>&#160;<span class="comment"> * The inet_gw_pack_body is:</span></div>
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>&#160;<span class="comment"> * inet_gw_pack igw[hdr.gws[i]] for all the i that goes from 0 to</span></div>
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>&#160;<span class="comment"> * hdr.levels</span></div>
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00116"></a><span class="lineno"><a class="line" href="../../da/dd7/igs_8h.html#a8ef8c45d07d8035fb31bc0c645354017"> 116</a></span>&#160;<span class="preprocessor">#define IGWS_PACK_SZ(hdr) \</span></div>
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>&#160;<span class="preprocessor">({ \</span></div>
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>&#160;<span class="preprocessor"> size_t _sz; int _pi; \</span></div>
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>&#160;<span class="preprocessor"> _sz=sizeof(struct inet_gw_pack_hdr); \</span></div>
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>&#160;<span class="preprocessor"> for(_pi=0; _pi&lt;(hdr)-&gt;levels; _pi++) \</span></div>
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>&#160;<span class="preprocessor"> _sz+=INET_GW_PACK_SZ*((hdr)-&gt;gws[_pi]); \</span></div>
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>&#160;<span class="preprocessor"> _sz; \</span></div>
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>&#160;<span class="preprocessor">})</span></div>
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>&#160;</div>
<div class="line"><a name="l00125"></a><span class="lineno"><a class="line" href="../../da/dd7/igs_8h.html#ac103879d22ef63bace0aacfb3423f3f8"> 125</a></span>&#160;<span class="preprocessor">#define MAX_IGWS_PACK_SZ(levels) (sizeof(struct inet_gw_pack_hdr) + \</span></div>
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>&#160;<span class="preprocessor"> INET_GW_PACK_SZ*MAXIGWS*(levels))</span></div>
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>&#160;</div>
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>&#160;</div>
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>&#160;<span class="comment">/*\</span></div>
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>&#160;<span class="comment"> * * * Multi Internet Gateways * * *</span></div>
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>&#160;<span class="comment">\*/</span></div>
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>&#160;</div>
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>&#160;<span class="comment"> * igw_nexthop</span></div>
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>&#160;<span class="comment"> * </span></div>
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>&#160;<span class="comment"> * The multigw allows the simultaneus use of multiple internet gateways.</span></div>
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>&#160;<span class="comment"> * The multigw requires one routing table and one tunnel for each</span></div>
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>&#160;<span class="comment"> * nexthop in the default multipath route. With an array of `igw_nexthop&#39; we</span></div>
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>&#160;<span class="comment"> * keep track of them.</span></div>
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00143"></a><span class="lineno"><a class="line" href="../../d0/d19/structdefault__inet__gw__nexthop.html"> 143</a></span>&#160;<span class="keyword">struct </span><a class="code" href="../../d0/d19/structdefault__inet__gw__nexthop.html">default_inet_gw_nexthop</a> {</div>
<div class="line"><a name="l00144"></a><span class="lineno"><a class="line" href="../../d0/d19/structdefault__inet__gw__nexthop.html#a74affc102fc1aaaba9f7c756e2f55d3d"> 144</a></span>&#160; <a class="code" href="../../da/d1d/structinet__prefix.html">inet_prefix</a> <a class="code" href="../../d0/d19/structdefault__inet__gw__nexthop.html#a74affc102fc1aaaba9f7c756e2f55d3d">nexthop</a>;</div>
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>&#160;</div>
<div class="line"><a name="l00146"></a><span class="lineno"><a class="line" href="../../d0/d19/structdefault__inet__gw__nexthop.html#a4c6d495bc7de521991f59e9b020b61e3"> 146</a></span>&#160; u_char <a class="code" href="../../d0/d19/structdefault__inet__gw__nexthop.html#a4c6d495bc7de521991f59e9b020b61e3">flags</a>; <span class="comment">/* inet_gw flags */</span></div>
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span>&#160; </div>
<div class="line"><a name="l00148"></a><span class="lineno"><a class="line" href="../../d0/d19/structdefault__inet__gw__nexthop.html#a8caad76d143e7679a875dedd172626a0"> 148</a></span>&#160; u_char <a class="code" href="../../d0/d19/structdefault__inet__gw__nexthop.html#a8caad76d143e7679a875dedd172626a0">table</a>;</div>
<div class="line"><a name="l00149"></a><span class="lineno"><a class="line" href="../../d0/d19/structdefault__inet__gw__nexthop.html#a140bde1f56d6f56a301a181b95fc56a4"> 149</a></span>&#160; u_char <a class="code" href="../../d0/d19/structdefault__inet__gw__nexthop.html#a140bde1f56d6f56a301a181b95fc56a4">tunl</a>; <span class="comment">/* `tunl&#39; is the number of the tunnel</span></div>
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>&#160;<span class="comment"> we are using to reach this igw. </span></div>
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span>&#160;<span class="comment"> (tunl = 4 means we are using the </span></div>
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span>&#160;<span class="comment"> &quot;tunl4&quot; device) */</span></div>
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span>&#160;};</div>
<div class="line"><a name="l00154"></a><span class="lineno"><a class="line" href="../../da/dd7/igs_8h.html#afddb8e0848934c313b463385d995b472"> 154</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="../../d0/d19/structdefault__inet__gw__nexthop.html">default_inet_gw_nexthop</a> <a class="code" href="../../d0/d19/structdefault__inet__gw__nexthop.html">igw_nexthop</a>;</div>
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span>&#160;</div>
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span>&#160;</div>
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span>&#160;<span class="comment">/*\</span></div>
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span>&#160;<span class="comment"> * Notes on the IGW packed in a qspn pkt</span></div>
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span>&#160;<span class="comment"> * The simplest way to tell the other nodes that we are sharing our Internet</span></div>
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>&#160;<span class="comment"> * connection or that in our gnode there is an available gw is to use the</span></div>
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span>&#160;<span class="comment"> * bnode block included in the qspn packets.</span></div>
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>&#160;<span class="comment"> * We consider an Internet gw as a bnode connected to a virtual gnode (the</span></div>
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span>&#160;<span class="comment"> * Internet), therefore in the relative bnode_chunk we set:</span></div>
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>&#160;<span class="comment"> * bchunk.gnode = 0; this value has no meaning</span></div>
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span>&#160;<span class="comment"> * bchunk.level = GET_LEVELS(my_family) + 1;</span></div>
<div class="line"><a name="l00167"></a><span class="lineno"> 167</span>&#160;<span class="comment"> * bchunk.rtt = the bandwidth of the internet connection of the gw.</span></div>
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span>&#160;<span class="comment"> * It is in the bandwidth_in_8bit() format.</span></div>
<div class="line"><a name="l00169"></a><span class="lineno"> 169</span>&#160;<span class="comment">\*/</span></div>
<div class="line"><a name="l00170"></a><span class="lineno"> 170</span>&#160;</div>
<div class="line"><a name="l00171"></a><span class="lineno"><a class="line" href="../../da/dd7/igs_8h.html#a9da835c20dad249585e2c392ad35291e"> 171</a></span>&#160;<span class="preprocessor">#define MAX_IGW_PER_QSPN_CHUNK 16 </span><span class="comment">/* Maximum number of IGWs </span></div>
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span>&#160;<span class="comment"> contained in a single </span></div>
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span>&#160;<span class="comment"> QSPN chunk */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span>&#160;</div>
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span>&#160;</div>
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span>&#160;<span class="comment">/*\</span></div>
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span>&#160;<span class="comment"> * * * Globals * * *</span></div>
<div class="line"><a name="l00179"></a><span class="lineno"> 179</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00180"></a><span class="lineno"> 180</span>&#160;<span class="comment">\*/</span></div>
<div class="line"><a name="l00181"></a><span class="lineno"> 181</span>&#160;</div>
<div class="line"><a name="l00182"></a><span class="lineno"><a class="line" href="../../da/dd7/igs_8h.html#a78b98b691ec68cb68436720bdc7fca46"> 182</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="../../da/dd7/igs_8h.html#a78b98b691ec68cb68436720bdc7fca46">active_gws</a>;</div>
<div class="line"><a name="l00183"></a><span class="lineno"><a class="line" href="../../da/dd7/igs_8h.html#a21eb27ad8b956a0f4777a7e855b5b361"> 183</a></span>&#160;<a class="code" href="../../d0/d19/structdefault__inet__gw__nexthop.html">igw_nexthop</a> <a class="code" href="../../da/dd7/igs_8h.html#a21eb27ad8b956a0f4777a7e855b5b361">multigw_nh</a>[<a class="code" href="../../d9/d7f/route_8h.html#a2dbb83f7996da5aa54f9890483f54c16">MAX_MULTIPATH_ROUTES</a>];</div>
<div class="line"><a name="l00184"></a><span class="lineno"> 184</span>&#160;</div>
<div class="line"><a name="l00185"></a><span class="lineno"> 185</span>&#160;</div>
<div class="line"><a name="l00186"></a><span class="lineno"> 186</span>&#160;<span class="comment">/*\</span></div>
<div class="line"><a name="l00187"></a><span class="lineno"> 187</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00188"></a><span class="lineno"> 188</span>&#160;<span class="comment"> * * * Functions declaration * * </span></div>
<div class="line"><a name="l00189"></a><span class="lineno"> 189</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00190"></a><span class="lineno"> 190</span>&#160;<span class="comment">\*/</span></div>
<div class="line"><a name="l00191"></a><span class="lineno"> 191</span>&#160;</div>
<div class="line"><a name="l00192"></a><span class="lineno"> 192</span>&#160;u_char <a class="code" href="../../da/dd7/igs_8h.html#aa6de0936765376643c8726ca0eaf6dde">bandwidth_in_8bit</a>(u_int x);</div>
<div class="line"><a name="l00193"></a><span class="lineno"> 193</span>&#160;<span class="keywordtype">int</span> <a class="code" href="../../da/dd7/igs_8h.html#a016c3a34a9dc7add88dd0bce88440e05">str_to_inet_gw</a>(<span class="keywordtype">char</span> *str, <a class="code" href="../../da/d1d/structinet__prefix.html">inet_prefix</a> *gw, <span class="keywordtype">char</span> **dev);</div>
<div class="line"><a name="l00194"></a><span class="lineno"> 194</span>&#160;<span class="keywordtype">char</span> **<a class="code" href="../../da/dd7/igs_8h.html#a2b648cbf154af516c4ed807ebaa4fe88">parse_internet_hosts</a>(<span class="keywordtype">char</span> *str, <span class="keywordtype">int</span> *hosts);</div>
<div class="line"><a name="l00195"></a><span class="lineno"> 195</span>&#160;<span class="keywordtype">void</span> <a class="code" href="../../da/dd7/igs_8h.html#a53c17c74d86e8cf6bdd47242002c8bef">free_internet_hosts</a>(<span class="keywordtype">char</span> **hnames, <span class="keywordtype">int</span> hosts);</div>
<div class="line"><a name="l00196"></a><span class="lineno"> 196</span>&#160;</div>
<div class="line"><a name="l00197"></a><span class="lineno"> 197</span>&#160;<span class="keywordtype">void</span> <a class="code" href="../../da/dd7/igs_8h.html#a35c3e3ff94064955d6965ad87a95ab36">init_my_igw</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00198"></a><span class="lineno"> 198</span>&#160;<span class="keywordtype">void</span> <a class="code" href="../../da/dd7/igs_8h.html#aab1091590ed4414ea138fedb0d2982e3">init_igws</a>(<a class="code" href="../../d8/daf/structinternet__gateway.html">inet_gw</a> ***igws, <span class="keywordtype">int</span> **igws_counter, <span class="keywordtype">int</span> levels);</div>
<div class="line"><a name="l00199"></a><span class="lineno"> 199</span>&#160;<span class="keywordtype">void</span> <a class="code" href="../../da/dd7/igs_8h.html#a68b10196ae2d1b448a3097dbf254eb68">reset_igws</a>(<a class="code" href="../../d8/daf/structinternet__gateway.html">inet_gw</a> **igws, <span class="keywordtype">int</span> *igws_counter, <span class="keywordtype">int</span> levels);</div>
<div class="line"><a name="l00200"></a><span class="lineno"> 200</span>&#160;<span class="keywordtype">void</span> <a class="code" href="../../da/dd7/igs_8h.html#a319bad303b318822fe195f434e5b3ddc">free_igws</a>(<a class="code" href="../../d8/daf/structinternet__gateway.html">inet_gw</a> **igws, <span class="keywordtype">int</span> *igws_counter, <span class="keywordtype">int</span> levels);</div>
<div class="line"><a name="l00201"></a><span class="lineno"> 201</span>&#160;<span class="keywordtype">void</span> <a class="code" href="../../da/dd7/igs_8h.html#a96f88cc795a0a08a7176d0c0af39e562">init_my_igws</a>(<a class="code" href="../../d8/daf/structinternet__gateway.html">inet_gw</a> **igws, <span class="keywordtype">int</span> *igws_counter,</div>
<div class="line"><a name="l00202"></a><span class="lineno"> 202</span>&#160; <a class="code" href="../../d8/daf/structinternet__gateway.html">inet_gw</a> ***my_new_igws, u_char my_bandwidth, </div>
<div class="line"><a name="l00203"></a><span class="lineno"> 203</span>&#160; <a class="code" href="../../d6/d1c/structmap__node.html">map_node</a> *cur_node, <a class="code" href="../../d0/d3b/structquadro__group.html">quadro_group</a> *qg);</div>
<div class="line"><a name="l00204"></a><span class="lineno"> 204</span>&#160;<span class="keywordtype">void</span> <a class="code" href="../../da/dd7/igs_8h.html#a3df20b00e1530523fdddc24a9987a9b3">free_my_igws</a>(<a class="code" href="../../d8/daf/structinternet__gateway.html">inet_gw</a> ***my_igs);</div>
<div class="line"><a name="l00205"></a><span class="lineno"> 205</span>&#160;<span class="keywordtype">void</span> <a class="code" href="../../da/dd7/igs_8h.html#a184ab033bb2e2c1f856df5430ba87a80">init_internet_gateway_search</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00206"></a><span class="lineno"> 206</span>&#160;<span class="keywordtype">void</span> <a class="code" href="../../da/dd7/igs_8h.html#a69dec3b6ff9453bc64d5b98f6b40e2aa">close_internet_gateway_search</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00207"></a><span class="lineno"> 207</span>&#160;<a class="code" href="../../d8/daf/structinternet__gateway.html">inet_gw</a> *<a class="code" href="../../da/dd7/igs_8h.html#a625d6b7c80cf35070eb68f83615cf8f7">igw_add_node</a>(<a class="code" href="../../d8/daf/structinternet__gateway.html">inet_gw</a> **igws, <span class="keywordtype">int</span> *igws_counter, <span class="keywordtype">int</span> level,</div>
<div class="line"><a name="l00208"></a><span class="lineno"> 208</span>&#160; <span class="keywordtype">int</span> gid, <a class="code" href="../../d6/d1c/structmap__node.html">map_node</a> *node, <span class="keywordtype">int</span> ip[<a class="code" href="../../d6/d4a/inet_8h.html#a70f8406c9556460a606bee45306c5630">MAX_IP_INT</a>], u_char bandwidth);</div>
<div class="line"><a name="l00209"></a><span class="lineno"> 209</span>&#160;<span class="keywordtype">int</span> <a class="code" href="../../da/dd7/igs_8h.html#a46d6f806802d39aa290a387347a499d7">igw_del</a>(<a class="code" href="../../d8/daf/structinternet__gateway.html">inet_gw</a> **igws, <span class="keywordtype">int</span> *igws_counter, <a class="code" href="../../d8/daf/structinternet__gateway.html">inet_gw</a> *igw, <span class="keywordtype">int</span> level);</div>
<div class="line"><a name="l00210"></a><span class="lineno"> 210</span>&#160;<a class="code" href="../../d8/daf/structinternet__gateway.html">inet_gw</a> *<a class="code" href="../../da/dd7/igs_8h.html#a2c6f10b4481f6bdcfe6dd51f34d56f0a">igw_find_node</a>(<a class="code" href="../../d8/daf/structinternet__gateway.html">inet_gw</a> **igws, <span class="keywordtype">int</span> level, <a class="code" href="../../d6/d1c/structmap__node.html">map_node</a> *node);</div>
<div class="line"><a name="l00211"></a><span class="lineno"> 211</span>&#160;<a class="code" href="../../d8/daf/structinternet__gateway.html">inet_gw</a> *<a class="code" href="../../da/dd7/igs_8h.html#ae8c2dbf486a8a270309828203fa1b4b5">igw_find_ip</a>(<a class="code" href="../../d8/daf/structinternet__gateway.html">inet_gw</a> **igws, <span class="keywordtype">int</span> level, u_int ip[<a class="code" href="../../d6/d4a/inet_8h.html#a70f8406c9556460a606bee45306c5630">MAX_IP_INT</a>]);</div>
<div class="line"><a name="l00212"></a><span class="lineno"> 212</span>&#160;<span class="keywordtype">int</span> <a class="code" href="../../da/dd7/igs_8h.html#a247ee5efa43ff0d3537231ccbafafe89">igw_del_node</a>(<a class="code" href="../../d8/daf/structinternet__gateway.html">inet_gw</a> **, <span class="keywordtype">int</span> *, <span class="keywordtype">int</span>, <a class="code" href="../../d6/d1c/structmap__node.html">map_node</a> *);</div>
<div class="line"><a name="l00213"></a><span class="lineno"> 213</span>&#160;<span class="keywordtype">void</span> <a class="code" href="../../da/dd7/igs_8h.html#a3e9300a55cc44d8ef6c843d971fd1486">igw_update_gnode_bw</a>(<span class="keywordtype">int</span> *, <a class="code" href="../../d8/daf/structinternet__gateway.html">inet_gw</a> **, <a class="code" href="../../d8/daf/structinternet__gateway.html">inet_gw</a> *, <span class="keywordtype">int</span>, <span class="keywordtype">int</span>, <span class="keywordtype">int</span>);</div>
<div class="line"><a name="l00214"></a><span class="lineno"> 214</span>&#160;<span class="keywordtype">void</span> <a class="code" href="../../da/dd7/igs_8h.html#a0631352217c3c9639e81de946f7af2e3">igw_order</a>(<a class="code" href="../../d8/daf/structinternet__gateway.html">inet_gw</a> **igws, <span class="keywordtype">int</span> *igws_counter, <a class="code" href="../../d8/daf/structinternet__gateway.html">inet_gw</a> **my_igws, <span class="keywordtype">int</span> level);</div>
<div class="line"><a name="l00215"></a><span class="lineno"> 215</span>&#160;</div>
<div class="line"><a name="l00216"></a><span class="lineno"> 216</span>&#160;<span class="keywordtype">int</span> <a class="code" href="../../da/dd7/igs_8h.html#a5855d790f8cd80495bf1962009b6cb7b">igw_check_inet_conn</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00217"></a><span class="lineno"> 217</span>&#160;<span class="keywordtype">void</span> *<a class="code" href="../../da/dd7/igs_8h.html#af0c6fb918f055c28c21d5a17fe02db09">igw_check_inet_conn_t</a>(<span class="keywordtype">void</span> *null);</div>
<div class="line"><a name="l00218"></a><span class="lineno"> 218</span>&#160;<span class="keywordtype">void</span> *<a class="code" href="../../da/dd7/igs_8h.html#ac87ed2fc7a66e73c5fef763321862295">igw_monitor_igws_t</a>(<span class="keywordtype">void</span> *null);</div>
<div class="line"><a name="l00219"></a><span class="lineno"> 219</span>&#160;</div>
<div class="line"><a name="l00220"></a><span class="lineno"> 220</span>&#160;<span class="keywordtype">int</span> <a class="code" href="../../da/dd7/igs_8h.html#a7b3d293ed96b781f5b351d0f054bbf0d">igw_exec_masquerade_sh</a>(<span class="keywordtype">char</span> *script, <span class="keywordtype">int</span> stop);</div>
<div class="line"><a name="l00221"></a><span class="lineno"> 221</span>&#160;<span class="keywordtype">int</span> <a class="code" href="../../da/dd7/igs_8h.html#a5cf5f370332317b793630c29f82414c3">igw_exec_tcshaper_sh</a>(<span class="keywordtype">char</span> *script, <span class="keywordtype">int</span> stop, </div>
<div class="line"><a name="l00222"></a><span class="lineno"> 222</span>&#160; <span class="keywordtype">char</span> *dev, <span class="keywordtype">int</span> upload_bw, <span class="keywordtype">int</span> dnload_bw);</div>
<div class="line"><a name="l00223"></a><span class="lineno"> 223</span>&#160;<span class="keywordtype">void</span> <a class="code" href="../../da/dd7/igs_8h.html#ab6e977b941c5031d125aed6513e19215">reset_igw_nexthop</a>(<a class="code" href="../../d0/d19/structdefault__inet__gw__nexthop.html">igw_nexthop</a> *igwn);</div>
<div class="line"><a name="l00224"></a><span class="lineno"> 224</span>&#160;<span class="keywordtype">void</span> <a class="code" href="../../da/dd7/igs_8h.html#a8188aff5547e21daad2860d6bfdc7070">reset_igw_rules</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00225"></a><span class="lineno"> 225</span>&#160;<span class="keywordtype">int</span> <a class="code" href="../../da/dd7/igs_8h.html#a51d86ef21953a6f2d0231b9c83701ce6">igw_replace_def_igws</a>(<a class="code" href="../../d8/daf/structinternet__gateway.html">inet_gw</a> **igws, <span class="keywordtype">int</span> *igws_counter, </div>
<div class="line"><a name="l00226"></a><span class="lineno"> 226</span>&#160; <a class="code" href="../../d8/daf/structinternet__gateway.html">inet_gw</a> **my_igws, <span class="keywordtype">int</span> max_levels, <span class="keywordtype">int</span> <a class="code" href="../../d7/de2/if_8c.html#a4417150d9f858949bd9ea8794995ebcc">family</a>);</div>
<div class="line"><a name="l00227"></a><span class="lineno"> 227</span>&#160;</div>
<div class="line"><a name="l00228"></a><span class="lineno"> 228</span>&#160;<span class="keywordtype">char</span> *<a class="code" href="../../da/dd7/igs_8h.html#ae0ee5831e7c8e3cc9828be7d4b8204ec">igw_build_bentry</a>(u_char level, <span class="keywordtype">size_t</span> *pack_sz, <span class="keywordtype">int</span> *new_bblocks);</div>
<div class="line"><a name="l00229"></a><span class="lineno"> 229</span>&#160;<span class="keywordtype">int</span> <a class="code" href="../../da/dd7/igs_8h.html#a68583c93468fa447635d641f93b040ce">igw_store_bblock</a>(bnode_hdr *bblock_hdr, bnode_chunk *bchunk, u_char level);</div>
<div class="line"><a name="l00230"></a><span class="lineno"> 230</span>&#160;<span class="keywordtype">char</span> *<a class="code" href="../../da/dd7/igs_8h.html#a413fd34c9565aa635c90cc7f811169e5">pack_igws</a>(<a class="code" href="../../d8/daf/structinternet__gateway.html">inet_gw</a> **igws, <span class="keywordtype">int</span> *igws_counter, <span class="keywordtype">int</span> levels, <span class="keywordtype">int</span> *pack_sz);</div>
<div class="line"><a name="l00231"></a><span class="lineno"> 231</span>&#160;<span class="keywordtype">int</span> <a class="code" href="../../da/dd7/igs_8h.html#ac988c4e403d8e860068177e9c0358363">unpack_igws</a>(<span class="keywordtype">char</span> *pack, <span class="keywordtype">size_t</span> pack_sz,</div>
<div class="line"><a name="l00232"></a><span class="lineno"> 232</span>&#160; <a class="code" href="../../d6/d1c/structmap__node.html">map_node</a> *<a class="code" href="../../d5/ddf/qspn-empiric_8h.html#a275f0c34bee112fa32e4fc86586a19ad">int_map</a>, <a class="code" href="../../d5/d7c/structmap__gnode.html">map_gnode</a> **ext_map, <span class="keywordtype">int</span> levels,</div>
<div class="line"><a name="l00233"></a><span class="lineno"> 233</span>&#160; <a class="code" href="../../d8/daf/structinternet__gateway.html">inet_gw</a> ***new_igws, <span class="keywordtype">int</span> **new_igws_counter);</div>
<div class="line"><a name="l00234"></a><span class="lineno"> 234</span>&#160;</div>
<div class="line"><a name="l00235"></a><span class="lineno"> 235</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/*IGS_H*/</span><span class="preprocessor"></span></div>
<div class="ttc" id="igs_8h_html_a3e9300a55cc44d8ef6c843d971fd1486"><div class="ttname"><a href="../../da/dd7/igs_8h.html#a3e9300a55cc44d8ef6c843d971fd1486">igw_update_gnode_bw</a></div><div class="ttdeci">void igw_update_gnode_bw(int *, inet_gw **, inet_gw *, int, int, int)</div><div class="ttdef"><b>Definition:</b> igs.c:588</div></div>
<div class="ttc" id="endianness_8h_html_a66b75e81c28419f622f82e631e5da9bc"><div class="ttname"><a href="../../dc/d3e/endianness_8h.html#a66b75e81c28419f622f82e631e5da9bc">INT_TYPE_16BIT</a></div><div class="ttdeci">#define INT_TYPE_16BIT</div><div class="ttdef"><b>Definition:</b> endianness.h:36</div></div>
<div class="ttc" id="structinternet__gateway_html_aa7aaba07202ef0bb6503098b72302c20"><div class="ttname"><a href="../../d8/daf/structinternet__gateway.html#aa7aaba07202ef0bb6503098b72302c20">internet_gateway::bandwidth</a></div><div class="ttdeci">u_char bandwidth</div><div class="ttdef"><b>Definition:</b> igs.h:96</div></div>
<div class="ttc" id="structinternet__gateway_html_afa294dffc3d0c43a71e2d66e685d057c"><div class="ttname"><a href="../../d8/daf/structinternet__gateway.html#afa294dffc3d0c43a71e2d66e685d057c">internet_gateway::ip</a></div><div class="ttdeci">u_int ip[4]</div><div class="ttdef"><b>Definition:</b> igs.h:91</div></div>
<div class="ttc" id="igs_8h_html_a46d6f806802d39aa290a387347a499d7"><div class="ttname"><a href="../../da/dd7/igs_8h.html#a46d6f806802d39aa290a387347a499d7">igw_del</a></div><div class="ttdeci">int igw_del(inet_gw **igws, int *igws_counter, inet_gw *igw, int level)</div><div class="ttdef"><b>Definition:</b> igs.c:527</div></div>
<div class="ttc" id="structinet__gw__pack__hdr_html_a22607e975db3e95e0f7208a464b4b85e"><div class="ttname"><a href="../../df/dbb/structinet__gw__pack__hdr.html#a22607e975db3e95e0f7208a464b4b85e">inet_gw_pack_hdr::gws</a></div><div class="ttdeci">int16_t gws[(14+(1+1))]</div><div class="ttdef"><b>Definition:</b> igs.h:105</div></div>
<div class="ttc" id="route_8h_html_a2dbb83f7996da5aa54f9890483f54c16"><div class="ttname"><a href="../../d9/d7f/route_8h.html#a2dbb83f7996da5aa54f9890483f54c16">MAX_MULTIPATH_ROUTES</a></div><div class="ttdeci">#define MAX_MULTIPATH_ROUTES</div><div class="ttdef"><b>Definition:</b> route.h:26</div></div>
<div class="ttc" id="structmap__node_html"><div class="ttname"><a href="../../d6/d1c/structmap__node.html">map_node</a></div><div class="ttdef"><b>Definition:</b> map.h:125</div></div>
<div class="ttc" id="igs_8h_html_a76117500992954b0514693bf053a893a"><div class="ttname"><a href="../../da/dd7/igs_8h.html#a76117500992954b0514693bf053a893a">inet_gw_pack_hdr_iinfo</a></div><div class="ttdeci">static const int_info inet_gw_pack_hdr_iinfo</div><div class="ttdef"><b>Definition:</b> igs.h:109</div></div>
<div class="ttc" id="igs_8h_html_a7b3d293ed96b781f5b351d0f054bbf0d"><div class="ttname"><a href="../../da/dd7/igs_8h.html#a7b3d293ed96b781f5b351d0f054bbf0d">igw_exec_masquerade_sh</a></div><div class="ttdeci">int igw_exec_masquerade_sh(char *script, int stop)</div><div class="ttdef"><b>Definition:</b> igs.c:853</div></div>
<div class="ttc" id="route_8h_html"><div class="ttname"><a href="../../d9/d7f/route_8h.html">route.h</a></div></div>
<div class="ttc" id="igs_8h_html_a68583c93468fa447635d641f93b040ce"><div class="ttname"><a href="../../da/dd7/igs_8h.html#a68583c93468fa447635d641f93b040ce">igw_store_bblock</a></div><div class="ttdeci">int igw_store_bblock(bnode_hdr *bblock_hdr, bnode_chunk *bchunk, u_char level)</div><div class="ttdef"><b>Definition:</b> igs.c:1276</div></div>
<div class="ttc" id="igs_8h_html_a2c6f10b4481f6bdcfe6dd51f34d56f0a"><div class="ttname"><a href="../../da/dd7/igs_8h.html#a2c6f10b4481f6bdcfe6dd51f34d56f0a">igw_find_node</a></div><div class="ttdeci">inet_gw * igw_find_node(inet_gw **igws, int level, map_node *node)</div><div class="ttdef"><b>Definition:</b> igs.c:546</div></div>
<div class="ttc" id="igs_8h_html_a68b10196ae2d1b448a3097dbf254eb68"><div class="ttname"><a href="../../da/dd7/igs_8h.html#a68b10196ae2d1b448a3097dbf254eb68">reset_igws</a></div><div class="ttdeci">void reset_igws(inet_gw **igws, int *igws_counter, int levels)</div><div class="ttdef"><b>Definition:</b> igs.c:195</div></div>
<div class="ttc" id="gmap_8h_html_add784659439a8dd6b1423406171414d3"><div class="ttname"><a href="../../d7/d3b/gmap_8h.html#add784659439a8dd6b1423406171414d3">MAX_LEVELS</a></div><div class="ttdeci">#define MAX_LEVELS</div><div class="ttdef"><b>Definition:</b> gmap.h:107</div></div>
<div class="ttc" id="structinet__prefix_html"><div class="ttname"><a href="../../da/d1d/structinet__prefix.html">inet_prefix</a></div><div class="ttdef"><b>Definition:</b> inet.h:73</div></div>
<div class="ttc" id="structquadro__group_html"><div class="ttname"><a href="../../d0/d3b/structquadro__group.html">quadro_group</a></div><div class="ttdef"><b>Definition:</b> gmap.h:127</div></div>
<div class="ttc" id="structinternet__gateway_html_a51c7ac4a86de786ab61c4e89852675ca"><div class="ttname"><a href="../../d8/daf/structinternet__gateway.html#a51c7ac4a86de786ab61c4e89852675ca">internet_gateway::gid</a></div><div class="ttdeci">u_char gid</div><div class="ttdef"><b>Definition:</b> igs.h:92</div></div>
<div class="ttc" id="igs_8h_html_a625d6b7c80cf35070eb68f83615cf8f7"><div class="ttname"><a href="../../da/dd7/igs_8h.html#a625d6b7c80cf35070eb68f83615cf8f7">igw_add_node</a></div><div class="ttdeci">inet_gw * igw_add_node(inet_gw **igws, int *igws_counter, int level, int gid, map_node *node, int ip[4], u_char bandwidth)</div><div class="ttdef"><b>Definition:</b> igs.c:509</div></div>
<div class="ttc" id="igs_8h_html_a51d86ef21953a6f2d0231b9c83701ce6"><div class="ttname"><a href="../../da/dd7/igs_8h.html#a51d86ef21953a6f2d0231b9c83701ce6">igw_replace_def_igws</a></div><div class="ttdeci">int igw_replace_def_igws(inet_gw **igws, int *igws_counter, inet_gw **my_igws, int max_levels, int family)</div><div class="ttdef"><b>Definition:</b> igs.c:968</div></div>
<div class="ttc" id="igs_8h_html_a53c17c74d86e8cf6bdd47242002c8bef"><div class="ttname"><a href="../../da/dd7/igs_8h.html#a53c17c74d86e8cf6bdd47242002c8bef">free_internet_hosts</a></div><div class="ttdeci">void free_internet_hosts(char **hnames, int hosts)</div><div class="ttdef"><b>Definition:</b> igs.c:149</div></div>
<div class="ttc" id="igs_8h_html_a5cf5f370332317b793630c29f82414c3"><div class="ttname"><a href="../../da/dd7/igs_8h.html#a5cf5f370332317b793630c29f82414c3">igw_exec_tcshaper_sh</a></div><div class="ttdeci">int igw_exec_tcshaper_sh(char *script, int stop, char *dev, int upload_bw, int dnload_bw)</div><div class="ttdef"><b>Definition:</b> igs.c:872</div></div>
<div class="ttc" id="igs_8h_html_a247ee5efa43ff0d3537231ccbafafe89"><div class="ttname"><a href="../../da/dd7/igs_8h.html#a247ee5efa43ff0d3537231ccbafafe89">igw_del_node</a></div><div class="ttdeci">int igw_del_node(inet_gw **, int *, int, map_node *)</div><div class="ttdef"><b>Definition:</b> igs.c:572</div></div>
<div class="ttc" id="structinet__gw__pack__hdr_html"><div class="ttname"><a href="../../df/dbb/structinet__gw__pack__hdr.html">inet_gw_pack_hdr</a></div><div class="ttdef"><b>Definition:</b> igs.h:103</div></div>
<div class="ttc" id="structdefault__inet__gw__nexthop_html"><div class="ttname"><a href="../../d0/d19/structdefault__inet__gw__nexthop.html">default_inet_gw_nexthop</a></div><div class="ttdef"><b>Definition:</b> igs.h:143</div></div>
<div class="ttc" id="igs_8h_html_a78b98b691ec68cb68436720bdc7fca46"><div class="ttname"><a href="../../da/dd7/igs_8h.html#a78b98b691ec68cb68436720bdc7fca46">active_gws</a></div><div class="ttdeci">int active_gws</div><div class="ttdef"><b>Definition:</b> igs.h:182</div></div>
<div class="ttc" id="igs_8h_html_a3df20b00e1530523fdddc24a9987a9b3"><div class="ttname"><a href="../../da/dd7/igs_8h.html#a3df20b00e1530523fdddc24a9987a9b3">free_my_igws</a></div><div class="ttdeci">void free_my_igws(inet_gw ***my_igs)</div><div class="ttdef"><b>Definition:</b> igs.c:266</div></div>
<div class="ttc" id="structdefault__inet__gw__nexthop_html_a4c6d495bc7de521991f59e9b020b61e3"><div class="ttname"><a href="../../d0/d19/structdefault__inet__gw__nexthop.html#a4c6d495bc7de521991f59e9b020b61e3">default_inet_gw_nexthop::flags</a></div><div class="ttdeci">u_char flags</div><div class="ttdef"><b>Definition:</b> igs.h:146</div></div>
<div class="ttc" id="inet_8h_html_a70f8406c9556460a606bee45306c5630"><div class="ttname"><a href="../../d6/d4a/inet_8h.html#a70f8406c9556460a606bee45306c5630">MAX_IP_INT</a></div><div class="ttdeci">#define MAX_IP_INT</div><div class="ttdef"><b>Definition:</b> inet.h:24</div></div>
<div class="ttc" id="igs_8h_html_ac87ed2fc7a66e73c5fef763321862295"><div class="ttname"><a href="../../da/dd7/igs_8h.html#ac87ed2fc7a66e73c5fef763321862295">igw_monitor_igws_t</a></div><div class="ttdeci">void * igw_monitor_igws_t(void *null)</div><div class="ttdef"><b>Definition:</b> igs.c:795</div></div>
<div class="ttc" id="igs_8h_html_a96f88cc795a0a08a7176d0c0af39e562"><div class="ttname"><a href="../../da/dd7/igs_8h.html#a96f88cc795a0a08a7176d0c0af39e562">init_my_igws</a></div><div class="ttdeci">void init_my_igws(inet_gw **igws, int *igws_counter, inet_gw ***my_new_igws, u_char my_bandwidth, map_node *cur_node, quadro_group *qg)</div><div class="ttdef"><b>Definition:</b> igs.c:231</div></div>
<div class="ttc" id="igs_8h_html_a184ab033bb2e2c1f856df5430ba87a80"><div class="ttname"><a href="../../da/dd7/igs_8h.html#a184ab033bb2e2c1f856df5430ba87a80">init_internet_gateway_search</a></div><div class="ttdeci">void init_internet_gateway_search(void)</div><div class="ttdef"><b>Definition:</b> igs.c:277</div></div>
<div class="ttc" id="structinet__gw__pack__hdr_html_a6659e021322ce90104f553d06f92e0c5"><div class="ttname"><a href="../../df/dbb/structinet__gw__pack__hdr.html#a6659e021322ce90104f553d06f92e0c5">inet_gw_pack_hdr::levels</a></div><div class="ttdeci">u_char levels</div><div class="ttdef"><b>Definition:</b> igs.h:107</div></div>
<div class="ttc" id="qspn-empiric_8h_html_a275f0c34bee112fa32e4fc86586a19ad"><div class="ttname"><a href="../../d5/ddf/qspn-empiric_8h.html#a275f0c34bee112fa32e4fc86586a19ad">int_map</a></div><div class="ttdeci">map_node * int_map</div><div class="ttdef"><b>Definition:</b> qspn-empiric.h:122</div></div>
<div class="ttc" id="igs_8h_html_ae8c2dbf486a8a270309828203fa1b4b5"><div class="ttname"><a href="../../da/dd7/igs_8h.html#ae8c2dbf486a8a270309828203fa1b4b5">igw_find_ip</a></div><div class="ttdeci">inet_gw * igw_find_ip(inet_gw **igws, int level, u_int ip[4])</div><div class="ttdef"><b>Definition:</b> igs.c:557</div></div>
<div class="ttc" id="igs_8h_html_a69dec3b6ff9453bc64d5b98f6b40e2aa"><div class="ttname"><a href="../../da/dd7/igs_8h.html#a69dec3b6ff9453bc64d5b98f6b40e2aa">close_internet_gateway_search</a></div><div class="ttdeci">void close_internet_gateway_search(void)</div><div class="ttdef"><b>Definition:</b> igs.c:473</div></div>
<div class="ttc" id="igs_8h_html_ac988c4e403d8e860068177e9c0358363"><div class="ttname"><a href="../../da/dd7/igs_8h.html#ac988c4e403d8e860068177e9c0358363">unpack_igws</a></div><div class="ttdeci">int unpack_igws(char *pack, size_t pack_sz, map_node *int_map, map_gnode **ext_map, int levels, inet_gw ***new_igws, int **new_igws_counter)</div><div class="ttdef"><b>Definition:</b> igs.c:1433</div></div>
<div class="ttc" id="igs_8h_html_a0631352217c3c9639e81de946f7af2e3"><div class="ttname"><a href="../../da/dd7/igs_8h.html#a0631352217c3c9639e81de946f7af2e3">igw_order</a></div><div class="ttdeci">void igw_order(inet_gw **igws, int *igws_counter, inet_gw **my_igws, int level)</div><div class="ttdef"><b>Definition:</b> igs.c:656</div></div>
<div class="ttc" id="igs_8h_html_a21eb27ad8b956a0f4777a7e855b5b361"><div class="ttname"><a href="../../da/dd7/igs_8h.html#a21eb27ad8b956a0f4777a7e855b5b361">multigw_nh</a></div><div class="ttdeci">igw_nexthop multigw_nh[24]</div><div class="ttdef"><b>Definition:</b> igs.h:183</div></div>
<div class="ttc" id="igs_8h_html_a2b648cbf154af516c4ed807ebaa4fe88"><div class="ttname"><a href="../../da/dd7/igs_8h.html#a2b648cbf154af516c4ed807ebaa4fe88">parse_internet_hosts</a></div><div class="ttdeci">char ** parse_internet_hosts(char *str, int *hosts)</div><div class="ttdef"><b>Definition:</b> igs.c:140</div></div>
<div class="ttc" id="endianness_8h_html_a3e44b8503d7a90af675c81800fe6d275"><div class="ttname"><a href="../../dc/d3e/endianness_8h.html#a3e44b8503d7a90af675c81800fe6d275">INT_INFO</a></div><div class="ttdeci">#define INT_INFO</div><div class="ttdef"><b>Definition:</b> endianness.h:90</div></div>
<div class="ttc" id="igs_8h_html_ab6e977b941c5031d125aed6513e19215"><div class="ttname"><a href="../../da/dd7/igs_8h.html#ab6e977b941c5031d125aed6513e19215">reset_igw_nexthop</a></div><div class="ttdeci">void reset_igw_nexthop(igw_nexthop *igwn)</div><div class="ttdef"><b>Definition:</b> igs.c:943</div></div>
<div class="ttc" id="igs_8h_html_a8f2b617dc42f9ab3075ff6e9d08b8893"><div class="ttname"><a href="../../da/dd7/igs_8h.html#a8f2b617dc42f9ab3075ff6e9d08b8893">_PACKED_</a></div><div class="ttdeci">struct inet_gw_pack_hdr _PACKED_</div></div>
<div class="ttc" id="structinternet__gateway_html_a6603e23fbe48da6884208e57fce99e15"><div class="ttname"><a href="../../d8/daf/structinternet__gateway.html#a6603e23fbe48da6884208e57fce99e15">internet_gateway::node</a></div><div class="ttdeci">map_node * node</div><div class="ttdef"><b>Definition:</b> igs.h:93</div></div>
<div class="ttc" id="igs_8h_html_ae0ee5831e7c8e3cc9828be7d4b8204ec"><div class="ttname"><a href="../../da/dd7/igs_8h.html#ae0ee5831e7c8e3cc9828be7d4b8204ec">igw_build_bentry</a></div><div class="ttdeci">char * igw_build_bentry(u_char level, size_t *pack_sz, int *new_bblocks)</div><div class="ttdef"><b>Definition:</b> igs.c:1181</div></div>
<div class="ttc" id="igs_8h_html_a35c3e3ff94064955d6965ad87a95ab36"><div class="ttname"><a href="../../da/dd7/igs_8h.html#a35c3e3ff94064955d6965ad87a95ab36">init_my_igw</a></div><div class="ttdeci">void init_my_igw(void)</div></div>
<div class="ttc" id="igs_8h_html_aab1091590ed4414ea138fedb0d2982e3"><div class="ttname"><a href="../../da/dd7/igs_8h.html#aab1091590ed4414ea138fedb0d2982e3">init_igws</a></div><div class="ttdeci">void init_igws(inet_gw ***igws, int **igws_counter, int levels)</div><div class="ttdef"><b>Definition:</b> igs.c:187</div></div>
<div class="ttc" id="structdefault__inet__gw__nexthop_html_a8caad76d143e7679a875dedd172626a0"><div class="ttname"><a href="../../d0/d19/structdefault__inet__gw__nexthop.html#a8caad76d143e7679a875dedd172626a0">default_inet_gw_nexthop::table</a></div><div class="ttdeci">u_char table</div><div class="ttdef"><b>Definition:</b> igs.h:148</div></div>
<div class="ttc" id="igs_8h_html_af0c6fb918f055c28c21d5a17fe02db09"><div class="ttname"><a href="../../da/dd7/igs_8h.html#af0c6fb918f055c28c21d5a17fe02db09">igw_check_inet_conn_t</a></div><div class="ttdeci">void * igw_check_inet_conn_t(void *null)</div><div class="ttdef"><b>Definition:</b> igs.c:714</div></div>
<div class="ttc" id="igs_8h_html_a319bad303b318822fe195f434e5b3ddc"><div class="ttname"><a href="../../da/dd7/igs_8h.html#a319bad303b318822fe195f434e5b3ddc">free_igws</a></div><div class="ttdeci">void free_igws(inet_gw **igws, int *igws_counter, int levels)</div><div class="ttdef"><b>Definition:</b> igs.c:209</div></div>
<div class="ttc" id="llist_8c_html_ac92348e99cfae025c3893c07fee7b263"><div class="ttname"><a href="../../d4/de1/llist_8c.html#ac92348e99cfae025c3893c07fee7b263">LLIST_HDR</a></div><div class="ttdeci">#define LLIST_HDR(_struct)</div><div class="ttdef"><b>Definition:</b> llist.c:44</div></div>
<div class="ttc" id="igs_8h_html_a8188aff5547e21daad2860d6bfdc7070"><div class="ttname"><a href="../../da/dd7/igs_8h.html#a8188aff5547e21daad2860d6bfdc7070">reset_igw_rules</a></div><div class="ttdeci">void reset_igw_rules(void)</div><div class="ttdef"><b>Definition:</b> igs.c:951</div></div>
<div class="ttc" id="if_8c_html_a4417150d9f858949bd9ea8794995ebcc"><div class="ttname"><a href="../../d7/de2/if_8c.html#a4417150d9f858949bd9ea8794995ebcc">family</a></div><div class="ttdeci">int family</div><div class="ttdef"><b>Definition:</b> if.c:34</div></div>
<div class="ttc" id="structdefault__inet__gw__nexthop_html_a74affc102fc1aaaba9f7c756e2f55d3d"><div class="ttname"><a href="../../d0/d19/structdefault__inet__gw__nexthop.html#a74affc102fc1aaaba9f7c756e2f55d3d">default_inet_gw_nexthop::nexthop</a></div><div class="ttdeci">inet_prefix nexthop</div><div class="ttdef"><b>Definition:</b> igs.h:144</div></div>
<div class="ttc" id="igs_8h_html_a5855d790f8cd80495bf1962009b6cb7b"><div class="ttname"><a href="../../da/dd7/igs_8h.html#a5855d790f8cd80495bf1962009b6cb7b">igw_check_inet_conn</a></div><div class="ttdeci">int igw_check_inet_conn(void)</div><div class="ttdef"><b>Definition:</b> igs.c:694</div></div>
<div class="ttc" id="igs_8h_html_a016c3a34a9dc7add88dd0bce88440e05"><div class="ttname"><a href="../../da/dd7/igs_8h.html#a016c3a34a9dc7add88dd0bce88440e05">str_to_inet_gw</a></div><div class="ttdeci">int str_to_inet_gw(char *str, inet_prefix *gw, char **dev)</div><div class="ttdef"><b>Definition:</b> igs.c:104</div></div>
<div class="ttc" id="igs_8h_html_a413fd34c9565aa635c90cc7f811169e5"><div class="ttname"><a href="../../da/dd7/igs_8h.html#a413fd34c9565aa635c90cc7f811169e5">pack_igws</a></div><div class="ttdeci">char * pack_igws(inet_gw **igws, int *igws_counter, int levels, int *pack_sz)</div><div class="ttdef"><b>Definition:</b> igs.c:1388</div></div>
<div class="ttc" id="structinternet__gateway_html_ae80276e2e9cfbac79d4bfb26390c5ff8"><div class="ttname"><a href="../../d8/daf/structinternet__gateway.html#ae80276e2e9cfbac79d4bfb26390c5ff8">internet_gateway::flags</a></div><div class="ttdeci">char flags</div><div class="ttdef"><b>Definition:</b> igs.h:95</div></div>
<div class="ttc" id="structmap__gnode_html"><div class="ttname"><a href="../../d5/d7c/structmap__gnode.html">map_gnode</a></div><div class="ttdef"><b>Definition:</b> gmap.h:37</div></div>
<div class="ttc" id="structdefault__inet__gw__nexthop_html_a140bde1f56d6f56a301a181b95fc56a4"><div class="ttname"><a href="../../d0/d19/structdefault__inet__gw__nexthop.html#a140bde1f56d6f56a301a181b95fc56a4">default_inet_gw_nexthop::tunl</a></div><div class="ttdeci">u_char tunl</div><div class="ttdef"><b>Definition:</b> igs.h:149</div></div>
<div class="ttc" id="igs_8h_html_aa6de0936765376643c8726ca0eaf6dde"><div class="ttname"><a href="../../da/dd7/igs_8h.html#aa6de0936765376643c8726ca0eaf6dde">bandwidth_in_8bit</a></div><div class="ttdeci">u_char bandwidth_in_8bit(u_int x)</div><div class="ttdef"><b>Definition:</b> igs.c:61</div></div>
<div class="ttc" id="structinternet__gateway_html"><div class="ttname"><a href="../../d8/daf/structinternet__gateway.html">internet_gateway</a></div><div class="ttdef"><b>Definition:</b> igs.h:87</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="../../da/dd7/igs_8h.html">igs.h</a></li>
<li class="footer">Generated on Wed Feb 19 2014 14:19:07 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>