C++博客-<table border="0" cellspacing="0" cellpadding="0" style="margin- left:0px;display:inline;height:30px;"><tr><td style="font-weight:bold; font-size:16px; line- height:30px;">一年十二月&nbsp谁主春秋</td><td style="font-size:14px; line-height:30px;"></td></tr></table> http://598club.com/qinqing1984/??3?3??????????3??????????????????????o?????????zh-cnFri, 21 Feb 2020 21:53:02 GMTFri, 21 Feb 2020 21:53:02 GMT60C++博客-<table border="0" cellspacing="0" cellpadding="0" style="margin- left:0px;display:inline;height:30px;"><tr><td style="font-weight:bold; font-size:16px; line- height:30px;">一年十二月&nbsp谁主春秋</td><td style="font-size:14px; line-height:30px;"></td></tr></table> http://598club.com/qinqing1984/archive/2019/11/20/216988.html?????????o?????????????o????Wed, 20 Nov 2019 11:45:00 GMThttp://598club.com/qinqing1984/archive/2019/11/20/216988.htmlhttp://598club.com/qinqing1984/comments/216988.htmlhttp://598club.com/qinqing1984/archive/2019/11/20/216988.html#Feedback0http://598club.com/qinqing1984/comments/commentRss/216988.htmlhttp://598club.com/qinqing1984/services/trackbacks/216988.html????
   nginx???????????????????????????o?Web????????????????????????????????windows???linux???????3????????????o??windows?3??????????????????SCM??????????????????????????????????a??????????????1??????????????????1??????????????????????1?????????3?????????????????????????1???o?????????????1?3???????1???o??????????nginx??????????????o?SCM?????1????o????2????

??1??1
   ???????????o?nginx?o?????????????SCM????1??????1?????????????1???????????????????????????o??????????????????-?

?????

   ?????????????????
      ???????????main???????'?????ongx_main????1??????????3??a?????is_scm??????????????1????????0??o????????1??????0??o?????????1????????????|????
                                    
      ???????o??2??????o????????????????????????????onginx???????????????????o?????????????????????????????log??????????????-??????????o???????????log???????????

   ??????????????
      ????a?????????1????????o???????main??????????????????SCM???????????SCM??????????3?????????????????????????????????o|???o??????????|????
                                       
      ?|???????????????????nginx ?1?????master??????????????????????????nginx?o???worker????????????????????????????1?????????????1??????main??????????is_scm??o0???ngx_main??????ngx_main??????????????omaster???worker????????o?o?   

   ??????????????
      ??SCM??????????????a?????o???????????????|????
                                         
      ????????????o??????????o?nginx???master???????????????????2??????SCM??1????????o?????????????is_scm??o1???ngx_main??????ngx_main????????????????master????????o?o?????o?????'????????????????o?2????-??????????????????????????????????????o?

   ??????????????
      ??ngx_main?????????????????????????????????????????|????
                                          
      ???o???nginx???????-????????????o????????????????'???????o???????-|?????3????o?????????o??????????????????????????????????????o?2????-??????????a|????????????o?o??????SCM????????????2????-???????????o?

   ??????????????????
      ??SCM???????o???????????????|????
                                         
   
   ?????3?3?
      ???????|?1??omaster?????????????????????????3?1??oworker???????????????????????????????????????ngx_main
            


?????????o???? 2019-11-20 19:45 ???????o
]]>
C++博客-<table border="0" cellspacing="0" cellpadding="0" style="margin- left:0px;display:inline;height:30px;"><tr><td style="font-weight:bold; font-size:16px; line- height:30px;">一年十二月&nbsp谁主春秋</td><td style="font-size:14px; line-height:30px;"></td></tr></table> http://598club.com/qinqing1984/archive/2019/11/06/216970.html?????????o?????????????o????Wed, 06 Nov 2019 10:01:00 GMThttp://598club.com/qinqing1984/archive/2019/11/06/216970.htmlhttp://598club.com/qinqing1984/comments/216970.htmlhttp://598club.com/qinqing1984/archive/2019/11/06/216970.html#Feedback0http://598club.com/qinqing1984/comments/commentRss/216970.htmlhttp://598club.com/qinqing1984/services/trackbacks/216970.html???2???
   
   ?????????vss??????????????o???????o??????2???o?????????????????????-????????o??????????????CPU???IO?????1????????'??????????????????o?o????????1?o???????????????12????????????server-free?????????????????????'???????|?????o????3????????????????????????o?????????????a'?'?????????o???????????????????????????????????????????o?vss??????????????'??????1?????|???????????o????o??-?????-????????o?Windows Server 2003 sp1????????????

