<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:굴림;
        panose-1:2 11 6 0 0 1 1 1 1 1;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:"맑은 고딕";
        panose-1:2 11 5 3 2 0 0 2 0 4;}
@font-face
        {font-family:"\@맑은 고딕";}
@font-face
        {font-family:"\@굴림";
        panose-1:2 11 6 0 0 1 1 1 1 1;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        text-align:justify;
        text-justify:inter-ideograph;
        text-autospace:none;
        word-break:break-hangul;
        font-size:10.0pt;
        font-family:"맑은 고딕";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:굴림;}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:"맑은 고딕";
        color:windowtext;}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"맑은 고딕";
        color:#1F497D;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"맑은 고딕";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:3.0cm 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="KO" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US">Hello.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I</span>’<span lang="EN-US">m working on Hanwha Techwin for developing IP Cameras.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Now days, I found out that your live555 supports SRTP with MIKEY.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Actually, My company</span>’<span lang="EN-US">s camera products also support SRTP with MIKEY since 2018(Please check the compatibility with ours).<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">So. I</span>’<span lang="EN-US">m testing your mikey parse code with test program
</span>“<span lang="EN-US">mikeyParser</span>”<span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I found that your test program prints something wrong in CS ID map info like below.<o:p></o:p></span></p>
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" style="border-collapse:collapse">
<tbody>
<tr>
<td width="471" valign="top" style="width:758.15pt;border:solid windowtext 1.0pt;padding:0cm 5.4pt 0cm 5.4pt">
<p class="MsoNormal"><span lang="EN-US">whatisit@Zeppelin </span><span lang="EN-US"> ~/test/live555/live/testProgs
</span> <span lang="EN-US"> master </span>± <span lang="EN-US"> ./mikeyParse AQAAAMKhB/cBAABH6Yn/AAAAAA==<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Base64Data "AQAAAMKhB/cBAABH6Yn/AAAAAA==" produces 19 bytes of MIKEY data:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">:01:00:00:00:c2:a1:07:f7:01:00:00:47:e9:89:ff:00:00:00:00<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">HDR:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">        version: 1<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">        data type: 0 (Initiator's pre-shared key message)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">        next payload: 0 (Last payload)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">        V:0; PRF:0 (MIKEY-1)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">        CSB ID:0xc2a107f7<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">        #CS:1<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">        CS ID map type:0 (SRTP-ID)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">        CS ID map info:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">        Policy_no_1: 0; SSRC_1: 0xff000000; ROC_1: 0x0047e989<o:p></o:p></span></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Actual SSRC_1 and ROC_1 are 0x47e989ff and 0x00000000.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I think this is caused the evaluation order of fprintf</span>’<span lang="EN-US">s arguments.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">So I fix it in the function </span>“<span lang="EN-US">Boolean parseMikeyHDR()</span>”<span lang="EN-US"> like below.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Please see the final fprintf function.<o:p></o:p></span></p>
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" style="border-collapse:collapse">
<tbody>
<tr>
<td width="471" valign="top" style="width:751.05pt;border:solid windowtext 1.0pt;padding:0cm 5.4pt 0cm 5.4pt">
<p class="MsoNormal" align="left" style="text-align:left;line-height:14.25pt;background:#1E1E1E;text-autospace:ideograph-other;word-break:keep-all">
<span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#4EC9B0">Boolean</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">
</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#DCDCAA">parseMikeyHDR</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">(</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#4EC9B0">u_int8_t</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">
</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#569CD6">const*&</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">
</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE">ptr</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">,
</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#4EC9B0">u_int8_t</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">
</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#569CD6">const*</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">
</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE">endPtr</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">,
</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#4EC9B0">u_int8_t</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#569CD6">&</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">
</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE">nextPayloadType</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">) {<o:p></o:p></span></p>
<p class="MsoNormal" align="left" style="text-align:left;line-height:14.25pt;background:#1E1E1E;text-autospace:ideograph-other;word-break:keep-all">
<span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">  </span>
<span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#569CD6">testSize</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">(</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#B5CEA8">10</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">);</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#6A9955">
 // up to the start of "CS ID map info"</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4"><o:p></o:p></span></p>
<p class="MsoNormal" align="left" style="text-align:left;line-height:14.25pt;background:#1E1E1E;text-autospace:ideograph-other;word-break:keep-all">
<span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4"><o:p> </o:p></span></p>
<p class="MsoNormal" align="left" style="text-align:left;line-height:14.25pt;background:#1E1E1E;text-autospace:ideograph-other;word-break:keep-all">
<span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">  </span>
<span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#DCDCAA">fprintf</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">(</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#569CD6">stderr</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">,
</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#CE9178">"</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D7BA7D">\t</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#CE9178">version:
</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE">%d</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D7BA7D">\n</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#CE9178">"</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">,
</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#DCDCAA">getByte</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">(</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE">ptr</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">));<o:p></o:p></span></p>
<p class="MsoNormal" align="left" style="text-align:left;line-height:14.25pt;background:#1E1E1E;text-autospace:ideograph-other;word-break:keep-all">
<span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4"><o:p> </o:p></span></p>
<p class="MsoNormal" align="left" style="text-align:left;line-height:14.25pt;background:#1E1E1E;text-autospace:ideograph-other;word-break:keep-all">
<span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">  </span>
<span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#4EC9B0">u_int8_t</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">
</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#569CD6">const</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">
</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE">dataType</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4"> =
</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#DCDCAA">getByte</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">(</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE">ptr</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">);<o:p></o:p></span></p>
<p class="MsoNormal" align="left" style="text-align:left;line-height:14.25pt;background:#1E1E1E;text-autospace:ideograph-other;word-break:keep-all">
<span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">  </span>
<span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#DCDCAA">fprintf</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">(</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#569CD6">stderr</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">,
</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#CE9178">"</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D7BA7D">\t</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#CE9178">data
 type: </span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE">%d</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#CE9178"> (</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE">%s</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#CE9178">)</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D7BA7D">\n</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#CE9178">"</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">,
</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE">dataType</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">,
</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE">dataTypeComment</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">[</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE">dataType</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">]);<o:p></o:p></span></p>
<p class="MsoNormal" align="left" style="text-align:left;line-height:14.25pt;background:#1E1E1E;text-autospace:ideograph-other;word-break:keep-all">
<span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4"><o:p> </o:p></span></p>
<p class="MsoNormal" align="left" style="text-align:left;line-height:14.25pt;background:#1E1E1E;text-autospace:ideograph-other;word-break:keep-all">
<span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">  </span>
<span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE">nextPayloadType</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4"> =
</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#DCDCAA">getByte</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">(</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE">ptr</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">);<o:p></o:p></span></p>
<p class="MsoNormal" align="left" style="text-align:left;line-height:14.25pt;background:#1E1E1E;text-autospace:ideograph-other;word-break:keep-all">
<span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">  </span>
<span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#DCDCAA">fprintf</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">(</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#569CD6">stderr</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">,
</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#CE9178">"</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D7BA7D">\t</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#CE9178">next
 payload: </span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE">%d</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#CE9178"> (</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE">%s</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#CE9178">)</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D7BA7D">\n</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#CE9178">"</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">,
