netsukuku/d5/dbf/bmap_8h_source.html

333 lines
52 KiB
HTML
Raw Normal View History

<!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/bmap.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('d5/dbf/bmap_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">bmap.h</div> </div>
</div><!--header-->
<div class="contents">
<a href="../../d5/dbf/bmap_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 system</span></div>
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="comment"> * (c) Copyright 2004 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 BMAP_H</span></div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;<span class="preprocessor">#define BMAP_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="../../d7/d3b/gmap_8h.html">gmap.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"><a class="line" href="../../d5/dbf/bmap_8h.html#a7057d60bad50fd5c7a3ea0ab6e88b513"> 24</a></span>&#160;<span class="preprocessor">#define BMAP_UPDATE MAP_UPDATE </span><span class="comment">/* At each new qspn_round all the bnodes flags are set </span></div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160;<span class="comment"> to BMAP_UPDATE, thus when tracer_store_pkt() updates</span></div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;<span class="comment"> them for the first time during the new round, it</span></div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160;<span class="comment"> deletes their rnodes. */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160; </div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;<span class="comment">/* </span></div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160;<span class="comment"> * map_bnode is the struct used to create the &quot;map border node&quot;. </span></div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160;<span class="comment"> * This map keeps all the border node of the map, making it easy to retrieve</span></div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160;<span class="comment"> * the gnode they are linked to.</span></div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160;<span class="comment"> * It is indentical to the map_node but, as always there are some little </span></div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160;<span class="comment"> * differences:</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"> * uint16_t links; is the number of gnodes the bnode is </span></div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160;<span class="comment"> * linked to.</span></div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160;<span class="comment"> * map_rnode *r_node; r_node[x].r_node, in this case, points </span></div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160;<span class="comment"> * to the position of the bnode&#39;s gnode in</span></div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160;<span class="comment"> * the ext_map.</span></div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160;<span class="comment"> * u_int brdcast; Where this node is in the int/ext_map.</span></div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160;<span class="comment"> * The position is stored in the usual</span></div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160;<span class="comment"> * pos_from_node() format. (Yep, a dirty hack)</span></div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160;<span class="comment"> * So you are asking why I didn&#39;t made a new struct for the bmap. Well, I don&#39;t </span></div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160;<span class="comment"> * want to [re]write all the functions to handle the map, for example </span></div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160;<span class="comment"> * rnode_add,rnode_del, save_map, etc... it&#39;s a pain, just for a little map and </span></div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160;<span class="comment"> * moreover it adds new potential bugs. In conclusion: laziness + fear == hacks++;</span></div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="../../d5/dbf/bmap_8h.html#a3fa0064586cddcbc6762037a6664a2a3"> 51</a></span>&#160;<span class="keyword">typedef</span> <a class="code" href="../../d6/d1c/structmap__node.html">map_node</a> <a class="code" href="../../d5/dbf/bmap_8h.html#a3fa0064586cddcbc6762037a6664a2a3">map_bnode</a>;</div>
<div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="../../d5/dbf/bmap_8h.html#aee26112bcb8aa59832a9e03f68084212"> 52</a></span>&#160;<span class="preprocessor">#define MAP_BNODE_PACK_SZ MAP_NODE_PACK_SZ</span></div>
<div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="../../d5/dbf/bmap_8h.html#ae72e6f99e96d06315a7f33ebfb14fb76"> 53</a></span>&#160;<span class="preprocessor">#define MAXGROUPBNODE MAXGROUPNODE </span><span class="comment">/*the maximum number of bnodes in </span></div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160;<span class="comment"> a gnode is equal to the maximum </span></div>
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160;<span class="comment"> number of nodes*/</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="../../d5/dbf/bmap_8h.html#a957b79476e418b24731ee1b341577b62"> 56</a></span>&#160;<span class="preprocessor">#define MAXBNODE_LINKS (MAXGROUPNODE*2)</span><span class="comment">/*The maximum number of gnodes a</span></div>
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160;<span class="comment"> bnode is linked to*/</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="../../d5/dbf/bmap_8h.html#abf3e3d0643ab8c95a84dd31c3bd6da74"> 58</a></span>&#160;<span class="preprocessor">#define MAXBNODE_RNODEBLOCK (MAXBNODE_LINKS*MAXGROUPBNODE*MAP_RNODE_PACK_SZ)</span></div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160;</div>
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160;<span class="comment">/* </span></div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160;<span class="comment"> * These defines make the life easier, so instead of writing int_map_hdr I</span></div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160;<span class="comment"> * write bnode_map_hdr. Cool eh? ^_^.</span></div>
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="../../d5/dbf/bmap_8h.html#aabff6203fcd18cf5adcf0418c0e99600"> 64</a></span>&#160;<span class="preprocessor">#define bnode_ptr brdcast </span><span class="comment">/*Don&#39;t kill me*/</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="../../d5/dbf/bmap_8h.html#a11ab799c1e1a9de2bbd184704bf72e04"> 65</a></span>&#160;<span class="preprocessor">#define bnode_map_hdr int_map_hdr</span></div>
<div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="../../d5/dbf/bmap_8h.html#aa4804b7bda1fd679f8ad8132ad4c8065"> 66</a></span>&#160;<span class="preprocessor">#define bnode_map_sz int_map_sz</span></div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160;</div>
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160;<span class="comment"> * The bnode map uses only `me.cur_quadg.levels-1&#39; levels, because each level of</span></div>
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160;<span class="comment"> * the bmap points to the upper one, therefore the last level is ignored.</span></div>
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00072"></a><span class="lineno"><a class="line" href="../../d5/dbf/bmap_8h.html#a09f3c22e5118b3edb54d42e70b061731"> 72</a></span>&#160;<span class="preprocessor">#define BMAP_LEVELS(levels) (levels-1)</span></div>
<div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="../../d5/dbf/bmap_8h.html#a18dd5f53ad1974ffc7d472bc78d99210"> 73</a></span>&#160;<span class="preprocessor">#define BMAP_MAX_LEVELS (BMAP_LEVELS(MAX_LEVELS))</span></div>
<div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="../../d5/dbf/bmap_8h.html#a797e8cf618aafdee19a4767bd100bd9e"> 74</a></span>&#160;<span class="preprocessor">#define GET_BMAP_LEVELS(family) (BMAP_LEVELS(GET_LEVELS((family))))</span></div>
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160;</div>
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160;<span class="comment">/* </span></div>
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>&#160;<span class="comment"> * border node block: this is the block which keeps the gnodes linked to the </span></div>
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>&#160;<span class="comment"> * `bnode&#39; border_node. When a bnode has to add his entry in the tracer_pkt it </span></div>
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160;<span class="comment"> * encapsulates the bnode_block at the end of the packet, in this way it is </span></div>
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>&#160;<span class="comment"> * possible to know all the gnodes linked to the bnode&#39;s gnode.</span></div>
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160;<span class="comment"> * Note: It is possible that the packet passes trough many bnodes, in this case </span></div>
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160;<span class="comment"> * the bnode block is always put at the end, ex: </span></div>
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>&#160;<span class="comment"> * |pkt_hdr|brdcast_hdr|tracer_hdr|tracer_chunks|bnode_hdr|bnode_chunks|bnode_hdr|bnode_chunks|...</span></div>
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>&#160;<span class="comment"> * and so on.</span></div>
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160;<span class="comment"> * The bblock is also used to store the Internet gateways, see igs.h for more</span></div>
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160;<span class="comment"> * details.</span></div>
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="../../d3/d5a/struct__PACKED__.html"> 89</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct</span></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="../../d3/d5a/struct__PACKED__.html#ad17b02cb632ed58180e7b36a5311d4c6"> 91</a></span>&#160; u_char <a class="code" href="../../d3/d5a/struct__PACKED__.html#ad17b02cb632ed58180e7b36a5311d4c6">bnode_levels</a>;</div>
<div class="line"><a name="l00092"></a><span class="lineno"><a class="line" href="../../d3/d5a/struct__PACKED__.html#a939d2a9ae966720b2ae4081408ac4c42"> 92</a></span>&#160; u_short <a class="code" href="../../d3/d5a/struct__PACKED__.html#a939d2a9ae966720b2ae4081408ac4c42">links</a>; <span class="comment">/*The number of linked gnode*/</span></div>
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>&#160;}<a class="code" href="../../d3/d5a/struct__PACKED__.html">_PACKED_</a> bnode_hdr;</div>
<div class="line"><a name="l00094"></a><span class="lineno"><a class="line" href="../../d5/dbf/bmap_8h.html#ab9bd178f89a293e3910e36cd7e51913d"> 94</a></span>&#160;<a class="code" href="../../dc/d3e/endianness_8h.html#a3e44b8503d7a90af675c81800fe6d275">INT_INFO</a> <a class="code" href="../../d5/dbf/bmap_8h.html#ab9bd178f89a293e3910e36cd7e51913d">bnode_hdr_iinfo</a> = { 1, { <a class="code" href="../../dc/d3e/endianness_8h.html#a66b75e81c28419f622f82e631e5da9bc">INT_TYPE_16BIT</a> }, { <span class="keyword">sizeof</span>(char) }, { 1 } };</div>
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>&#160;</div>
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>&#160;<span class="comment"> * This is part of the bnode_hdr.</span></div>
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>&#160;<span class="comment"> * </span></div>
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>&#160;<span class="comment"> * u_char bnode[bnode_levels]; The bnode this bnode_block belongs to.</span></div>
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00101"></a><span class="lineno"><a class="line" href="../../d5/dbf/bmap_8h.html#afc7a771488bcd334fcc0bcfc8dc66dfd"> 101</a></span>&#160;<span class="preprocessor">#define BNODE_HDR_SZ(levels) (sizeof(bnode_hdr)+sizeof(u_char)*(levels))</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"> 103</span>&#160;</div>
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct</span></div>
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>&#160;{</div>
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>&#160; <span class="comment">/* The `bnode_hdr.bnode&#39; borders on the `gnode&#39; of `level&#39;th level with</span></div>
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>&#160;<span class="comment"> * a round trip time which is stored in `rtt&#39;. */</span></div>
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>&#160;</div>
<div class="line"><a name="l00109"></a><span class="lineno"><a class="line" href="../../d3/d5a/struct__PACKED__.html#a5d5b4372a62c28efe63ae55dbabdac3d"> 109</a></span>&#160; u_char <a class="code" href="../../d3/d5a/struct__PACKED__.html#a5d5b4372a62c28efe63ae55dbabdac3d">gnode</a>; </div>
<div class="line"><a name="l00110"></a><span class="lineno"><a class="line" href="../../d3/d5a/struct__PACKED__.html#a9dfed1e3eab66ad4db968a161002f421"> 110</a></span>&#160; u_char <a class="code" href="../../d3/d5a/struct__PACKED__.html#a9dfed1e3eab66ad4db968a161002f421">level</a>;</div>
<div class="line"><a name="l00111"></a><span class="lineno"><a class="line" href="../../d3/d5a/struct__PACKED__.html#a7bdd43f228f762453189dd9167a010ab"> 111</a></span>&#160; u_int <a class="code" href="../../d3/d5a/struct__PACKED__.html#a7bdd43f228f762453189dd9167a010ab">rtt</a>;</div>
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>&#160;}<a class="code" href="../../d3/d5a/struct__PACKED__.html">_PACKED_</a> bnode_chunk;</div>
<div class="line"><a name="l00113"></a><span class="lineno"><a class="line" href="../../d5/dbf/bmap_8h.html#a3a8e4d992693008cc4f281154671ef99"> 113</a></span>&#160;<span class="preprocessor">#define BNODEBLOCK_SZ(levels, links) (BNODE_HDR_SZ((levels)) + \</span></div>
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>&#160;<span class="preprocessor"> (sizeof(bnode_chunk)*(links)))</span></div>
<div class="line"><a name="l00115"></a><span class="lineno"><a class="line" href="../../d5/dbf/bmap_8h.html#aa9ce8547fcaaa4b7fde8638db6775a5c"> 115</a></span>&#160;<a class="code" href="../../dc/d3e/endianness_8h.html#a3e44b8503d7a90af675c81800fe6d275">INT_INFO</a> <a class="code" href="../../d5/dbf/bmap_8h.html#aa9ce8547fcaaa4b7fde8638db6775a5c">bnode_chunk_iinfo</a> = { 1, { <a class="code" href="../../dc/d3e/endianness_8h.html#acc663d0291dd4a32c1dfbed3167bd58b">INT_TYPE_32BIT</a> }, { <span class="keyword">sizeof</span>(char)*2 }, { 1 } };</div>
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>&#160;</div>
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>&#160;</div>
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>&#160;<span class="comment">/* </span></div>
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>&#160;<span class="comment"> * This is the header placed on top of all the bnode_map blocks.</span></div>
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>&#160;<span class="comment"> * So the bnode maps final block is:</span></div>
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>&#160;<span class="comment"> * </span></div>
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>&#160;<span class="comment"> * bnode_maps_hdr</span></div>
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>&#160;<span class="comment"> * </span></div>
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>&#160;<span class="comment"> * ---------</span></div>
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>&#160;<span class="comment"> * bnode_map_hdr</span></div>
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>&#160;<span class="comment"> * bnode_map_block</span></div>
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>&#160;<span class="comment"> * ---------</span></div>
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>&#160;<span class="comment"> * bnode_map_hdr</span></div>
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>&#160;<span class="comment"> * bnode_map_block</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"> * </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"><a class="line" href="../../d4/d56/structbnode__maps__hdr.html"> 134</a></span>&#160;<span class="keyword">struct </span><a class="code" href="../../d4/d56/structbnode__maps__hdr.html">bnode_maps_hdr</a></div>
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>&#160;{</div>
<div class="line"><a name="l00136"></a><span class="lineno"><a class="line" href="../../d4/d56/structbnode__maps__hdr.html#aade095aa75e95e73b7eabdaf44d4c02a"> 136</a></span>&#160; u_char <a class="code" href="../../d4/d56/structbnode__maps__hdr.html#aade095aa75e95e73b7eabdaf44d4c02a">levels</a>;</div>
<div class="line"><a name="l00137"></a><span class="lineno"><a class="line" href="../../d4/d56/structbnode__maps__hdr.html#a1186b91531749452ccbe61825134e1c3"> 137</a></span>&#160; <span class="keywordtype">size_t</span> <a class="code" href="../../d4/d56/structbnode__maps__hdr.html#a1186b91531749452ccbe61825134e1c3">bmaps_block_sz</a>;</div>
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>&#160;}<a class="code" href="../../d5/dbf/bmap_8h.html#aa00674da6e778819e2fc686b7019e663">_PACKED_</a>;</div>
<div class="line"><a name="l00139"></a><span class="lineno"><a class="line" href="../../d5/dbf/bmap_8h.html#ad75d18b69ce0cac4699b8f51f21cca2a"> 139</a></span>&#160;<a class="code" href="../../dc/d3e/endianness_8h.html#a3e44b8503d7a90af675c81800fe6d275">INT_INFO</a> <a class="code" href="../../d5/dbf/bmap_8h.html#ad75d18b69ce0cac4699b8f51f21cca2a">bnode_maps_hdr_iinfo</a> = { 1, { <a class="code" href="../../dc/d3e/endianness_8h.html#acc663d0291dd4a32c1dfbed3167bd58b">INT_TYPE_32BIT</a> }, { <span class="keyword">sizeof</span>(char) }, { 1 } };</div>
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>&#160;</div>
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>&#160;<span class="comment">/* * * Functions&#39; declaration * * */</span></div>
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span>&#160;<span class="keywordtype">void</span> <a class="code" href="../../d5/dbf/bmap_8h.html#ae52670571abab59c3b815dfc9c822867">bmap_levels_init</a>(u_char levels, <a class="code" href="../../d6/d1c/structmap__node.html">map_bnode</a> ***bmap, u_int **bmap_nodes);</div>
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>&#160;<span class="keywordtype">void</span> <a class="code" href="../../d5/dbf/bmap_8h.html#aed4fb3f2636edb8f780621c1a5b8db99">bmap_levels_free</a>(<a class="code" href="../../d6/d1c/structmap__node.html">map_bnode</a> **bmap, u_int *bmap_nodes);</div>
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>&#160;<span class="keywordtype">void</span> <a class="code" href="../../d5/dbf/bmap_8h.html#aec0994460c2835a92979f625d66893f8">bmap_counter_init</a>(u_char levels, u_int **bnodes_closed, u_int **bnodes_opened);</div>
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>&#160;<span class="keywordtype">void</span> <a class="code" href="../../d5/dbf/bmap_8h.html#a2dacbb95b8df55493406c8e1e9815af8">bmap_counter_free</a>(u_int *bnodes_closed, u_int *bnodes_opened);</div>
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span>&#160;<span class="keywordtype">void</span> <a class="code" href="../../d5/dbf/bmap_8h.html#a836bfeb9ef1c2a5ed669f8b247c3c5aa">bmap_counter_reset</a>(u_char levels, u_int *counter);</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"> 148</span>&#160;<span class="keywordtype">int</span> <a class="code" href="../../d5/dbf/bmap_8h.html#a4cb9464f4d1d4b9cdbf155cd8bff044b">map_add_bnode</a>(<a class="code" href="../../d6/d1c/structmap__node.html">map_bnode</a> **bmap, u_int *bmap_nodes, u_int bnode, u_int links);</div>
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>&#160;<a class="code" href="../../d6/d1c/structmap__node.html">map_bnode</a> *<a class="code" href="../../d5/dbf/bmap_8h.html#ad5e42fe96459ba88f0babdb9aada0edf">map_bnode_del</a>(<a class="code" href="../../d6/d1c/structmap__node.html">map_bnode</a> *bmap, u_int *bmap_nodes, <a class="code" href="../../d6/d1c/structmap__node.html">map_bnode</a> *bnode);</div>
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>&#160;<span class="keywordtype">int</span> <a class="code" href="../../d5/dbf/bmap_8h.html#ab53262db284919a21a308772fd29de38">bmap_del_rnode_by_level</a>(<a class="code" href="../../d6/d1c/structmap__node.html">map_bnode</a> *, <span class="keywordtype">int</span>, <a class="code" href="../../d5/d7c/structmap__gnode.html">map_gnode</a> **, <span class="keywordtype">int</span>);</div>
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span>&#160;<span class="keywordtype">int</span> <a class="code" href="../../d5/dbf/bmap_8h.html#aa8aef82f1c7172f7d8314b2f3ccb9653">map_find_bnode</a>(<a class="code" href="../../d6/d1c/structmap__node.html">map_bnode</a> *bmap, <span class="keywordtype">int</span> bmap_nodes, <span class="keywordtype">int</span> node);</div>
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span>&#160;<span class="keywordtype">int</span> <a class="code" href="../../d5/dbf/bmap_8h.html#a61bdcdcc5f2bd5cf6e35df84dbd89ffd">map_find_bnode_rnode</a>(<a class="code" href="../../d6/d1c/structmap__node.html">map_bnode</a> *bmap, <span class="keywordtype">int</span> bmap_nodes, <span class="keywordtype">void</span> *n);</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"> 154</span>&#160;<span class="keywordtype">int</span> <a class="code" href="../../d5/dbf/bmap_8h.html#ac6503610230575f4923676b61a1844b8">map_count_bnode_rnode</a>(<a class="code" href="../../d6/d1c/structmap__node.html">map_bnode</a> *bmap, <span class="keywordtype">int</span> bmap_nodes, <span class="keywordtype">void</span> *n);</div>
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span>&#160;<span class="keywordtype">int</span> <a class="code" href="../../d5/dbf/bmap_8h.html#a50f873088a482f44aede191ccea689d0">bmaps_count_bnode_rnode</a>(<a class="code" href="../../d6/d1c/structmap__node.html">map_bnode</a> **bmap, <span class="keywordtype">int</span> *bmap_nodes, <span class="keywordtype">int</span> levels, <span class="keywordtype">void</span> *n);</div>
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span>&#160;<span class="keywordtype">int</span> <a class="code" href="../../d5/dbf/bmap_8h.html#a0ef1ec0f5dbe658850ed40094ee31b45">map_del_bnode_rnode</a>(<a class="code" href="../../d6/d1c/structmap__node.html">map_bnode</a> **bmap, <span class="keywordtype">int</span> *bmap_nodes, <span class="keywordtype">void</span> *n);</div>
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span>&#160;<span class="keywordtype">int</span> <a class="code" href="../../d5/dbf/bmap_8h.html#a8e708a5466d5ad8c7a848e2617d5fdf9">bmaps_del_bnode_rnode</a>(<a class="code" href="../../d6/d1c/structmap__node.html">map_bnode</a> **bmap, <span class="keywordtype">int</span> *bmap_nodes, <span class="keywordtype">int</span> levels, <span class="keywordtype">void</span> *n);</div>
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span>&#160;</div>
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span>&#160;<span class="keywordtype">void</span> <a class="code" href="../../d5/dbf/bmap_8h.html#a19d3172c72062d19df227d6ceb25ce45">map_set_bnode_flag</a>(<a class="code" href="../../d6/d1c/structmap__node.html">map_bnode</a> *bmap, <span class="keywordtype">int</span> bmap_nodes, <span class="keywordtype">int</span> <a class="code" href="../../d7/de2/if_8c.html#ac8bf36fe0577cba66bccda3a6f7e80a4">flags</a>);</div>
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span>&#160;<span class="keywordtype">void</span> <a class="code" href="../../d5/dbf/bmap_8h.html#a892156a9b22aaa6e66ea99123de91b76">bmaps_set_bnode_flag</a>(<a class="code" href="../../d6/d1c/structmap__node.html">map_bnode</a> **bmap, <span class="keywordtype">int</span> *bmap_nodes, <span class="keywordtype">int</span> levels, <span class="keywordtype">int</span> flags);</div>
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>&#160;</div>
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span>&#160;<span class="keywordtype">char</span> *<a class="code" href="../../d5/dbf/bmap_8h.html#ae8c6ea7090b72e0e8bb5b84052897f49">pack_all_bmaps</a>(<a class="code" href="../../d6/d1c/structmap__node.html">map_bnode</a> **, u_int *, <a class="code" href="../../d5/d7c/structmap__gnode.html">map_gnode</a> **, <a class="code" href="../../d0/d3b/structquadro__group.html">quadro_group</a>, <span class="keywordtype">size_t</span> *);</div>
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>&#160;<a class="code" href="../../d6/d1c/structmap__node.html">map_bnode</a> **<a class="code" href="../../d5/dbf/bmap_8h.html#aade6d459f779e4b70ecd48aa3b5ff6a9">unpack_all_bmaps</a>(<span class="keywordtype">char</span> *, u_char, <a class="code" href="../../d5/d7c/structmap__gnode.html">map_gnode</a> **, u_int **, <span class="keywordtype">int</span>, <span class="keywordtype">int</span>);</div>
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span>&#160;</div>
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>&#160;<span class="keywordtype">int</span> <a class="code" href="../../d5/dbf/bmap_8h.html#aeb4fdd783f97654db0a17fcf7dbc516b">save_bmap</a>(<a class="code" href="../../d6/d1c/structmap__node.html">map_bnode</a> **, u_int *, <a class="code" href="../../d5/d7c/structmap__gnode.html">map_gnode</a> **, <a class="code" href="../../d0/d3b/structquadro__group.html">quadro_group</a>, <span class="keywordtype">char</span> *);</div>
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span>&#160;<a class="code" href="../../d6/d1c/structmap__node.html">map_bnode</a> **<a class="code" href="../../d5/dbf/bmap_8h.html#a233c188952c33778f3c4b085540b9f77">load_bmap</a>(<span class="keywordtype">char</span> *, <a class="code" href="../../d5/d7c/structmap__gnode.html">map_gnode</a> **, u_char, u_int **);</div>
<div class="line"><a name="l00167"></a><span class="lineno"> 167</span>&#160;</div>
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span>&#160;</div>
<div class="line"><a name="l00169"></a><span class="lineno"> 169</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/*BMAP_H*/</span><span class="preprocessor"></span></div>
<div class="ttc" id="bmap_8h_html_a19d3172c72062d19df227d6ceb25ce45"><div class="ttname"><a href="../../d5/dbf/bmap_8h.html#a19d3172c72062d19df227d6ceb25ce45">map_set_bnode_flag</a></div><div class="ttdeci">void map_set_bnode_flag(map_bnode *bmap, int bmap_nodes, int flags)</div><div class="ttdef"><b>Definition:</b> bmap.c:248</div></div>
<div class="ttc" id="gmap_8h_html"><div class="ttname"><a href="../../d7/d3b/gmap_8h.html">gmap.h</a></div></div>
<div class="ttc" id="bmap_8h_html_a50f873088a482f44aede191ccea689d0"><div class="ttname"><a href="../../d5/dbf/bmap_8h.html#a50f873088a482f44aede191ccea689d0">bmaps_count_bnode_rnode</a></div><div class="ttdeci">int bmaps_count_bnode_rnode(map_bnode **bmap, int *bmap_nodes, int levels, void *n)</div><div class="ttdef"><b>Definition:</b> bmap.c:191</div></div>
<div class="ttc" id="bmap_8h_html_a836bfeb9ef1c2a5ed669f8b247c3c5aa"><div class="ttname"><a href="../../d5/dbf/bmap_8h.html#a836bfeb9ef1c2a5ed669f8b247c3c5aa">bmap_counter_reset</a></div><div class="ttdeci">void bmap_counter_reset(u_char levels, u_int *counter)</div><div class="ttdef"><b>Definition:</b> bmap.c:62</div></div>
<div class="ttc" id="bmap_8h_html_ab9bd178f89a293e3910e36cd7e51913d"><div class="ttname"><a href="../../d5/dbf/bmap_8h.html#ab9bd178f89a293e3910e36cd7e51913d">bnode_hdr_iinfo</a></div><div class="ttdeci">static const int_info bnode_hdr_iinfo</div><div class="ttdef"><b>Definition:</b> bmap.h:94</div></div>
<div class="ttc" id="struct__PACKED___html_a7bdd43f228f762453189dd9167a010ab"><div class="ttname"><a href="../../d3/d5a/struct__PACKED__.html#a7bdd43f228f762453189dd9167a010ab">_PACKED_::rtt</a></div><div class="ttdeci">u_int rtt</div><div class="ttdef"><b>Definition:</b> bmap.h:111</div></div>
<div class="ttc" id="bmap_8h_html_ad5e42fe96459ba88f0babdb9aada0edf"><div class="ttname"><a href="../../d5/dbf/bmap_8h.html#ad5e42fe96459ba88f0babdb9aada0edf">map_bnode_del</a></div><div class="ttdeci">map_bnode * map_bnode_del(map_bnode *bmap, u_int *bmap_nodes, map_bnode *bnode)</div><div class="ttdef"><b>Definition:</b> bmap.c:96</div></div>
<div class="ttc" id="struct__PACKED___html_a939d2a9ae966720b2ae4081408ac4c42"><div class="ttname"><a href="../../d3/d5a/struct__PACKED__.html#a939d2a9ae966720b2ae4081408ac4c42">_PACKED_::links</a></div><div class="ttdeci">u_short links</div><div class="ttdef"><b>Definition:</b> bmap.h:92</div></div>
<div class="ttc" id="bmap_8h_html_aa8aef82f1c7172f7d8314b2f3ccb9653"><div class="ttname"><a href="../../d5/dbf/bmap_8h.html#aa8aef82f1c7172f7d8314b2f3ccb9653">map_find_bnode</a></div><div class="ttdeci">int map_find_bnode(map_bnode *bmap, int bmap_nodes, int node)</div><div class="ttdef"><b>Definition:</b> bmap.c:144</div></div>
<div class="ttc" id="bmap_8h_html_a2dacbb95b8df55493406c8e1e9815af8"><div class="ttname"><a href="../../d5/dbf/bmap_8h.html#a2dacbb95b8df55493406c8e1e9815af8">bmap_counter_free</a></div><div class="ttdeci">void bmap_counter_free(u_int *bnodes_closed, u_int *bnodes_opened)</div><div class="ttdef"><b>Definition:</b> bmap.c:56</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="bmap_8h_html_a61bdcdcc5f2bd5cf6e35df84dbd89ffd"><div class="ttname"><a href="../../d5/dbf/bmap_8h.html#a61bdcdcc5f2bd5cf6e35df84dbd89ffd">map_find_bnode_rnode</a></div><div class="ttdeci">int map_find_bnode_rnode(map_bnode *bmap, int bmap_nodes, void *n)</div><div class="ttdef"><b>Definition:</b> bmap.c:160</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="struct__PACKED___html_a5d5b4372a62c28efe63ae55dbabdac3d"><div class="ttname"><a href="../../d3/d5a/struct__PACKED__.html#a5d5b4372a62c28efe63ae55dbabdac3d">_PACKED_::gnode</a></div><div class="ttdeci">u_char gnode</div><div class="ttdef"><b>Definition:</b> bmap.h:109</div></div>
<div class="ttc" id="bmap_8h_html_a0ef1ec0f5dbe658850ed40094ee31b45"><div class="ttname"><a href="../../d5/dbf/bmap_8h.html#a0ef1ec0f5dbe658850ed40094ee31b45">map_del_bnode_rnode</a></div><div class="ttdeci">int map_del_bnode_rnode(map_bnode **bmap, int *bmap_nodes, void *n)</div><div class="ttdef"><b>Definition:</b> bmap.c:207</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="bmap_8h_html_aade6d459f779e4b70ecd48aa3b5ff6a9"><div class="ttname"><a href="../../d5/dbf/bmap_8h.html#aade6d459f779e4b70ecd48aa3b5ff6a9">unpack_all_bmaps</a></div><div class="ttdeci">map_bnode ** unpack_all_bmaps(char *, u_char, map_gnode **, u_int **, int, int)</div><div class="ttdef"><b>Definition:</b> bmap.c:324</div></div>
<div class="ttc" id="bmap_8h_html_aa00674da6e778819e2fc686b7019e663"><div class="ttname"><a href="../../d5/dbf/bmap_8h.html#aa00674da6e778819e2fc686b7019e663">_PACKED_</a></div><div class="ttdeci">struct bnode_maps_hdr _PACKED_</div></div>
<div class="ttc" id="bmap_8h_html_aec0994460c2835a92979f625d66893f8"><div class="ttname"><a href="../../d5/dbf/bmap_8h.html#aec0994460c2835a92979f625d66893f8">bmap_counter_init</a></div><div class="ttdeci">void bmap_counter_init(u_char levels, u_int **bnodes_closed, u_int **bnodes_opened)</div><div class="ttdef"><b>Definition:</b> bmap.c:47</div></div>
<div class="ttc" id="structbnode__maps__hdr_html"><div class="ttname"><a href="../../d4/d56/structbnode__maps__hdr.html">bnode_maps_hdr</a></div><div class="ttdef"><b>Definition:</b> bmap.h:134</div></div>
<div class="ttc" id="bmap_8h_html_aa9ce8547fcaaa4b7fde8638db6775a5c"><div class="ttname"><a href="../../d5/dbf/bmap_8h.html#aa9ce8547fcaaa4b7fde8638db6775a5c">bnode_chunk_iinfo</a></div><div class="ttdeci">static const int_info bnode_chunk_iinfo</div><div class="ttdef"><b>Definition:</b> bmap.h:115</div></div>
<div class="ttc" id="bmap_8h_html_ad75d18b69ce0cac4699b8f51f21cca2a"><div class="ttname"><a href="../../d5/dbf/bmap_8h.html#ad75d18b69ce0cac4699b8f51f21cca2a">bnode_maps_hdr_iinfo</a></div><div class="ttdeci">static const int_info bnode_maps_hdr_iinfo</div><div class="ttdef"><b>Definition:</b> bmap.h:139</div></div>
<div class="ttc" id="struct__PACKED___html_ad17b02cb632ed58180e7b36a5311d4c6"><div class="ttname"><a href="../../d3/d5a/struct__PACKED__.html#ad17b02cb632ed58180e7b36a5311d4c6">_PACKED_::bnode_levels</a></div><div class="ttdeci">u_char bnode_levels</div><div class="ttdef"><b>Definition:</b> bmap.h:91</div></div>
<div class="ttc" id="bmap_8h_html_a4cb9464f4d1d4b9cdbf155cd8bff044b"><div class="ttname"><a href="../../d5/dbf/bmap_8h.html#a4cb9464f4d1d4b9cdbf155cd8bff044b">map_add_bnode</a></div><div class="ttdeci">int map_add_bnode(map_bnode **bmap, u_int *bmap_nodes, u_int bnode, u_int links)</div><div class="ttdef"><b>Definition:</b> bmap.c:73</div></div>
<div class="ttc" id="bmap_8h_html_a8e708a5466d5ad8c7a848e2617d5fdf9"><div class="ttname"><a href="../../d5/dbf/bmap_8h.html#a8e708a5466d5ad8c7a848e2617d5fdf9">bmaps_del_bnode_rnode</a></div><div class="ttdeci">int bmaps_del_bnode_rnode(map_bnode **bmap, int *bmap_nodes, int levels, void *n)</div><div class="ttdef"><b>Definition:</b> bmap.c:234</div></div>
<div class="ttc" id="structbnode__maps__hdr_html_a1186b91531749452ccbe61825134e1c3"><div class="ttname"><a href="../../d4/d56/structbnode__maps__hdr.html#a1186b91531749452ccbe61825134e1c3">bnode_maps_hdr::bmaps_block_sz</a></div><div class="ttdeci">size_t bmaps_block_sz</div><div class="ttdef"><b>Definition:</b> bmap.h:137</div></div>
<div class="ttc" id="bmap_8h_html_aed4fb3f2636edb8f780621c1a5b8db99"><div class="ttname"><a href="../../d5/dbf/bmap_8h.html#aed4fb3f2636edb8f780621c1a5b8db99">bmap_levels_free</a></div><div class="ttdeci">void bmap_levels_free(map_bnode **bmap, u_int *bmap_nodes)</div><div class="ttdef"><b>Definition:</b> bmap.c:41</div></div>
<div class="ttc" id="bmap_8h_html_ab53262db284919a21a308772fd29de38"><div class="ttname"><a href="../../d5/dbf/bmap_8h.html#ab53262db284919a21a308772fd29de38">bmap_del_rnode_by_level</a></div><div class="ttdeci">int bmap_del_rnode_by_level(map_bnode *, int, map_gnode **, int)</div><div class="ttdef"><b>Definition:</b> bmap.c:120</div></div>
<div class="ttc" id="bmap_8h_html_ac6503610230575f4923676b61a1844b8"><div class="ttname"><a href="../../d5/dbf/bmap_8h.html#ac6503610230575f4923676b61a1844b8">map_count_bnode_rnode</a></div><div class="ttdeci">int map_count_bnode_rnode(map_bnode *bmap, int bmap_nodes, void *n)</div><div class="ttdef"><b>Definition:</b> bmap.c:175</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="bmap_8h_html_a233c188952c33778f3c4b085540b9f77"><div class="ttname"><a href="../../d5/dbf/bmap_8h.html#a233c188952c33778f3c4b085540b9f77">load_bmap</a></div><div class="ttdeci">map_bnode ** load_bmap(char *, map_gnode **, u_char, u_int **)</div><div class="ttdef"><b>Definition:</b> bmap.c:415</div></div>
<div class="ttc" id="structbnode__maps__hdr_html_aade095aa75e95e73b7eabdaf44d4c02a"><div class="ttname"><a href="../../d4/d56/structbnode__maps__hdr.html#aade095aa75e95e73b7eabdaf44d4c02a">bnode_maps_hdr::levels</a></div><div class="ttdeci">u_char levels</div><div class="ttdef"><b>Definition:</b> bmap.h:136</div></div>
<div class="ttc" id="bmap_8h_html_ae52670571abab59c3b815dfc9c822867"><div class="ttname"><a href="../../d5/dbf/bmap_8h.html#ae52670571abab59c3b815dfc9c822867">bmap_levels_init</a></div><div class="ttdeci">void bmap_levels_init(u_char levels, map_bnode ***bmap, u_int **bmap_nodes)</div><div class="ttdef"><b>Definition:</b> bmap.c:32</div></div>
<div class="ttc" id="bmap_8h_html_a3fa0064586cddcbc6762037a6664a2a3"><div class="ttname"><a href="../../d5/dbf/bmap_8h.html#a3fa0064586cddcbc6762037a6664a2a3">map_bnode</a></div><div class="ttdeci">map_node map_bnode</div><div class="ttdef"><b>Definition:</b> bmap.h:51</div></div>
<div class="ttc" id="if_8c_html_ac8bf36fe0577cba66bccda3a6f7e80a4"><div class="ttname"><a href="../../d7/de2/if_8c.html#ac8bf36fe0577cba66bccda3a6f7e80a4">flags</a></div><div class="ttdeci">int flags</div><div class="ttdef"><b>Definition:</b> if.c:39</div></div>
<div class="ttc" id="endianness_8h_html_acc663d0291dd4a32c1dfbed3167bd58b"><div class="ttname"><a href="../../dc/d3e/endianness_8h.html#acc663d0291dd4a32c1dfbed3167bd58b">INT_TYPE_32BIT</a></div><div class="ttdeci">#define INT_TYPE_32BIT</div><div class="ttdef"><b>Definition:</b> endianness.h:35</div></div>
<div class="ttc" id="bmap_8h_html_a892156a9b22aaa6e66ea99123de91b76"><div class="ttname"><a href="../../d5/dbf/bmap_8h.html#a892156a9b22aaa6e66ea99123de91b76">bmaps_set_bnode_flag</a></div><div class="ttdeci">void bmaps_set_bnode_flag(map_bnode **bmap, int *bmap_nodes, int levels, int flags)</div><div class="ttdef"><b>Definition:</b> bmap.c:259</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="struct__PACKED___html_a9dfed1e3eab66ad4db968a161002f421"><div class="ttname"><a href="../../d3/d5a/struct__PACKED__.html#a9dfed1e3eab66ad4db968a161002f421">_PACKED_::level</a></div><div class="ttdeci">u_char level</div><div class="ttdef"><b>Definition:</b> bmap.h:110</div></div>
<div class="ttc" id="bmap_8h_html_ae8c6ea7090b72e0e8bb5b84052897f49"><div class="ttname"><a href="../../d5/dbf/bmap_8h.html#ae8c6ea7090b72e0e8bb5b84052897f49">pack_all_bmaps</a></div><div class="ttdeci">char * pack_all_bmaps(map_bnode **, u_int *, map_gnode **, quadro_group, size_t *)</div><div class="ttdef"><b>Definition:</b> bmap.c:275</div></div>
<div class="ttc" id="bmap_8h_html_aeb4fdd783f97654db0a17fcf7dbc516b"><div class="ttname"><a href="../../d5/dbf/bmap_8h.html#aeb4fdd783f97654db0a17fcf7dbc516b">save_bmap</a></div><div class="ttdeci">int save_bmap(map_bnode **, u_int *, map_gnode **, quadro_group, char *)</div><div class="ttdef"><b>Definition:</b> bmap.c:386</div></div>
<div class="ttc" id="struct__PACKED___html"><div class="ttname"><a href="../../d3/d5a/struct__PACKED__.html">_PACKED_</a></div><div class="ttdef"><b>Definition:</b> bmap.h:89</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="../../d5/dbf/bmap_8h.html">bmap.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>