??????????????
   
   VSS?????????????????SetContext|???????????VSS_CTX_APP_BACKUP | VSS_VOLSNAP_ATTR_TRANSPORTABLE

?????????o???? 2019-11-06 18:01 ???????o
]]>
C++博客-<table border="0" cellspacing="0" cellpadding="0" style="margin- left:0px;display:inline;height:30px;"><tr><td style="font-weight:bold; font-size:16px; line- height:30px;">一年十二月&nbsp谁主春秋</td><td style="font-size:14px; line-height:30px;"></td></tr></table> http://598club.com/qinqing1984/archive/2019/11/06/216969.html?????????o?????????????o????Wed, 06 Nov 2019 03:29:00 GMThttp://598club.com/qinqing1984/archive/2019/11/06/216969.htmlhttp://598club.com/qinqing1984/comments/216969.htmlhttp://598club.com/qinqing1984/archive/2019/11/06/216969.html#Feedback0http://598club.com/qinqing1984/comments/commentRss/216969.htmlhttp://598club.com/qinqing1984/services/trackbacks/216969.html1. ????????????????o??????????????????????????1?3????????????????????????????????????????????????????????????????o??????????o??o?????-???-??????????????????????????o????????????????3????????????????????o??????????????????????????o???????????????????(?????)???????????????????????????3??????????a???o??????????o?????1????????o?????????????????-????????????????????????????????????????????????????????????????3?????????????????????????????????-????????|?????????????????????|???????????-???????????????????????|???????????????????????????????3???????????3??o???????????????o???????????????1??????????????????????????????????????????????????????????o?

2. ?-???????????????????????????????????????????????3????????o??????o?
   ◆ ???????????????o?o????????o?????????????????????CoFW?3?????????o??????????????????io??????????????????????RoFW???
   ◆ ???????3???????????o?o?inode?????3??????????????????????????????io?????'???????????o?inode???????????????|??????????????o??3??1inode????????????????3????????|?NetApp?????????WAFL?????'????????a?????????1inode????????o?????????io??????????????????????????????inode?????????
   ◆ ?o??????o????????????????????????????o?????????????'?????????????????????o?o?????1???????????????page|????(?????1?o???????????o??????)??1????????'??????????????(????????????????)?????|????????????a????o?o??????????????o????????1????????????'?(?-?????????????????????????)??????????o?o???????????????????????'??

3. ????????????????????????o???????????????????????????????????o?o?????-???????????o????????1?????????????????o?o???????????????o???????????-?????1????????-?????'????????'??????3????undo,redo,undo/redo?????????????1?????????????????o???????????????????o?o?|???????????????????-???????1?????????????????????????????????????????????????????????o??????????????o???????????????????????vss??????????????'????????o????????????????3??????????????????????????

4. Oracle????????????????????????o??????????????????'?????????????????????????????????????????o???????????????????????o?????????????????????????????????1?Oracle??????????????????o????????????????????????????????-???????????????1???????????1?????????o???-?????a?????|??????o?????????????????????????|????????DBWn?????????????????1?????????????????????o?????????????????????????|????

5. Linux?????????swap????????-?????????????????-?(????|?page????-?)????a?????????????o????-?????????|???????????????o?o????????????IO????????????????????3???????????o???o?????????????-???3?1????swap?????????????1??????????????????1?3???????????????????????????????????????anon_vma??????????????????????1?o??????????????|?2??o?????????????1?3??2????swap????-???????????????????????????????????????????????swap????-???????????????3????????

6. Linux????-???????????????????LRU??????Oracle???buffer cache?1??????aLRU?????????LRU??????????1????????????(??????)??????'??????????????????????????????a??1??????|???????'???????????'????????o??????????|????????a??1??????1?o?Linux????a??1???????????????????'??????????3?o?swap tendency?????Oracle??????????????buffer??????TCH

7. Linux????????-?????????????????????3??o?Oracle??-????????????'???????????????????????1???????o?o????????????????????o?o?????????????????????????????????????????1??????????1??????o?????-???????????????????????o?o????????3???'?????????????????o???????????????????2??o????-?????????????1??????

8. mvcc???read uncommitted(????RU)???|??o????????3?3????????|??????????????3?o????????????o??????????????1?o?Oracle???RU???RC??????????????o?o?mvcc?????????????????'Oracle???????2?????????????1?o?MySQL innodb?????????mvcc????????o?RU????a?????o?RC/RR?o???????????oRC/RR???????????????1?2????o????????????????o?????1????????????????????????????????????o?????????????????RU?????????????a????o???????????????????mvcc??????????RU?o????1????????????a??|????????????????????????????????

9. ????????????page cache?????????o???????-?????????????????????o|????2???????2???'???????????????????????'?3????'?????????????????????????io????????????????????o?????????????????????????direct io???????self cache???????????????????????o???a'1????????????????????-??????????????????????????????????-?????????????????????????????o??3???????read???write????????????????????????o??????????????'?

10. SQL??????????????'??????????????????o????????1??????????????3????????????|???????a????????????????????????1???a??1??????????????????????o????????????????????????????????????????????in???exists???any?-?????????????????????????????????????????o???????o??????????????????????????????????o????????????????????????????????????????????-????'??????????1??1?????????????????????????????????????????????'??????????????????????-???????????o???SQL?????????????????????????????o??????????|????o????????????????????????????'????????o??o?????'???????????????

11. ???Oracle??????o?????????o|?2?????????????SQL?-??????????????????????o????????1??????????????-????????????????????o?linux???????????????|???windows?????????????????????????-??????????????????1?o?SQL?-????????????????-?(????????????????????????0????-????????????????chunk)????????kgl lock???pin??????????3???????????????????????????SQL????????????library cache hash chain??-???????????????'??????PGA????-????6???????-?????1?????????????????|??-????????????o??1?????o|???????o????????????-?????????????????????????????????????2?????????????????library cache??????????????PGA??-??????????????????????????????????????????????????????????????????library cache??-????????????|???????o?????o?2????-?????3???????????????1???????DDL??????????'???????????????????1????????????????chunk????????|???????????????????????????(??)??????????|?????????????????????o?

12. Oracle???????-????????2????????????o?Linux????????????????????????????-???????????????????????granule????????4M~16M???????????page?????4K????????????????2??????????????????'????3???????o???(???|????o?sql????-?)???chunk??????????slab????3???????o?????-??????????????????o?o?slab???????-???

13. Oracle??????o????????????????????o??????????????????'??????????????????a?????????????????'??????????????????????????????|????
   ◆ ??????????????????????-????????????????????????????????-??????????????o??????
   ◆ ??1???ITL??-???flag???lck?????1???????2????o????o??????????????????????3?????????????????????????????o?o??????3???2???????????oSCN????????ITL??????2??????????????o????????2???|????????????'????????????oSCN?????|??????????o???????????o????SCN????1?????-??1?o???????????o?????|?3???2???????????????????|????????o??????????'?????????????SCN????????ORA-01555
   ◆ ??1???ITL??-???uba???????????'??1????????a????o????o????????1??????o????o???????undo????
   ◆ ??1???ITL??-???SCN????????-????????'??1??o???????SCN????2????o?o?????????'?3????????????2????o?o????????????1?????o???undo???????????????????????????o??o??????????????????????o???????????????aundo?????????????????3????????a?2????o?o???????ITL?1??'??????????????????1?o?ITL?1

14. Oracle??????????????????o????????odml?????????????o?????'????-????????????????????????o??1???????????????????????????????????1?????????o??1???????1????????????????'??-????IO?????????????o??????'????|??????-??????????a?o??????1????????????????1?????'???????????????????????????o???????|??o???read committed???read uncommitted???????????????????????????o??????????????????????????????1???

15. Sql*plus???ARRAYSIZE??1???????????????????|????????????????a??????????????????????????|???????????a????????????????????????????|??-?????????????IO???????o??????1????????1??????????????ARRAYSIZE??????????????????????????????????????|??????????????????????o?????1??'???????????????????????????????????????????????????????????3????????-?????????????????????????????????'??????o?'????????????????????a?????

16. IOT??|??????o???????????????o?'??????????1??????o??o?'??????????????????????????????|????????????????????????????o??o?'?????????IOT??-?????????????o??????????IOT???o???1??????a??????????1???????????????????o????????IOT??-???????????????????????????????????????????????????'??????????????????rowid????????'????????????????????????????-IOT????????o?o??o?'????????1????????o????????

17. ?????1????????????????o|???????????????; ???????????a????????????????????????o|???????2?a??????2????????; ??o?o????????????????????????????????????o|????????'??a?o???????????????????????a???????o?o???????-????????2????????

18. ?????????3??????o???????'???????????1???
     ◆ ??1?o????????????2???????????????????????????o?o?select+update????1??????1?3?????????????-???????????????????????????'??????????????????????o?????????????????????a????'??3????????o?????????
     ◆ ??1?o??????????????2?????????????????????????select…for update nowait+update?????2?????1?3?????????????????????hash(????????)???????????'??

19. ?|?????????????o???????????a?????????1??????????????????????o?3?????2???????????a????????????????????????????o??????????????????????????????a?????????????????????????????????????????????????????????????????a????o?

20. Oracle????'??????????????a???????????????????a??????????????????'????????-????????????????-??????o?????????????join????????????????????????data buffer????-????????????????????????????????????????a?????3?????????????????????????|??????????o|??????????-??????????????????o?????????????-?????????????-??????1?o???????????????????????????????|???????-????oracle????????1??????o???mysql???innodb??a????'??????????????sql server???????????'??????????????????????????2?????'?????????

21. ??????????o???????????????????????Oracle???serializable??2?????|??o???????1???????????????????1?????o|???????2?????????????|??3??????????????2???1????????'?????a?o????????o?o???????????????????a????????????a?o?????'?2??????2?a???????????a????????a?o???????????????|???Oracle???serializable?o????????-????????oORA-08177?????o?

22. ??????read uncommitted?o???????|??o?????????-??????????????????o??????????????????????'?3????o??????????????????lock??????????????2??o?1??????????????????????????????????????latch???????????????????????????????????????????????????????|??o???????????????1?????a????o???????????????????3????????????????????????1???????????????????????????????3????o?????????????????????????

23. ???MySQL?????????Oracle?????????????'?????????????????????????-?????????????????????o????????????????????????????????????????????????????|????o????commit???rollback???????????????|?????-??????sql??????1?????'?????????????????????

24. ???|??????????????????????????3??????????????????????“?2???”??????????a????1?????2Oracle????????o????????o???????o?????2?????1??????|?read uncommitted???|??o??????Oracle??????????????????|??o??????read committed????????o????????o?o?undo??????????????????????????????????????1?????????????????????3?????oread uncommitted???????1???????????o????????????????????????1???????|?谨?????????????????????????

25. windows????-?????????linux????-????????????????o???????a???????????????????o?????-???osection?????????????????????????????????????o???????-????????-???o???????????????????-?????????'?'???????????????????????????????????????????????-??????????????3???????-???????????o?o?????-???????????'???o??????????????????????????1????????o??a????????????????????????????????????3???????????????1??????????


?????????o???? 2019-11-06 11:29 ???????o
]]>
C++博客-<table border="0" cellspacing="0" cellpadding="0" style="margin- left:0px;display:inline;height:30px;"><tr><td style="font-weight:bold; font-size:16px; line- height:30px;">一年十二月&nbsp谁主春秋</td><td style="font-size:14px; line-height:30px;"></td></tr></table> http://598club.com/qinqing1984/archive/2019/11/05/216967.html?????????o?????????????o????Tue, 05 Nov 2019 10:17:00 GMThttp://598club.com/qinqing1984/archive/2019/11/05/216967.htmlhttp://598club.com/qinqing1984/comments/216967.htmlhttp://598club.com/qinqing1984/archive/2019/11/05/216967.html#Feedback0http://598club.com/qinqing1984/comments/commentRss/216967.htmlhttp://598club.com/qinqing1984/services/trackbacks/216967.html??????|??
   ???o?????o?sdk?????????????????????????????1?o??????????????????????windows?????o??????linux?????windows?????????????????so?o?????????????|????????????????????????|????????????????-???????o?ctlsolink???????????o??a????o?????aso???????????????????????so????????o/????????o/?o??o??|???????????????????????3??|????:
   ● ???1???????omk???rm?-?????????mk??o?????o???rm??o????
   ● ???2???????o???????????????
   
● ???3????????????????-r????????a?????-r????|???????????o?????????o?????-??????-???????

??????????
   ??????so?o???|???????????????olibx.so.1???libx.so.1.2???libx.so.1.2.3?????????????(x??o?o????)?????1?o??????????????o/????????o??|?????????3?????????????????????o/?????o??o??|????????????o?o??2???????????o????o????o??o?????????????????????awk?????1???????shell?????????????-??1????????????????-???????1????????-?????????????????|????   
 1    if [ "$dir" != "$self_dir" ] || [ "$name" != "$self_name" ]; then
 2        if echo $name | aw'{if($0~/\.so\.[0-9]{1,}\.[0-9]{1,}\.[0-9]{1,}$/) exit 0; else exit 1}'; then
 3            link_name=${name%.[0-9]*}
 4            link_name=${link_name%.[0-9]*}
 5            link_name=${link_name%.[0-9]*}
 6            link_name2=${name%.[0-9]*}
 7            link_name2=${link_name2%.[0-9]*}
 8        elif echo $name | awk '{if($0~/\.so\.[0-9]{1,}\.[0-9]{1,}$/) exit 0; else exit 1}'; then
 9            link_name=${name%.[0-9]*}