</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE">nextPayloadType</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">,
</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE">payloadTypeName</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">[</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE">nextPayloadType</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">]);<o:p></o:p></span></p>
<p class="MsoNormal" align="left" style="text-align:left;line-height:14.25pt;background:#1E1E1E;text-autospace:ideograph-other;word-break:keep-all">
<span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4"><o:p> </o:p></span></p>
<p class="MsoNormal" align="left" style="text-align:left;line-height:14.25pt;background:#1E1E1E;text-autospace:ideograph-other;word-break:keep-all">
<span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">  </span>
<span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#4EC9B0">u_int8_t</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">
</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#569CD6">const</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">
</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE">V_PRF</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4"> =
</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#DCDCAA">getByte</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">(</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE">ptr</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">);<o:p></o:p></span></p>
<p class="MsoNormal" align="left" style="text-align:left;line-height:14.25pt;background:#1E1E1E;text-autospace:ideograph-other;word-break:keep-all">
<span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">  </span>
<span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#4EC9B0">u_int8_t</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">
</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#569CD6">const</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">
</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE">PRF</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4"> =
</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE">V_PRF</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">&</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#B5CEA8">0x7F</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">;<o:p></o:p></span></p>
<p class="MsoNormal" align="left" style="text-align:left;line-height:14.25pt;background:#1E1E1E;text-autospace:ideograph-other;word-break:keep-all">
<span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">  </span>
<span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#DCDCAA">fprintf</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">(</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#569CD6">stderr</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">,
</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#CE9178">"</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D7BA7D">\t</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#CE9178">V:</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE">%d</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#CE9178">;
 PRF:</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE">%d</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#CE9178"> (</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE">%s</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#CE9178">)</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D7BA7D">\n</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#CE9178">"</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">,
</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE">V_PRF</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">>></span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#B5CEA8">7</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">,
</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE">PRF</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">,
</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE">PRF</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4"> ==
</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#B5CEA8">0</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4"> ?
</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#CE9178">"MIKEY-1"</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4"> :
</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#CE9178">"unknown"</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">);<o:p></o:p></span></p>
<p class="MsoNormal" align="left" style="text-align:left;line-height:14.25pt;background:#1E1E1E;text-autospace:ideograph-other;word-break:keep-all">
<span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4"><o:p> </o:p></span></p>
<p class="MsoNormal" align="left" style="text-align:left;line-height:14.25pt;background:#1E1E1E;text-autospace:ideograph-other;word-break:keep-all">
<span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">  </span>
<span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#DCDCAA">fprintf</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">(</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#569CD6">stderr</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">,
</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#CE9178">"</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D7BA7D">\t</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#CE9178">CSB
 ID:0x</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE">%08x</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D7BA7D">\n</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#CE9178">"</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">,
</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#DCDCAA">get4Bytes</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">(</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE">ptr</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">));<o:p></o:p></span></p>
<p class="MsoNormal" align="left" style="text-align:left;line-height:14.25pt;background:#1E1E1E;text-autospace:ideograph-other;word-break:keep-all">
<span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4"><o:p> </o:p></span></p>
<p class="MsoNormal" align="left" style="text-align:left;line-height:14.25pt;background:#1E1E1E;text-autospace:ideograph-other;word-break:keep-all">
<span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">  </span>
<span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#4EC9B0">u_int8_t</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">
</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE">numCryptoSessions</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4"> =
</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#DCDCAA">getByte</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">(</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE">ptr</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">);<o:p></o:p></span></p>
<p class="MsoNormal" align="left" style="text-align:left;line-height:14.25pt;background:#1E1E1E;text-autospace:ideograph-other;word-break:keep-all">
<span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">  </span>
<span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#DCDCAA">fprintf</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">(</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#569CD6">stderr</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">,
</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#CE9178">"</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D7BA7D">\t</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#CE9178">#CS:</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE">%d</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D7BA7D">\n</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#CE9178">"</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">,
</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE">numCryptoSessions</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">);<o:p></o:p></span></p>
<p class="MsoNormal" align="left" style="text-align:left;line-height:14.25pt;background:#1E1E1E;text-autospace:ideograph-other;word-break:keep-all">
<span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4"><o:p> </o:p></span></p>
<p class="MsoNormal" align="left" style="text-align:left;line-height:14.25pt;background:#1E1E1E;text-autospace:ideograph-other;word-break:keep-all">
<span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">  </span>
<span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#4EC9B0">u_int8_t</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">
</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#569CD6">const</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">
</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE">CS_ID_map_type</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4"> =
</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#DCDCAA">getByte</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">(</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE">ptr</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">);<o:p></o:p></span></p>
<p class="MsoNormal" align="left" style="text-align:left;line-height:14.25pt;background:#1E1E1E;text-autospace:ideograph-other;word-break:keep-all">
<span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">  </span>
<span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#DCDCAA">fprintf</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">(</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#569CD6">stderr</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">,
</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#CE9178">"</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D7BA7D">\t</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#CE9178">CS
 ID map type:</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE">%d</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#CE9178"> (</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE">%s</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#CE9178">)</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D7BA7D">\n</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#CE9178">"</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">,<o:p></o:p></span></p>
<p class="MsoNormal" align="left" style="text-align:left;line-height:14.25pt;background:#1E1E1E;text-autospace:ideograph-other;word-break:keep-all">
<span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">   
</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE">CS_ID_map_type</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">,
</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE">CS_ID_map_type</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4"> ==
</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#B5CEA8">0</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4"> ?
</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#CE9178">"SRTP-ID"</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4"> :
</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#CE9178">"unknown"</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">);<o:p></o:p></span></p>
<p class="MsoNormal" align="left" style="text-align:left;line-height:14.25pt;background:#1E1E1E;text-autospace:ideograph-other;word-break:keep-all">
<span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">  </span>
<span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#C586C0">if</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4"> (</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE">CS_ID_map_type</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">
 != </span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#B5CEA8">0</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">)
</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#C586C0">return</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">
</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE">False</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">;<o:p></o:p></span></p>
<p class="MsoNormal" align="left" style="text-align:left;line-height:14.25pt;background:#1E1E1E;text-autospace:ideograph-other;word-break:keep-all">
<span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4"><o:p> </o:p></span></p>
<p class="MsoNormal" align="left" style="text-align:left;line-height:14.25pt;background:#1E1E1E;text-autospace:ideograph-other;word-break:keep-all">
<span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">  </span>
<span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#DCDCAA">fprintf</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">(</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#569CD6">stderr</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">,
</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#CE9178">"</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D7BA7D">\t</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#CE9178">CS
 ID map info:</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D7BA7D">\n</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#CE9178">"</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">);<o:p></o:p></span></p>
<p class="MsoNormal" align="left" style="text-align:left;line-height:14.25pt;background:#1E1E1E;text-autospace:ideograph-other;word-break:keep-all">
<span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">  </span>
<span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#569CD6">testSize</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">(</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE">numCryptoSessions</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">
 * (</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#B5CEA8">1</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">+</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#B5CEA8">4</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">+</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#B5CEA8">4</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">));</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#6A9955">
 // the size of the "CS ID map info"</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4"><o:p></o:p></span></p>
<p class="MsoNormal" align="left" style="text-align:left;line-height:14.25pt;background:#1E1E1E;text-autospace:ideograph-other;word-break:keep-all">
<span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">  </span>
<span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#C586C0">for</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4"> (</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#4EC9B0">u_int8_t</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">
</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE">i</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4"> =
</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#B5CEA8">1</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">;
</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE">i</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4"> <=
</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE">numCryptoSessions</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">; ++</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE">i</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">)
 {<o:p></o:p></span></p>
<p class="MsoNormal" align="left" style="text-align:left;line-height:14.25pt;background:#1E1E1E;text-autospace:ideograph-other;word-break:keep-all">
<span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">   
</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#4EC9B0">u_int8_t</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">
</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE">policy_no</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4"> =
</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#DCDCAA">getByte</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">(</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE">ptr</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">);<o:p></o:p></span></p>
<p class="MsoNormal" align="left" style="text-align:left;line-height:14.25pt;background:#1E1E1E;text-autospace:ideograph-other;word-break:keep-all">
<span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">   
</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#4EC9B0">u_int32_t</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">
</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE">ssrc</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4"> =
</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#DCDCAA">get4Bytes</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">(</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE">ptr</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">);<o:p></o:p></span></p>
<p class="MsoNormal" align="left" style="text-align:left;line-height:14.25pt;background:#1E1E1E;text-autospace:ideograph-other;word-break:keep-all">
<span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">   
</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#4EC9B0">u_int32_t</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">
</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE">roc</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4"> =
</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#DCDCAA">get4Bytes</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">(</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE">ptr</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">);<o:p></o:p></span></p>
<p class="MsoNormal" align="left" style="text-align:left;line-height:14.25pt;background:#1E1E1E;text-autospace:ideograph-other;word-break:keep-all">
<span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">   
</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#DCDCAA">fprintf</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">(</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#569CD6">stderr</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">,
</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#CE9178">"</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D7BA7D">\t</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#CE9178">Policy_no_</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE">%d</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#CE9178">:
</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE">%d</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#CE9178">;</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D7BA7D">\t</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#CE9178">SSRC_</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE">%d</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#CE9178">:
 0x</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE">%08x</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#CE9178">; ROC_</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE">%d</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#CE9178">:
 0x</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE">%08x</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D7BA7D">\n</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#CE9178">"</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">,<o:p></o:p></span></p>
<p class="MsoNormal" align="left" style="text-align:left;line-height:14.25pt;background:#1E1E1E;text-autospace:ideograph-other;word-break:keep-all">
<span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">     
</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE">i</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">,
</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE">policy_no</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">,<o:p></o:p></span></p>
<p class="MsoNormal" align="left" style="text-align:left;line-height:14.25pt;background:#1E1E1E;text-autospace:ideograph-other;word-break:keep-all">
<span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">     
</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE">i</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">,
</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE">ssrc</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">,<o:p></o:p></span></p>
<p class="MsoNormal" align="left" style="text-align:left;line-height:14.25pt;background:#1E1E1E;text-autospace:ideograph-other;word-break:keep-all">
<span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">     
</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE">i</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">,
</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE">roc</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">);<o:p></o:p></span></p>
<p class="MsoNormal" align="left" style="text-align:left;line-height:14.25pt;background:#1E1E1E;text-autospace:ideograph-other;word-break:keep-all">
<span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">  }<o:p></o:p></span></p>
<p class="MsoNormal" align="left" style="text-align:left;line-height:14.25pt;background:#1E1E1E;text-autospace:ideograph-other;word-break:keep-all">
<span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4"><o:p> </o:p></span></p>
<p class="MsoNormal" align="left" style="text-align:left;line-height:14.25pt;background:#1E1E1E;text-autospace:ideograph-other;word-break:keep-all">
<span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">  </span>
<span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#C586C0">return</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">
</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#9CDCFE">True</span><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">;<o:p></o:p></span></p>
<p class="MsoNormal" align="left" style="text-align:left;line-height:14.25pt;background:#1E1E1E;text-autospace:ideograph-other;word-break:keep-all">
<span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#D4D4D4">}<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Thank you.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">PS. In get4Bytes() and get2Bytes() function, is there no need to use ntohl() and ntohs() functions?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:Consolas;color:#00B050"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:Consolas;color:#00B050"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">Test Environment :<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">whatisit@Zeppelin </span>
<span style="color:#1F497D"><span lang="EN-US"> ~/test/live555/live/testProgs </span>
 <span lang="EN-US"> master </span>± <span lang="EN-US"> uname -a<o:p></o:p></span></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">Linux Zeppelin 4.2.0-27-generic #32~14.04.1-Ubuntu SMP Fri Jan 22 15:32:26 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:Consolas;color:#00B050"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:Consolas;color:#00B050"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:Consolas;color:#00B050"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:Consolas;color:#00B050"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:Consolas;color:#00B050"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:Consolas;color:#00B050">////////////////////////////////////////////////////////////<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:Consolas;color:#00B050">////////////////////////////////////////////////////////////<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:Consolas;color:#00B050">////////////////////////////////////////////////////////////<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:Consolas">insert_eventHandler(<span style="color:#0070C0">EV_NEW_TASK</span>, [&](<span style="color:#00B050">TaskEvent</span>*
<span style="color:#00B0F0">event</span>)-><span style="color:#0070C0">bool</span><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:Consolas">{<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:40.0pt"><span lang="EN-US" style="font-family:Consolas;color:#7030A0">return</span><span lang="EN-US" style="font-family:Consolas"> do_moreSmartCode (<span style="color:#00B0F0">event</span>);<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:Consolas">});<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:Consolas;color:#00B050">////////////////////////////////////////////////////////////<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:Consolas;color:#00B050">////////////////////////////////////////////////////////////<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:Consolas;color:#00B050">////////////////////////////////////////////////////////////<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:8.0pt;font-family:Consolas;color:#D4D4D4"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
</body>
</html>