<!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: net/netif/tcpdump.c File Reference</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('d4/d4d/tcpdump_8c.html','../../');}); /* @license-end */ </script> <div id="doc-content"> <div class="header"> <div class="summary"> <a href="#func-members">Functions</a> | <a href="#var-members">Variables</a> </div> <div class="headertitle"> <div class="title">tcpdump.c File Reference</div> </div> </div><!--header--> <div class="contents"> <div class="textblock"><code>#include <<a class="el" href="../../d6/db4/include_2vfs_2file_8h_source.html">vfs/file.h</a>></code><br /> <code>#include <<a class="el" href="../../d3/d24/kpanic_8h_source.html">ubixos/kpanic.h</a>></code><br /> <code>#include "netif/tcpdump.h"</code><br /> <code>#include "net/ipv4/ip.h"</code><br /> <code>#include "<a class="el" href="../../d8/da5/tcp_8h_source.html">net/tcp.h</a>"</code><br /> <code>#include "<a class="el" href="../../d2/da7/udp_8h_source.html">net/udp.h</a>"</code><br /> <code>#include "net/ipv4/inet.h"</code><br /> </div><div class="textblock"><div class="dynheader"> Include dependency graph for tcpdump.c:</div> <div class="dyncontent"> <div class="center"><img src="../../d1/d8b/tcpdump_8c__incl.png" border="0" usemap="#net_2netif_2tcpdump_8c" alt=""/></div> <map name="net_2netif_2tcpdump_8c" id="net_2netif_2tcpdump_8c"> <area shape="rect" title=" " alt="" coords="1083,5,1216,32"/> <area shape="rect" href="../../d6/db4/include_2vfs_2file_8h.html" title=" " alt="" coords="579,229,647,256"/> <area shape="rect" href="../../d3/d24/kpanic_8h.html" title=" " alt="" coords="1279,379,1393,405"/> <area shape="rect" title=" " alt="" coords="969,80,1079,107"/> <area shape="rect" title=" " alt="" coords="1104,80,1195,107"/> <area shape="rect" href="../../d8/da5/tcp_8h.html" title=" " alt="" coords="871,80,945,107"/> <area shape="rect" href="../../d2/da7/udp_8h.html" title=" " alt="" coords="1219,80,1295,107"/> <area shape="rect" title=" " alt="" coords="1371,80,1474,107"/> <area shape="rect" href="../../d0/d27/include_2sys_2types_8h.html" title=" " alt="" coords="561,528,652,555"/> <area shape="rect" href="../../d1/de9/dirCache_8h.html" title=" " alt="" coords="5,304,128,331"/> <area shape="rect" href="../../db/dd5/thread_8h.html" title=" " alt="" coords="162,304,257,331"/> <area shape="rect" href="../../d3/d73/inode_8h.html" title=" " alt="" coords="572,304,655,331"/> <area shape="rect" href="../../df/d42/ufs_8h.html" title=" " alt="" coords="351,379,422,405"/> <area shape="rect" href="../../d2/d29/mount_8h.html" title=" " alt="" coords="739,304,827,331"/> <area shape="rect" href="../../d0/d6f/__types_8h.html" title=" " alt="" coords="477,752,574,779"/> <area shape="rect" href="../../d9/dab/select_8h.html" title=" " alt="" coords="463,603,556,629"/> <area shape="rect" href="../../d6/d92/cdefs_8h.html" title=" " alt="" coords="189,677,278,704"/> <area shape="rect" href="../../d6/d30/__timespec_8h.html" title=" " alt="" coords="658,677,777,704"/> <area shape="rect" href="../../df/dc5/__timeval_8h.html" title=" " alt="" coords="302,677,407,704"/> <area shape="rect" href="../../d6/da4/__sigset_8h.html" title=" " alt="" coords="431,677,531,704"/> <area shape="rect" href="../../d7/d0b/trap_8h.html" title=" " alt="" coords="247,379,327,405"/> <area shape="rect" href="../../df/d92/sys_2signal_8h.html" title=" " alt="" coords="146,453,238,480"/> <area shape="rect" href="../../d8/d01/resource_8h.html" title=" " alt="" coords="73,603,181,629"/> <area shape="rect" href="../../d6/d35/i386_2cpu_8h.html" title=" " alt="" coords="351,453,433,480"/> <area shape="rect" href="../../d1/df2/wait_8h.html" title=" " alt="" coords="447,379,545,405"/> <area shape="rect" href="../../d1/d7d/pipe__fs_8h.html" title=" " alt="" coords="569,379,657,405"/> <area shape="rect" href="../../d8/dff/msdos__fs_8h.html" title=" " alt="" coords="733,379,835,405"/> <area shape="rect" href="../../d4/d7e/include_2sys_2device_8h.html" title=" " alt="" coords="553,453,647,480"/> <area shape="rect" href="../../dc/dba/opt_8h.html" title=" " alt="" coords="1085,155,1158,181"/> <area shape="rect" href="../../d2/d78/lwipopts_8h.html" title=" " alt="" coords="1191,229,1294,256"/> <area shape="rect" href="../../db/d16/debug_8h.html" title=" " alt="" coords="1076,229,1167,256"/> <area shape="rect" href="../../d2/d2d/arch_8h.html" title=" " alt="" coords="1081,304,1161,331"/> <area shape="rect" href="../../dc/df0/cc_8h.html" title=" " alt="" coords="1156,379,1255,405"/> <area shape="rect" href="../../da/d28/kprintf_8h.html" title=" " alt="" coords="996,379,1081,405"/> <area shape="rect" href="../../de/df7/time_8h.html" title=" " alt="" coords="1157,453,1257,480"/> <area shape="rect" href="../../dc/dac/io_8h.html" title=" " alt="" coords="1173,528,1241,555"/> <area shape="rect" href="../../d1/d2d/stdarg_8h.html" title=" " alt="" coords="961,453,1031,480"/> </map> </div> </div> <p><a href="../../d4/d4d/tcpdump_8c_source.html">Go to the source code of this file.</a></p> <table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a> Functions</h2></td></tr> <tr class="memitem:a41214d30ddd3c36e32b4ac0914218c19"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d4/d4d/tcpdump_8c.html#a41214d30ddd3c36e32b4ac0914218c19">tcpdump</a> (struct <a class="el" href="../../d9/db8/structpbuf.html">pbuf</a> *p)</td></tr> <tr class="separator:a41214d30ddd3c36e32b4ac0914218c19"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a5a1493a11fbda3bb015f788583dfd3e4"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d4/d4d/tcpdump_8c.html#a5a1493a11fbda3bb015f788583dfd3e4">tcpdump_init</a> (void)</td></tr> <tr class="separator:a5a1493a11fbda3bb015f788583dfd3e4"><td class="memSeparator" colspan="2"> </td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a> Variables</h2></td></tr> <tr class="memitem:a03d2d7be521e9d357862075078d24f06"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../d0/d22/structfileDescriptor.html">fileDescriptor</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d4/d4d/tcpdump_8c.html#a03d2d7be521e9d357862075078d24f06">file</a> = <a class="el" href="../../d0/d27/include_2sys_2types_8h.html#a070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a></td></tr> <tr class="separator:a03d2d7be521e9d357862075078d24f06"><td class="memSeparator" colspan="2"> </td></tr> </table> <h2 class="groupheader">Function Documentation</h2> <a id="a41214d30ddd3c36e32b4ac0914218c19"></a> <h2 class="memtitle"><span class="permalink"><a href="#a41214d30ddd3c36e32b4ac0914218c19">◆ </a></span>tcpdump()</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void tcpdump </td> <td>(</td> <td class="paramtype">struct <a class="el" href="../../d9/db8/structpbuf.html">pbuf</a> * </td> <td class="paramname"><em>p</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p class="definition">Definition at line <a class="el" href="../../d4/d4d/tcpdump_8c_source.html#l00057">57</a> of file <a class="el" href="../../d4/d4d/tcpdump_8c_source.html">tcpdump.c</a>.</p> <p class="reference">References <a class="el" href="../../d6/d8a/fat__string_8h_source.html#l00017">NULL</a>.</p> </div> </div> <a id="a5a1493a11fbda3bb015f788583dfd3e4"></a> <h2 class="memtitle"><span class="permalink"><a href="#a5a1493a11fbda3bb015f788583dfd3e4">◆ </a></span>tcpdump_init()</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void tcpdump_init </td> <td>(</td> <td class="paramtype">void </td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p class="definition">Definition at line <a class="el" href="../../d4/d4d/tcpdump_8c_source.html#l00047">47</a> of file <a class="el" href="../../d4/d4d/tcpdump_8c_source.html">tcpdump.c</a>.</p> <p class="reference">References <a class="el" href="../../d6/d13/file_8c_source.html#l00395">fopen()</a>, <a class="el" href="../../dc/d94/armv6_2kpanic_8c_source.html#l00041">kpanic()</a>, and <a class="el" href="../../d6/d8a/fat__string_8h_source.html#l00017">NULL</a>.</p> <div class="dynheader"> Here is the call graph for this function:</div> <div class="dyncontent"> <div class="center"><img src="../../d4/d4d/tcpdump_8c_a5a1493a11fbda3bb015f788583dfd3e4_cgraph.png" border="0" usemap="#d4/d4d/tcpdump_8c_a5a1493a11fbda3bb015f788583dfd3e4_cgraph" alt=""/></div> <map name="d4/d4d/tcpdump_8c_a5a1493a11fbda3bb015f788583dfd3e4_cgraph" id="d4/d4d/tcpdump_8c_a5a1493a11fbda3bb015f788583dfd3e4_cgraph"> <area shape="rect" title=" " alt="" coords="5,259,101,285"/> <area shape="rect" href="../../d6/d13/file_8c.html#a249f3bc0af043dc5ac3c9aa8646986af" title=" " alt="" coords="153,233,206,260"/> <area shape="rect" href="../../dc/d94/armv6_2kpanic_8c.html#adb9a182aa071791a306163d50d653deb" title="print panic message and halt system" alt="" coords="149,284,209,311"/> <area shape="rect" href="../../d4/d03/kmalloc_8h.html#aaa9ed6886459604cf73ccdbf6410e487" title=" " alt="" coords="282,5,333,32"/> <area shape="rect" href="../../d4/d03/kmalloc_8h.html#a150eab2ac4ce4553e21ca10e7f441762" title=" " alt="" coords="531,5,598,32"/> <area shape="rect" href="../../da/d28/kprintf_8h.html#a20b56810edb62a6fe59917015c30848f" title=" " alt="" coords="279,107,336,133"/> <area shape="rect" href="../../da/d66/string_8h.html#ace4b911463887af5e748326323e99a23" title=" " alt="" coords="273,157,342,184"/> <area shape="rect" href="../../dc/d88/armv6_2spinlock_8c.html#ae29ab191c93f9ead066cb462dd2e7247" title=" " alt="" coords="264,208,351,235"/> <area shape="rect" href="../../da/d28/kprintf_8h.html#ac38cd16373d98782e1465bd3d5aba470" title=" " alt="" coords="279,259,336,285"/> <area shape="rect" href="../../da/d66/string_8h.html#a55e123beb3d7f96e25e024a13582d987" title=" " alt="" coords="278,309,337,336"/> <area shape="rect" href="../../da/d66/string_8h.html#adcec9a82a6a276e8edb0fd4fc26fe8f2" title=" " alt="" coords="281,360,333,387"/> <area shape="rect" href="../../da/d66/string_8h.html#a9af7251f0c1b875e0e34b8e2b94dda39" title=" " alt="" coords="280,411,335,437"/> <area shape="rect" href="../../dc/d92/mount_8c.html#aa8cc926aa9badb781158b6738b1b0f2d" title=" " alt="" coords="257,461,357,488"/> <area shape="rect" href="../../dc/d88/armv6_2spinlock_8c.html#a71f03d2ba55111c715b6068254847a53" title=" " alt="" coords="657,107,732,133"/> <area shape="rect" href="../../d3/d02/armv6_2sched_8c.html#a08933fe6d593a1c78b9080359f15a0b7" title=" " alt="" coords="781,81,871,108"/> <area shape="rect" href="../../dc/d88/armv6_2spinlock_8c.html#a740766af5da58616f700fffab6768a78" title=" " alt="" coords="780,132,872,159"/> <area shape="rect" href="../../dd/d78/video_8h.html#a5429378b96a24fadfd2d1f8d777eb95a" title=" " alt="" coords="411,107,466,133"/> <area shape="rect" href="../../df/d87/kprintf_8c.html#a3093cdac4668a4ccffdd7f77270888b7" title=" " alt="" coords="407,157,470,184"/> <area shape="rect" href="../../da/d28/kprintf_8h.html#a3b4a66bf1f6583e65660f281b6014aa1" title=" " alt="" coords="405,208,472,235"/> <area shape="rect" href="../../dc/dac/io_8h.html#a77b934268de1b3ecdcf3f275413b3108" title="input one byte from specified port" alt="" coords="524,56,605,83"/> <area shape="rect" href="../../dc/dac/io_8h.html#a8acc1a06073db2e7b92ffbd00fbd0cf1" title="outputut one byte to specified port" alt="" coords="520,107,609,133"/> <area shape="rect" href="../../dd/d71/tty_8h.html#a4f96ccac7e60296ef496008d8cbed0ff" title=" " alt="" coords="533,157,597,184"/> <area shape="rect" href="../../dd/d71/tty_8h.html#ad96f57a7c113d3cfa76ee5fed6de33c0" title=" " alt="" coords="530,208,599,235"/> <area shape="rect" href="../../d7/d7c/strtok_8c.html#af18c3fca5cc30bc1313728d45c031ae9" title=" " alt="" coords="405,411,472,437"/> <area shape="rect" href="../../da/d66/string_8h.html#a6f3dcb20ff11ff9db5904c3cfb61a38c" title=" " alt="" coords="407,461,470,488"/> </map> </div> </div> </div> <h2 class="groupheader">Variable Documentation</h2> <a id="a03d2d7be521e9d357862075078d24f06"></a> <h2 class="memtitle"><span class="permalink"><a href="#a03d2d7be521e9d357862075078d24f06">◆ </a></span>file</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="../../d0/d22/structfileDescriptor.html">fileDescriptor</a>* <a class="el" href="../../d7/d3a/structfile.html">file</a> = <a class="el" href="../../d0/d27/include_2sys_2types_8h.html#a070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a></td> </tr> </table> </div><div class="memdoc"> <p class="definition">Definition at line <a class="el" href="../../d4/d4d/tcpdump_8c_source.html#l00045">45</a> of file <a class="el" href="../../d4/d4d/tcpdump_8c_source.html">tcpdump.c</a>.</p> <p class="reference">Referenced by <a class="el" href="../../d3/d2e/fat_8c_source.html#l00056">fat_initialize()</a>, <a class="el" href="../../db/dcd/fat__filelib_8c_source.html#l00638">fl_fopen()</a>, <a class="el" href="../../db/dcd/fat__filelib_8c_source.html#l01314">fl_remove()</a>, <a class="el" href="../../d6/d13/file_8c_source.html#l00395">fopen()</a>, and <a class="el" href="../../d6/dac/example_8c_source.html#l00044">main()</a>.</p> </div> </div> </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_427baa8a9a5be237f298d4545d0d1ce2.html">net</a></li><li class="navelem"><a class="el" href="../../dir_7d1a593264e07d392f0bbc992dd77247.html">netif</a></li><li class="navelem"><a class="el" href="../../d4/d4d/tcpdump_8c.html">tcpdump.c</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>