10            link_name=${link_name%.[0-9]*}
11            link_name2=${name%.[0-9]*}
12        elif echo $name | awk '{if($0~/\.so\.[0-9]{1,}$/) exit 0; else exit 1}'; then 
13            link_name=${name%.[0-9]*}
14        else
15            return
16        fi
17
18        if [ $do_mk = "yes" ]; then
19            #echo "name=$name, link_name=$link_name, link_name2=$link_name2"
20            if [ -"$link_name2" ]; then
21                ln -sf $name $link_name2
22                ln -sf $link_name2 $link_name
23            else
24                ln -sf $name $link_name
25            fi
26        else
27            if [ -n $link_name2 ]; then
28                rm -f $link_name2
29            fi
30            rm -f $link_name
31        fi
32    fi
   |??3???????????????????????????%%???????????1????????????????link_name????????o??????????????.[0-9]*?????????????????????1???o?so?????????????????|?libx.1.so.2?????libx?????????????????libx.1.so
   ?????'?????????????ctlsolink

??????????
   ???????????
   
   ????ctlsolink?????o??????????
   
   ????ctlsolink??????????????
          

?????????o???? 2019-11-05 18:17 ???????o
]]>
C++博客-<table border="0" cellspacing="0" cellpadding="0" style="margin- left:0px;display:inline;height:30px;"><tr><td style="font-weight:bold; font-size:16px; line- height:30px;">一年十二月&nbsp谁主春秋</td><td style="font-size:14px; line-height:30px;"></td></tr></table> http://598club.com/qinqing1984/archive/2019/07/31/216616.html?????????o?????????????o????Wed, 31 Jul 2019 04:51:00 GMThttp://598club.com/qinqing1984/archive/2019/07/31/216616.htmlhttp://598club.com/qinqing1984/comments/216616.htmlhttp://598club.com/qinqing1984/archive/2019/07/31/216616.html#Feedback0http://598club.com/qinqing1984/comments/commentRss/216616.htmlhttp://598club.com/qinqing1984/services/trackbacks/216616.html
 1         CString bstrComPathName;
 2         WCHAR componentPathName[1];
 3         DWORD dwNameLen = 1;    
 4 
 5         if (!GetComputerNameEx(ComputerNamePhysicalDnsFullyQualified, componentPathName, &dwNameLen))
 6         { 
 7             DWORD dwErr = GetLastError();
 8             if(ERROR_MORE_DATA==dwErr)
 9             {            
10                 if (!GetComputerNameEx(ComputerNamePhysicalDnsFullyQualified, bstrComPathName.GetBuffer(dwNameLen), &dwNameLen))
11                 { 
12                     zlog_error(g_zc, "GetComputerNameEx with ComputerNamePhysicalDnsFullyQualified fail: %d", GetLastError());
13                     return -1;
14                 }
15             }
16             else
17             {
18                 zlog_error(g_zc, "GetComputerNameEx with ComputerNamePhysicalDnsFullyQualified for fail: %d", dwErr);
19                 return -1;
20             }
21         }                
22         bstrComPathName.ReleaseBuffer(); 
    ??|??3????????????GetBuffer??1?3???????????1????o???'????????1CString??1?????????????2??o???????????o????????1???????????????????????????1?3??????1???????????????????-??????????1?????????'????????????????????????????|????ReleaseBuffer

?????????o???? 2019-07-31 12:51 ???????o
]]>
C++博客-<table border="0" cellspacing="0" cellpadding="0" style="margin- left:0px;display:inline;height:30px;"><tr><td style="font-weight:bold; font-size:16px; line- height:30px;">一年十二月&nbsp谁主春秋</td><td style="font-size:14px; line-height:30px;"></td></tr></table> http://598club.com/qinqing1984/archive/2018/11/16/216067.html?????????o?????????????o????Fri, 16 Nov 2018 04:08:00 GMThttp://598club.com/qinqing1984/archive/2018/11/16/216067.htmlhttp://598club.com/qinqing1984/comments/216067.htmlhttp://598club.com/qinqing1984/archive/2018/11/16/216067.html#Feedback0http://598club.com/qinqing1984/comments/commentRss/216067.htmlhttp://598club.com/qinqing1984/services/trackbacks/216067.html  ??GNU make??-???????????????1|??-???3.14???2???o????????????????a????????????|???????


  ?????-?????????1C?o??????????Makefile?????????????????????-????????????????????????????????????????????????????????????1?o????????????????????|?src/log/log_file.c????????????????????log_file.d????????src/log/???????????ogcc???aix?13??xlc????????o|?|??-????????????????????????????1??-????????????????2??????|???????????|????????o
