📄 node136.html
字号:
<html><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><!--Converted with jLaTeX2HTML 2002 (1.62) JA patch-1.4patched version by: Kenshi Muto, Debian Project.LaTeX2HTML 2002 (1.62),original version by: Nikos Drakos, CBLU, University of Leeds* revised and updated by: Marcus Hennecke, Ross Moore, Herb Swan* with significant contributions from: Jens Lippmann, Marek Rouchal, Martin Wilck and others --><HTML><HEAD><TITLE>12.3 Commands at a glance</TITLE><META NAME="description" CONTENT="12.3 Commands at a glance"><META NAME="keywords" CONTENT="everything"><META NAME="resource-type" CONTENT="document"><META NAME="distribution" CONTENT="global"><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"><META NAME="Generator" CONTENT="jLaTeX2HTML v2002 JA patch-1.4"><META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css"><LINK REL="STYLESHEET" HREF="everything.css" tppabs="http://www.isi.edu/nsnam/ns/doc/everything.css"><LINK REL="previous" HREF="node131.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node131.html"><LINK REL="up" HREF="node127.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node127.html"><LINK REL="next" HREF="node137.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node137.html"></HEAD><BODY ><!--Navigation Panel--><A NAME="tex2html3372" HREF="node137.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node137.html"><IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="file:/usr/share/latex2html/icons/next.png"></A> <A NAME="tex2html3366" HREF="node127.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node127.html"><IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="file:/usr/share/latex2html/icons/up.png"></A> <A NAME="tex2html3362" HREF="node135.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node135.html"><IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="file:/usr/share/latex2html/icons/prev.png"></A> <A NAME="tex2html3368" HREF="node1.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node1.html"><IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="file:/usr/share/latex2html/icons/contents.png"></A> <A NAME="tex2html3370" HREF="node590.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node590.html"><IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="file:/usr/share/latex2html/icons/index.png"></A> <BR><B> Next:</B> <A NAME="tex2html3373" HREF="node137.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node137.html">13. Error Model</A><B> Up:</B> <A NAME="tex2html3367" HREF="node127.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node127.html">12. Packet Headers and</A><B> Previous:</B> <A NAME="tex2html3363" HREF="node135.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node135.html">12.2.4 The PacketHeaderManager Class</A>   <B> <A NAME="tex2html3369" HREF="node1.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node1.html">Contents</A></B>   <B> <A NAME="tex2html3371" HREF="node590.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node590.html">Index</A></B> <BR><BR><!--End of Navigation Panel--><H1><A NAME="SECTION03930000000000000000"></A><A NAME="sec:pktcommand"></A><BR>12.3 Commands at a glance</H1><P>Following is a list of packet-header related procedures:<DIV ALIGN="LEFT"><TT>Simulator::create_packetformat</TT></DIV><P><DIV ALIGN="LEFT">This is an internal simulator procedure and is called once during the simulatorconfiguration to setup a packetHeaderManager object.</DIV><P><DIV ALIGN="LEFT"><TT>PacketHeaderManager::allochdr</TT></DIV><P><DIV ALIGN="LEFT">This is another internal procedure of Class PacketHeaderManager thatkeeps track of a variable called <TT>hdrlen_</TT> as new packet-headers areenabled. It also allows 8-byte allignment for any newly-enabled pkt header.</DIV><P><DIV ALIGN="LEFT"><TT>add-packet-header</TT>takes a list of arguments, each of which is a packet header name(without <TT>PacketHeader/</TT> prefix). This global proc will tellsimulator to include the specified packet header(s) in yoursimulation. <TT>remove-packet-header</TT> operates in the same syntax, but itremoves the specified headers from your simulation; notice that itdoes not remove the common header even it is instructed to do so.</DIV><P><DIV ALIGN="LEFT"><TT>remove-all-packet-headers</TT> is a global Tcl proc. It takes noargument and removes all packet headers, except the common header,from your simulation. <TT>add-all-packet-headers</TT> is itscounterpart. </DIV><P><DIV ALIGN="LEFT"></DIV><HR><!--Navigation Panel--><A NAME="tex2html3372" HREF="node137.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node137.html"><IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="file:/usr/share/latex2html/icons/next.png"></A> <A NAME="tex2html3366" HREF="node127.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node127.html"><IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="file:/usr/share/latex2html/icons/up.png"></A> <A NAME="tex2html3362" HREF="node135.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node135.html"><IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="file:/usr/share/latex2html/icons/prev.png"></A> <A NAME="tex2html3368" HREF="node1.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node1.html"><IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="file:/usr/share/latex2html/icons/contents.png"></A> <A NAME="tex2html3370" HREF="node590.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node590.html"><IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="file:/usr/share/latex2html/icons/index.png"></A> <BR><B> Next:</B> <A NAME="tex2html3373" HREF="node137.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node137.html">13. Error Model</A><B> Up:</B> <A NAME="tex2html3367" HREF="node127.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node127.html">12. Packet Headers and</A><B> Previous:</B> <A NAME="tex2html3363" HREF="node135.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node135.html">12.2.4 The PacketHeaderManager Class</A>   <B> <A NAME="tex2html3369" HREF="node1.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node1.html">Contents</A></B>   <B> <A NAME="tex2html3371" HREF="node590.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node590.html">Index</A></B> <!--End of Navigation Panel--><ADDRESS>2003-09-23</ADDRESS></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -