pan> (packet-&gt;isPacketOfType(pcpp::TCP))</div>
<div class="line"><a id="l00146" name="l00146"></a><span class="lineno">  146</span>    {</div>
<div class="line"><a id="l00147" name="l00147"></a><span class="lineno">  147</span>        <a class="code hl_variable" href="classunified_packet_attr.html#a18d5af3ab811cd9b2b1dc76559f7df7d">protocol</a> = 0; <span class="comment">// TCP协议</span></div>
<div class="line"><a id="l00148" name="l00148"></a><span class="lineno">  148</span>        pcpp::TcpLayer *t