log_file.o: src/log/log_file.c src/log/log_file.h src/log/log_type.h \
 src/log/../base/io_ext.h

  ??????sed?????????src/log/log_file.o?????????o??????1?-????????????|????
%.d: %.c
    $(CC) $(CFLAGS) $(INCS) $< $(MFLAGS) $@.$$$$;\
    sed 's,$(*F).o[ :]*,$*.o $@: ,g' < $@.$$$$ > $@;\
    $(RM) $@.$$$$

  ????????1C?o??????????Makefile???????????????1?????????????????????????????????????1?|????
src/log/log_file.o src/log/log_file.d: src/log/log_file.c src/log/log_file.h src/log/log_type.h \
 src/log/../base/io_ext.h


?????????o???? 2018-11-16 12:08 ???????o
]]>
C++博客-<table border="0" cellspacing="0" cellpadding="0" style="margin- left:0px;display:inline;height:30px;"><tr><td style="font-weight:bold; font-size:16px; line- height:30px;">一年十二月&nbsp谁主春秋</td><td style="font-size:14px; line-height:30px;"></td></tr></table> http://598club.com/qinqing1984/archive/2017/12/29/215452.html?????????o?????????????o????Fri, 29 Dec 2017 09:24:00 GMThttp://598club.com/qinqing1984/archive/2017/12/29/215452.htmlhttp://598club.com/qinqing1984/comments/215452.htmlhttp://598club.com/qinqing1984/archive/2017/12/29/215452.html#Feedback0http://598club.com/qinqing1984/comments/commentRss/215452.htmlhttp://598club.com/qinqing1984/services/trackbacks/215452.html???o?traceroute??a??????-UDP????????????????????????????TCP????????????????????????????????????????-???????o????????????o??1??????????????????IP???MAC??????????????o?o???????????????-??-?????'?????o???????????

1. ?|????????-?????????????????????TCP???????????|??????o??????3
     ?????????????? tcpdump -i eno16777728 ether dst b0:b9:8a:69:65:3e and host 192.168.0.26 and tcp port 80  ????????????????3???????????????????TCP????????o80??????
     eno16777728 ?????????????ether ????a?????????dst ?????????src??o?o???????b0:b9:8a:69:65:3e ?????3MAC????????192.168.0.26 ????????IP????????80 ????????????

     ????o????????????
       ● ???????o????????o??????o??????3
       ● ???????????o??TCP?????????????????????o??????????????????o??????3??????????????1????-?????????????'??????2???????????3?o?
       ● ?????-????o????????o?????'??????????3

2. ?|????????-?????1????-?????????????'??
     ?????????????? tcpdump -i eno16777728 src 192.168.1.1 and dst 192.168.1.45 and icmp  ??????????a?????3????????????????????????icmp???
     192.168.1.1 ?????3IP???192.168.1.45 ?????????????o??????IP

     ????o????????????
       ● ?2????????o????????o?2?????????rerdirect???????????1????-???????
       ● ???????o?????ICMP redirect 192.168.0.26 to host 192.168.0.26?????????????aIP??o?????????????????'??????IP???????????a??o????????IP???
       ● ?????o??????o?ICMP?????????????????????????'???????1???????-??????3??o192.168.0.26????????????????????'?????????192.168.0.26?o?

3. ?|???????????????ICMP????????
      ● echo 0 | tee /proc/sys/net/ipv4/conf/*/accept_redirects    ?|??-???????????????????????????????????1????-????????1
      ● echo 1 | tee /proc/sys/net/ipv4/conf/*/accept_redirects    ???????????????????????ICMP??????????????

4. ??????????????????1????-?
      ● ip route get 192.168.0.26    ?????????????o??-????????????????IP???????????
      ● ip route flush cache             ?????o?????1????-??????????????????????????????main??????3?????route????o???????????????????


