<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://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.16"/> <meta name="viewport" content="width=device-width, initial-scale=1"/> <title>UbixOS: include/net/prot/dns.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="../../navtreedata.js"></script> <script type="text/javascript" src="../../navtree.js"></script> <script type="text/javascript"> /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ $(document).ready(initResizable); /* @license-end */</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 id="projectalign" style="padding-left: 0.5em;"> <div id="projectname">UbixOS  <span id="projectnumber">2.0</span> </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.16 --> <script type="text/javascript" src="../../menudata.js"></script> <script type="text/javascript" src="../../menu.js"></script> <script type="text/javascript"> /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ $(function() { initMenu('../../',false,false,'search.php','Search'); }); /* @license-end */</script> <div id="main-nav"></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"> /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ $(document).ready(function(){initNavTree('d8/db1/prot_2dns_8h_source.html','../../');}); /* @license-end */ </script> <div id="doc-content"> <div class="header"> <div class="headertitle"> <div class="title">dns.h</div> </div> </div><!--header--> <div class="contents"> <a href="../../d8/db1/prot_2dns_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>  </div> <div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment">/*</span></div> <div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> * Port to lwIP from uIP</span></div> <div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"> * by Jim Pettinato April 2007</span></div> <div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"> *</span></div> <div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> * security fixes and more by Simon Goldschmidt</span></div> <div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> *</span></div> <div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"> * uIP version Copyright (c) 2002-2003, Adam Dunkels.</span></div> <div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment"> * All rights reserved.</span></div> <div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment"> *</span></div> <div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment"> * Redistribution and use in source and binary forms, with or without</span></div> <div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment"> * modification, are permitted provided that the following conditions</span></div> <div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment"> * are met:</span></div> <div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment"> * 1. Redistributions of source code must retain the above copyright</span></div> <div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="comment"> * notice, this list of conditions and the following disclaimer.</span></div> <div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="comment"> * 2. Redistributions in binary form must reproduce the above copyright</span></div> <div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="comment"> * notice, this list of conditions and the following disclaimer in the</span></div> <div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="comment"> * documentation and/or other materials provided with the distribution.</span></div> <div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="comment"> * 3. The name of the author may not be used to endorse or promote</span></div> <div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="comment"> * products derived from this software without specific prior</span></div> <div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="comment"> * written permission.</span></div> <div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="comment"> *</span></div> <div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="comment"> * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS</span></div> <div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="comment"> * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED</span></div> <div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="comment"> * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE</span></div> <div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="comment"> * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY</span></div> <div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="comment"> * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL</span></div> <div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="comment"> * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE</span></div> <div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="comment"> * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS</span></div> <div class="line"><a name="l00034"></a><span class="lineno"> 34</span> <span class="comment"> * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,</span></div> <div class="line"><a name="l00035"></a><span class="lineno"> 35</span> <span class="comment"> * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING</span></div> <div class="line"><a name="l00036"></a><span class="lineno"> 36</span> <span class="comment"> * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS</span></div> <div class="line"><a name="l00037"></a><span class="lineno"> 37</span> <span class="comment"> * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</span></div> <div class="line"><a name="l00038"></a><span class="lineno"> 38</span> <span class="comment"> */</span></div> <div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  </div> <div class="line"><a name="l00040"></a><span class="lineno"> 40</span> <span class="preprocessor">#ifndef LWIP_HDR_PROT_DNS_H</span></div> <div class="line"><a name="l00041"></a><span class="lineno"> 41</span> <span class="preprocessor">#define LWIP_HDR_PROT_DNS_H</span></div> <div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  </div> <div class="line"><a name="l00043"></a><span class="lineno"> 43</span> <span class="preprocessor">#include "<a class="code" href="../../d2/d2d/arch_8h.html">net/arch.h</a>"</span></div> <div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  </div> <div class="line"><a name="l00045"></a><span class="lineno"> 45</span> <span class="preprocessor">#ifdef __cplusplus</span></div> <div class="line"><a name="l00046"></a><span class="lineno"> 46</span> <span class="keyword">extern</span> <span class="stringliteral">"C"</span> {</div> <div class="line"><a name="l00047"></a><span class="lineno"> 47</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  </div> <div class="line"><a name="l00050"></a><span class="lineno"> 50</span> <span class="preprocessor">#ifndef DNS_SERVER_PORT</span></div> <div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="../../d8/db1/prot_2dns_8h.html#a9266b48706648ecf0625a3e651095317"> 51</a></span> <span class="preprocessor">#define DNS_SERVER_PORT 53</span></div> <div class="line"><a name="l00052"></a><span class="lineno"> 52</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  </div> <div class="line"><a name="l00054"></a><span class="lineno"> 54</span> <span class="comment">/* DNS field TYPE used for "Resource Records" */</span></div> <div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="../../d8/db1/prot_2dns_8h.html#a830e99420463950d3c4d661487f20d0d"> 55</a></span> <span class="preprocessor">#define DNS_RRTYPE_A 1 </span><span class="comment">/* a host address */</span><span class="preprocessor"></span></div> <div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="../../d8/db1/prot_2dns_8h.html#acca8f4a2a1bea8615d892150ed890633"> 56</a></span> <span class="preprocessor">#define DNS_RRTYPE_NS 2 </span><span class="comment">/* an authoritative name server */</span><span class="preprocessor"></span></div> <div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="../../d8/db1/prot_2dns_8h.html#ae7d66bce2de34d6dbc3e4efc1a31e664"> 57</a></span> <span class="preprocessor">#define DNS_RRTYPE_MD 3 </span><span class="comment">/* a mail destination (Obsolete - use MX) */</span><span class="preprocessor"></span></div> <div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="../../d8/db1/prot_2dns_8h.html#a3e88aee3ce8e0395e04b4248600e805d"> 58</a></span> <span class="preprocessor">#define DNS_RRTYPE_MF 4 </span><span class="comment">/* a mail forwarder (Obsolete - use MX) */</span><span class="preprocessor"></span></div> <div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="../../d8/db1/prot_2dns_8h.html#a3dab0550bbdea0b4957461427d07be41"> 59</a></span> <span class="preprocessor">#define DNS_RRTYPE_CNAME 5 </span><span class="comment">/* the canonical name for an alias */</span><span class="preprocessor"></span></div> <div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="../../d8/db1/prot_2dns_8h.html#aba0e1e44b7ad6b4096384d041111ee7a"> 60</a></span> <span class="preprocessor">#define DNS_RRTYPE_SOA 6 </span><span class="comment">/* marks the start of a zone of authority */</span><span class="preprocessor"></span></div> <div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="../../d8/db1/prot_2dns_8h.html#a70b5c47284dbde86c3563f20c6201962"> 61</a></span> <span class="preprocessor">#define DNS_RRTYPE_MB 7 </span><span class="comment">/* a mailbox domain name (EXPERIMENTAL) */</span><span class="preprocessor"></span></div> <div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="../../d8/db1/prot_2dns_8h.html#a102558e1400d41a35868f82c7eba8503"> 62</a></span> <span class="preprocessor">#define DNS_RRTYPE_MG 8 </span><span class="comment">/* a mail group member (EXPERIMENTAL) */</span><span class="preprocessor"></span></div> <div class="line"><a name="l00063"></a><span class="lineno"><a class="line" href="../../d8/db1/prot_2dns_8h.html#a2d4fdfd7f5d8f9f758278003dc243d04"> 63</a></span> <span class="preprocessor">#define DNS_RRTYPE_MR 9 </span><span class="comment">/* a mail rename domain name (EXPERIMENTAL) */</span><span class="preprocessor"></span></div> <div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="../../d8/db1/prot_2dns_8h.html#aaa883ee62a659bdde6207d737e77795c"> 64</a></span> <span class="preprocessor">#define DNS_RRTYPE_NULL 10 </span><span class="comment">/* a null RR (EXPERIMENTAL) */</span><span class="preprocessor"></span></div> <div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="../../d8/db1/prot_2dns_8h.html#aa64d1579e0da263c09134d12c89c9ce4"> 65</a></span> <span class="preprocessor">#define DNS_RRTYPE_WKS 11 </span><span class="comment">/* a well known service description */</span><span class="preprocessor"></span></div> <div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="../../d8/db1/prot_2dns_8h.html#ace55462cfcd4872a7c68178ed779cb89"> 66</a></span> <span class="preprocessor">#define DNS_RRTYPE_PTR 12 </span><span class="comment">/* a domain name pointer */</span><span class="preprocessor"></span></div> <div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="../../d8/db1/prot_2dns_8h.html#aa38f49c344b6aa0caa6656dbc4f1b7c6"> 67</a></span> <span class="preprocessor">#define DNS_RRTYPE_HINFO 13 </span><span class="comment">/* host information */</span><span class="preprocessor"></span></div> <div class="line"><a name="l00068"></a><span class="lineno"><a class="line" href="../../d8/db1/prot_2dns_8h.html#a952c8c700b3ddad714e51873692a345b"> 68</a></span> <span class="preprocessor">#define DNS_RRTYPE_MINFO 14 </span><span class="comment">/* mailbox or mail list information */</span><span class="preprocessor"></span></div> <div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="../../d8/db1/prot_2dns_8h.html#a52c933b4a3def47075a16ba3006d7f99"> 69</a></span> <span class="preprocessor">#define DNS_RRTYPE_MX 15 </span><span class="comment">/* mail exchange */</span><span class="preprocessor"></span></div> <div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="../../d8/db1/prot_2dns_8h.html#a62820cc2f56dd4fdd301729fa05b4f96"> 70</a></span> <span class="preprocessor">#define DNS_RRTYPE_TXT 16 </span><span class="comment">/* text strings */</span><span class="preprocessor"></span></div> <div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="../../d8/db1/prot_2dns_8h.html#ae533fbb9f59f4de915ed3ecb9ff24953"> 71</a></span> <span class="preprocessor">#define DNS_RRTYPE_AAAA 28 </span><span class="comment">/* IPv6 address */</span><span class="preprocessor"></span></div> <div class="line"><a name="l00072"></a><span class="lineno"><a class="line" href="../../d8/db1/prot_2dns_8h.html#a38f81c327955912ba9cc893c26d3a86e"> 72</a></span> <span class="preprocessor">#define DNS_RRTYPE_SRV 33 </span><span class="comment">/* service location */</span><span class="preprocessor"></span></div> <div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="../../d8/db1/prot_2dns_8h.html#aea32c0d7d57c585bb1a9bfd3ce81bed5"> 73</a></span> <span class="preprocessor">#define DNS_RRTYPE_ANY 255 </span><span class="comment">/* any type */</span><span class="preprocessor"></span></div> <div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  </div> <div class="line"><a name="l00075"></a><span class="lineno"> 75</span> <span class="comment">/* DNS field CLASS used for "Resource Records" */</span></div> <div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="../../d8/db1/prot_2dns_8h.html#a08bc1c1897d2921b6f102365be55da2a"> 76</a></span> <span class="preprocessor">#define DNS_RRCLASS_IN 1 </span><span class="comment">/* the Internet */</span><span class="preprocessor"></span></div> <div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="../../d8/db1/prot_2dns_8h.html#a9d64fb2a8d4b656f11c7b334b810b5f1"> 77</a></span> <span class="preprocessor">#define DNS_RRCLASS_CS 2 </span><span class="comment">/* the CSNET class (Obsolete - used only for examples in some obsolete RFCs) */</span><span class="preprocessor"></span></div> <div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="../../d8/db1/prot_2dns_8h.html#ae403127af0f1656d8c724e723f6b3252"> 78</a></span> <span class="preprocessor">#define DNS_RRCLASS_CH 3 </span><span class="comment">/* the CHAOS class */</span><span class="preprocessor"></span></div> <div class="line"><a name="l00079"></a><span class="lineno"><a class="line" href="../../d8/db1/prot_2dns_8h.html#a47055a9391e4a5c03e2aba7b1a4ad39a"> 79</a></span> <span class="preprocessor">#define DNS_RRCLASS_HS 4 </span><span class="comment">/* Hesiod [Dyer 87] */</span><span class="preprocessor"></span></div> <div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="../../d8/db1/prot_2dns_8h.html#a21008b249272ea02cfdc31aa7502a217"> 80</a></span> <span class="preprocessor">#define DNS_RRCLASS_ANY 255 </span><span class="comment">/* any class */</span><span class="preprocessor"></span></div> <div class="line"><a name="l00081"></a><span class="lineno"><a class="line" href="../../d8/db1/prot_2dns_8h.html#ad8e2e9df5f9942d5f2a50bbfc6da80d3"> 81</a></span> <span class="preprocessor">#define DNS_RRCLASS_FLUSH 0x800 </span><span class="comment">/* Flush bit */</span><span class="preprocessor"></span></div> <div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  </div> <div class="line"><a name="l00083"></a><span class="lineno"> 83</span> <span class="comment">/* DNS protocol flags */</span></div> <div class="line"><a name="l00084"></a><span class="lineno"><a class="line" href="../../d8/db1/prot_2dns_8h.html#a96eb4534b574ece96ed36806039f73d3"> 84</a></span> <span class="preprocessor">#define DNS_FLAG1_RESPONSE 0x80</span></div> <div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="../../d8/db1/prot_2dns_8h.html#a4350350ce0d4595876743d4c0a720bcc"> 85</a></span> <span class="preprocessor">#define DNS_FLAG1_OPCODE_STATUS 0x10</span></div> <div class="line"><a name="l00086"></a><span class="lineno"><a class="line" href="../../d8/db1/prot_2dns_8h.html#ae7250008b68d1909d54040515eef8ebb"> 86</a></span> <span class="preprocessor">#define DNS_FLAG1_OPCODE_INVERSE 0x08</span></div> <div class="line"><a name="l00087"></a><span class="lineno"><a class="line" href="../../d8/db1/prot_2dns_8h.html#a6a327c0ffd40f69fbcd5f01f12e5745c"> 87</a></span> <span class="preprocessor">#define DNS_FLAG1_OPCODE_STANDARD 0x00</span></div> <div class="line"><a name="l00088"></a><span class="lineno"><a class="line" href="../../d8/db1/prot_2dns_8h.html#add685a0f8b5e76a2687cc0f306813bfb"> 88</a></span> <span class="preprocessor">#define DNS_FLAG1_AUTHORATIVE 0x04</span></div> <div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="../../d8/db1/prot_2dns_8h.html#a2e52037249bb98d7bbecf42e275beb07"> 89</a></span> <span class="preprocessor">#define DNS_FLAG1_TRUNC 0x02</span></div> <div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="../../d8/db1/prot_2dns_8h.html#a72d99b1623afa14bd58c667b748c2ddc"> 90</a></span> <span class="preprocessor">#define DNS_FLAG1_RD 0x01</span></div> <div class="line"><a name="l00091"></a><span class="lineno"><a class="line" href="../../d8/db1/prot_2dns_8h.html#ac72f8777ccc45ae274449ea7a9f3de04"> 91</a></span> <span class="preprocessor">#define DNS_FLAG2_RA 0x80</span></div> <div class="line"><a name="l00092"></a><span class="lineno"><a class="line" href="../../d8/db1/prot_2dns_8h.html#a9f6c329c04baba17fe0f5b2a6597d713"> 92</a></span> <span class="preprocessor">#define DNS_FLAG2_ERR_MASK 0x0f</span></div> <div class="line"><a name="l00093"></a><span class="lineno"><a class="line" href="../../d8/db1/prot_2dns_8h.html#a6aaa9da3d0f8d4c0799516d46d939942"> 93</a></span> <span class="preprocessor">#define DNS_FLAG2_ERR_NONE 0x00</span></div> <div class="line"><a name="l00094"></a><span class="lineno"><a class="line" href="../../d8/db1/prot_2dns_8h.html#a8ee5e2c8e517d6e4f2198057f81e93c6"> 94</a></span> <span class="preprocessor">#define DNS_FLAG2_ERR_NAME 0x03</span></div> <div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  </div> <div class="line"><a name="l00096"></a><span class="lineno"><a class="line" href="../../d8/db1/prot_2dns_8h.html#a8b3138fb652e7b2fcdf8c24d555188af"> 96</a></span> <span class="preprocessor">#define DNS_HDR_GET_OPCODE(hdr) ((((hdr)->flags1) >> 3) & 0xF)</span></div> <div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  </div> <div class="line"><a name="l00098"></a><span class="lineno"> 98</span> <span class="preprocessor">#ifdef PACK_STRUCT_USE_INCLUDES</span></div> <div class="line"><a name="l00099"></a><span class="lineno"> 99</span> <span class="preprocessor"># include "arch/bpstruct.h"</span></div> <div class="line"><a name="l00100"></a><span class="lineno"> 100</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00101"></a><span class="lineno"> 101</span> <a class="code" href="../../dc/df0/cc_8h.html#a73199061891adf1b912d20835c7d5e96">PACK_STRUCT_BEGIN</a></div> <div class="line"><a name="l00103"></a><span class="lineno"><a class="line" href="../../dd/d17/structdns__hdr.html"> 103</a></span> <span class="keyword">struct </span><a class="code" href="../../dd/d17/structdns__hdr.html">dns_hdr</a> {</div> <div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  <a class="code" href="../../dd/d17/structdns__hdr.html#a0f5f82b2174927136d41f7ce335d8e48">PACK_STRUCT_FIELD</a>(<a class="code" href="../../de/d8c/group__compiler__abstraction.html#ga77570ac4fcab86864fa1916e55676da2">u16_t</a> <span class="keywordtype">id</span>);</div> <div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  <a class="code" href="../../dd/d17/structdns__hdr.html#aefcc5153f7570d6a1b1fdaf5a3b047e6">PACK_STRUCT_FLD_8</a>(<a class="code" href="../../de/d8c/group__compiler__abstraction.html#ga4caecabca98b43919dd11be1c0d4cd8e">u8_t</a> flags1);</div> <div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  <a class="code" href="../../dd/d17/structdns__hdr.html#aefcc5153f7570d6a1b1fdaf5a3b047e6">PACK_STRUCT_FLD_8</a>(<a class="code" href="../../de/d8c/group__compiler__abstraction.html#ga4caecabca98b43919dd11be1c0d4cd8e">u8_t</a> flags2);</div> <div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  <a class="code" href="../../dd/d17/structdns__hdr.html#a0f5f82b2174927136d41f7ce335d8e48">PACK_STRUCT_FIELD</a>(<a class="code" href="../../de/d8c/group__compiler__abstraction.html#ga77570ac4fcab86864fa1916e55676da2">u16_t</a> numquestions);</div> <div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  <a class="code" href="../../dd/d17/structdns__hdr.html#a0f5f82b2174927136d41f7ce335d8e48">PACK_STRUCT_FIELD</a>(<a class="code" href="../../de/d8c/group__compiler__abstraction.html#ga77570ac4fcab86864fa1916e55676da2">u16_t</a> numanswers);</div> <div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  <a class="code" href="../../dd/d17/structdns__hdr.html#a0f5f82b2174927136d41f7ce335d8e48">PACK_STRUCT_FIELD</a>(<a class="code" href="../../de/d8c/group__compiler__abstraction.html#ga77570ac4fcab86864fa1916e55676da2">u16_t</a> numauthrr);</div> <div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  <a class="code" href="../../dd/d17/structdns__hdr.html#a0f5f82b2174927136d41f7ce335d8e48">PACK_STRUCT_FIELD</a>(<a class="code" href="../../de/d8c/group__compiler__abstraction.html#ga77570ac4fcab86864fa1916e55676da2">u16_t</a> numextrarr);</div> <div class="line"><a name="l00111"></a><span class="lineno"> 111</span> } <a class="code" href="../../d8/db1/prot_2dns_8h.html#abfbe0197612b7e138ae2dd9545e3664c">PACK_STRUCT_STRUCT</a>;</div> <div class="line"><a name="l00112"></a><span class="lineno"> 112</span> <a class="code" href="../../dc/df0/cc_8h.html#a465fef70f294e21cbf4ea51fc342f20e">PACK_STRUCT_END</a></div> <div class="line"><a name="l00113"></a><span class="lineno"> 113</span> <span class="preprocessor">#ifdef PACK_STRUCT_USE_INCLUDES</span></div> <div class="line"><a name="l00114"></a><span class="lineno"> 114</span> <span class="preprocessor"># include "arch/epstruct.h"</span></div> <div class="line"><a name="l00115"></a><span class="lineno"> 115</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00116"></a><span class="lineno"><a class="line" href="../../d8/db1/prot_2dns_8h.html#a1ffff846513e2493ba915d8874c26476"> 116</a></span> <span class="preprocessor">#define SIZEOF_DNS_HDR 12</span></div> <div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  </div> <div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  </div> <div class="line"><a name="l00119"></a><span class="lineno"> 119</span> <span class="comment">/* Multicast DNS definitions */</span></div> <div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  </div> <div class="line"><a name="l00122"></a><span class="lineno"> 122</span> <span class="preprocessor">#ifndef DNS_MQUERY_PORT</span></div> <div class="line"><a name="l00123"></a><span class="lineno"><a class="line" href="../../d8/db1/prot_2dns_8h.html#a62d67af5ac6c6b3f98a6566a42564276"> 123</a></span> <span class="preprocessor">#define DNS_MQUERY_PORT 5353</span></div> <div class="line"><a name="l00124"></a><span class="lineno"> 124</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  </div> <div class="line"><a name="l00126"></a><span class="lineno"> 126</span> <span class="comment">/* IPv4 group for multicast DNS queries: 224.0.0.251 */</span></div> <div class="line"><a name="l00127"></a><span class="lineno"> 127</span> <span class="preprocessor">#ifndef DNS_MQUERY_IPV4_GROUP_INIT</span></div> <div class="line"><a name="l00128"></a><span class="lineno"><a class="line" href="../../d8/db1/prot_2dns_8h.html#a861fa0ab623ace9086f5c7247a9f04c8"> 128</a></span> <span class="preprocessor">#define DNS_MQUERY_IPV4_GROUP_INIT IPADDR4_INIT_BYTES(224,0,0,251)</span></div> <div class="line"><a name="l00129"></a><span class="lineno"> 129</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  </div> <div class="line"><a name="l00131"></a><span class="lineno"> 131</span> <span class="comment">/* IPv6 group for multicast DNS queries: FF02::FB */</span></div> <div class="line"><a name="l00132"></a><span class="lineno"> 132</span> <span class="preprocessor">#ifndef DNS_MQUERY_IPV6_GROUP_INIT</span></div> <div class="line"><a name="l00133"></a><span class="lineno"><a class="line" href="../../d8/db1/prot_2dns_8h.html#ae8c419a73ada8ec6b470b3679ae87b8e"> 133</a></span> <span class="preprocessor">#define DNS_MQUERY_IPV6_GROUP_INIT IPADDR6_INIT_HOST(0xFF020000,0,0,0xFB)</span></div> <div class="line"><a name="l00134"></a><span class="lineno"> 134</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  </div> <div class="line"><a name="l00136"></a><span class="lineno"> 136</span> <span class="preprocessor">#ifdef __cplusplus</span></div> <div class="line"><a name="l00137"></a><span class="lineno"> 137</span> }</div> <div class="line"><a name="l00138"></a><span class="lineno"> 138</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  </div> <div class="line"><a name="l00140"></a><span class="lineno"> 140</span> <span class="preprocessor">#endif </span><span class="comment">/* LWIP_HDR_PROT_DNS_H */</span><span class="preprocessor"></span></div> </div><!-- fragment --></div><!-- contents --> </div><!-- doc-content --> <div class="ttc" id="astructdns__hdr_html_a0f5f82b2174927136d41f7ce335d8e48"><div class="ttname"><a href="../../dd/d17/structdns__hdr.html#a0f5f82b2174927136d41f7ce335d8e48">dns_hdr::PACK_STRUCT_FIELD</a></div><div class="ttdeci">PACK_STRUCT_FIELD(u16_t id)</div></div> <div class="ttc" id="agroup__compiler__abstraction_html_ga77570ac4fcab86864fa1916e55676da2"><div class="ttname"><a href="../../de/d8c/group__compiler__abstraction.html#ga77570ac4fcab86864fa1916e55676da2">u16_t</a></div><div class="ttdeci">uint16_t u16_t</div><div class="ttdef"><b>Definition:</b> <a href="../../d2/d2d/arch_8h_source.html#l00124">arch.h:124</a></div></div> <div class="ttc" id="astructdns__hdr_html_aefcc5153f7570d6a1b1fdaf5a3b047e6"><div class="ttname"><a href="../../dd/d17/structdns__hdr.html#aefcc5153f7570d6a1b1fdaf5a3b047e6">dns_hdr::PACK_STRUCT_FLD_8</a></div><div class="ttdeci">PACK_STRUCT_FLD_8(u8_t flags1)</div></div> <div class="ttc" id="aprot_2dns_8h_html_abfbe0197612b7e138ae2dd9545e3664c"><div class="ttname"><a href="../../d8/db1/prot_2dns_8h.html#abfbe0197612b7e138ae2dd9545e3664c">PACK_STRUCT_STRUCT</a></div><div class="ttdeci">PACK_STRUCT_BEGIN struct dns_hdr PACK_STRUCT_STRUCT</div></div> <div class="ttc" id="aarch_8h_html"><div class="ttname"><a href="../../d2/d2d/arch_8h.html">arch.h</a></div></div> <div class="ttc" id="agroup__compiler__abstraction_html_ga4caecabca98b43919dd11be1c0d4cd8e"><div class="ttname"><a href="../../de/d8c/group__compiler__abstraction.html#ga4caecabca98b43919dd11be1c0d4cd8e">u8_t</a></div><div class="ttdeci">uint8_t u8_t</div><div class="ttdef"><b>Definition:</b> <a href="../../d2/d2d/arch_8h_source.html#l00122">arch.h:122</a></div></div> <div class="ttc" id="acc_8h_html_a73199061891adf1b912d20835c7d5e96"><div class="ttname"><a href="../../dc/df0/cc_8h.html#a73199061891adf1b912d20835c7d5e96">PACK_STRUCT_BEGIN</a></div><div class="ttdeci">#define PACK_STRUCT_BEGIN</div><div class="ttdef"><b>Definition:</b> <a href="../../dc/df0/cc_8h_source.html#l00008">cc.h:8</a></div></div> <div class="ttc" id="astructdns__hdr_html"><div class="ttname"><a href="../../dd/d17/structdns__hdr.html">dns_hdr</a></div><div class="ttdef"><b>Definition:</b> <a href="../../d8/db1/prot_2dns_8h_source.html#l00103">dns.h:103</a></div></div> <div class="ttc" id="acc_8h_html_a465fef70f294e21cbf4ea51fc342f20e"><div class="ttname"><a href="../../dc/df0/cc_8h.html#a465fef70f294e21cbf4ea51fc342f20e">PACK_STRUCT_END</a></div><div class="ttdeci">#define PACK_STRUCT_END</div><div class="ttdef"><b>Definition:</b> <a href="../../dc/df0/cc_8h_source.html#l00009">cc.h:9</a></div></div> <!-- start footer part --> <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> <ul> <li class="navelem"><a class="el" href="../../dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="../../dir_2fa1ed3146d6c2b96c5cfe4341985326.html">net</a></li><li class="navelem"><a class="el" href="../../dir_b318166e2547991a5f7b92274f9a499b.html">prot</a></li><li class="navelem"><a class="el" href="../../d8/db1/prot_2dns_8h.html">dns.h</a></li> <li class="footer">Generated by <a href="http://www.doxygen.org/index.html"> <img class="footer" src="../../doxygen.png" alt="doxygen"/></a> 1.8.16 </li> </ul> </div> </body> </html>