?????????o???? 2017-12-29 17:24 ???????o
]]>
C++博客-<table border="0" cellspacing="0" cellpadding="0" style="margin- left:0px;display:inline;height:30px;"><tr><td style="font-weight:bold; font-size:16px; line- height:30px;">一年十二月&nbsp谁主春秋</td><td style="font-size:14px; line-height:30px;"></td></tr></table> http://598club.com/qinqing1984/archive/2016/12/15/214491.html?????????o?????????????o????Thu, 15 Dec 2016 09:16:00 GMThttp://598club.com/qinqing1984/archive/2016/12/15/214491.htmlhttp://598club.com/qinqing1984/comments/214491.htmlhttp://598club.com/qinqing1984/archive/2016/12/15/214491.html#Feedback0http://598club.com/qinqing1984/comments/commentRss/214491.htmlhttp://598club.com/qinqing1984/services/trackbacks/214491.html????
   ??????????o???????????o?SSL/TLS???????????????????????1????????o??????3???????-|?????1???????????????????????????????????o????????o???????????????
   ????oo?'?13???????????????????????????????-??????????????????

??????
         

????????????
   ???3???


   ???5??????4??


   ???11??????3??

?????
   ?????????????????????SSL/TLS??????????1?

?????????o???? 2016-12-15 17:16 ???????o
]]>
C++博客-<table border="0" cellspacing="0" cellpadding="0" style="margin- left:0px;display:inline;height:30px;"><tr><td style="font-weight:bold; font-size:16px; line- height:30px;">一年十二月&nbsp谁主春秋</td><td style="font-size:14px; line-height:30px;"></td></tr></table> http://598club.com/qinqing1984/archive/2016/11/24/214439.html?????????o?????????????o????Thu, 24 Nov 2016 11:39:00 GMThttp://598club.com/qinqing1984/archive/2016/11/24/214439.htmlhttp://598club.com/qinqing1984/comments/214439.htmlhttp://598club.com/qinqing1984/archive/2016/11/24/214439.html#Feedback0http://598club.com/qinqing1984/comments/commentRss/214439.htmlhttp://598club.com/qinqing1984/services/trackbacks/214439.html????3?????
?????????????????    
   p???512??1024???????'???
   q???160?????????1????p-1?o??'????????-?
   g = h^((p-1)/q) mod p????????-h<p-1???g>1
   y = g^x mod p
????????????????
   x < q?????160???
????-???????
   k??o???o?q???????o?????k^-1??ok??q???????????m??o?????????H??o?????????????????
   r = (g^k mod p) mod q
   s = (k^-1(H(m)+xr)) mod q
???a??????
   w = s^-1 mod q
   u1 = (H(m)w) mod q
   u2 = (rw) mod q
   v = ((g^u1 * y^u2) mod p) mod q
   ??v = r???????-??????a???

a??-??????
   1. ????????????a??-?'????o
      ???(h,p)=1???p??o?'??????h<p???(a1,a1)??????o??-?????|????????oa1???a2???????????o|??????????????'1?????????????h^(p-1)=1 mod p????????1????????'??n??????
      g^(nq) mod p = (h^((p-1)/q))^(nq) mod p
                          = h^(n(p-1)) mod p
                          = (h^(p-1) mod p)^n  mod p
                          = (1^n) mod p = 1     (1)
      ??1????????'??t???n????????o??ot=nq+z????????-z>0?????????
      g^t mod p = g^(nq+z) mod p
                      = (g^(nq) mod p * (g^z mod p)) mod p
                      = g^z mod p
                      = g^(t mod q) mod p    (2)

  2. ?????????-????{r,s}?????????m????2????????1?????H(m)=h?????????????v
      v = ((g^u1 * y^u2) mod p) mod q
         = (g^(hw mod q) * ((g^x mod p)^(rw mod q) mod p)) mod q
         = ((g^(hw mod q) mod p * ((g^x mod p)^(rw mod q) mod p)) mod p) mod q
         = ((g^(hw mod q) mod p * (g^(x * (rw mod q)) mod p)) mod p) mod q
         = ((g^(hw) mod p * ((g^(rw mod q) mod p)^x mod p)) mod p) mod q
         = ((g^(hw) mod p * ((g^(rw) mod p)^x mod p)) mod p) mod q
         = ((g^(hw) mod p * (g^(rwx) mod p)) mod p) mod q
         = (g^(hw+rwx) mod p) mod q
         = (g^((h+rx)w) mod p) mod q    (3)

      ??????w = s^-1 mod q
         ???(sw) mod q = 1
           =>(((k^-1(h+xr)) mod q)w) mod q = 1
           =>((k^-1(h+xr))w) mod q = 1
           =>(h+xr)w = k mod q    (4)

      ??(4)?????????(3)?????-???
      v = (g^(k mod q) mod p) mod q
         = (g^k mod p) mod q
         = r

  3. ????????(4)???????????h???r???s????????a????????????s??????????'w???????????????v ≠ r


?????????o???? 2016-11-24 19:39 ???????o
]]>
C++博客-<table border="0" cellspacing="0" cellpadding="0" style="margin- left:0px;display:inline;height:30px;"><tr><td style="font-weight:bold; font-size:16px; line- height:30px;">一年十二月&nbsp谁主春秋</td><td style="font-size:14px; line-height:30px;"></td></tr></table> http://598club.com/qinqing1984/archive/2016/11/18/214419.html?????????o?????????????o????Fri, 18 Nov 2016 09:05:00 GMThttp://598club.com/qinqing1984/archive/2016/11/18/214419.htmlhttp://598club.com/qinqing1984/comments/214419.htmlhttp://598club.com/qinqing1984/archive/2016/11/18/214419.html#Feedback0http://598club.com/qinqing1984/comments/commentRss/214419.htmlhttp://598club.com/qinqing1984/services/trackbacks/214419.html????3?????    
   ????o?????????a?????'??? p???q ??????p ≠ q????????n = pq???r = (p-1)(q-1)????????????????????r??3??o???n?o?'????'?????a???????????????a???o?r?????'??e?????3??????????????????????e??3?o???r????????d?????3??????????????????{n???e}??o????????{n???d}??o?????????1???????????????'???ed ≡ 1 (mod r)?????m??o?????????????????????????om^e ≡ c (mod n)??? c??3??o???????????????????? c^d ≡ m (mod n)???
   ????????????'1???????????????3 ??y??o?'??????x?????oy??????????? ??? x^(y-1) ≡ 1 (mod y)???'1???????????????????????????????????????????-?????????????|??≡??o?????????^??o?1????|??o??'????*??o????1????

????3??????
 ??????????????????   
   ??? ed ≡ 1 (mod (p-1)(q-1))????? ed = k(p-1)(q-1) + 1????????- k ?????'??
   ??? c^d = (m^e)^d = m^(ed) = m^(k(p-1)(q-1)+1)
   1.??m??????p????????????1???????q????????
      ??? m^(p-1) ≡ 1 (mod p) ('1??????????)
         => m^(k(p-1)(q-1)) ≡ 1 (mod p)
      m^(q-1) ≡ 1 (mod q) ('1??????????)
         => m^(k(p-1)(q-1)) ≡ 1 (mod q)
      ??? p???q ???????'? m^(k(p-1)(q-1)) - 1
         => pq | m^(k(p-1)(q-1)) - 1
      ??3 m^(k(p-1)(q-1)) ≡ 1 (mod pq)   
         => m^(k(p-1)(q-1)+1) ≡ m (mod n)   

   2.??m???p????????????????????q????????
      ??? m^(q-1) ≡ 1 (mod q) ('1??????????)
         => m^(k(p-1)(q-1)) ≡ 1 (mod q)
         => m^(k(p-1)(q-1)+1) ≡ m (mod q)
      ??? p | m
         => m^(k(p-1)(q-1)+1) ≡ 0 (mod p)
         => m^(k(p-1)(q-1)+1) ≡ m (mod p)
      ??? m^(k(p-1)(q-1)+1) ≡ m (mod pq) 
      ??3 m^(k(p-1)(q-1)+1) ≡ m (mod n)

   3.??m???q????????????????????p??????????????????????

   4.??m?????op???q???????????
      ??? pq | m
         => m^(k(p-1)(q-1)+1) ≡ 0 (mod pq)
         => m^(k(p-1)(q-1)+1) ≡ m (mod pq)
      ??3 m^(k(p-1)(q-1)+1) ≡ m (mod n)

 ????o?????????????
   ????????m^ed ≡ m (mod p)?????????
   1.??p??om???????-???????p | m^ed - m?????????????????3m^ed ≡ m (mod p)
   2.??p?????om???????-??????ed = k(p-1)(q-1) + 1?????? m^(ed-1) - 1 = m^(k(p-1)(q-1)) - 1
       m^(p-1) ≡ 1 (mod p) ('1??????????)
        => m^(k(p-1)) ≡ 1 (mod p)
        => m^(k(p-1)(q-1)) ≡ 1 (mod p)
        => m^(ed-1) ≡ 1 (mod p)
        => m^ed ≡ m (mod p)
   ???????????m^ed ≡ m (mod q)
   ???m^ed ≡ m (mod pq)?????3m^ed ≡ m (mod n)
   ?????? c^d = m^e^d = m^(ed)
   ??? c^d ≡ m (mod n)????????
   
??????
 ????o??????????????????????'??????????????????????1RSA?????-???????a??-??????????????

?????????o???? 2016-11-18 17:05 ???????o
]]>