Net :: Cidr.

CIDR Ç¥±â¹ý¿¡¼­ IPv4 / IPv6 NetBlocks Á¶ÀÛ
Áö±Ý ´Ù¿î·Îµå

Net :: Cidr. ¼øÀ§ ¹× ¿ä¾à

±¤°í

  • Rating:
  • ƯÇã:
  • Perl Artistic License
  • °¡°Ý:
  • FREE
  • °Ô½ÃÀÚ À̸§:
  • Sam Varshavchik
  • °Ô½ÃÀÚ À¥»çÀÌÆ®:
  • http://www.courier-mta.org/maildrop/

Net :: Cidr. ű×


Net :: Cidr. ¼³¸í

CIDR Ç¥±â¹ý¿¡¼­ IPv4 / IPv6 NetBlocks Á¶ÀÛ NET :: CIDRÀº CIDR Ç¥±â¹ýÀ¸·Î Ç¥Çö µÈ IP ³Ý ºí·Ï ¸ñ·ÏÀ» Á¶ÀÛÇÏ´Â ±â´ÉÀ» Æ÷ÇÔÇÏ´Â Perl ¸ðµâÀÔ´Ï´Ù. NET :: CIDR ÇÔ¼ö´Â IPv4 ¹× IPv6 ÁÖ¼Ò¸¦ ¸ðµÎ ó¸®ÇÕ´Ï´Ù. @ cidr_list = net :: cidr_list = net :: @range_listÀÇ °¢ ¿ä¼Ò´Â ¹®ÀÚ¿­ "start-finish"ÀÔ´Ï´Ù. ¿©±â¼­ "½ÃÀÛ"Àº ù ¹ø°ÀÔ´Ï´Ù. IP ÁÖ¼Ò¿Í "¸¶Ä§"Àº ¸¶Áö¸· IP ÁÖ¼ÒÀÔ´Ï´Ù. range2cidr () °¢ ¹üÀ§´Â µ¿µîÇÑ CIDR ³Ý ºí·ÏÀ¸·Î º¯È¯ÇÕ´Ï´Ù. ÇϳªÀÇ ¸Å°³ º¯¼ö ¸¸ Á¦°øµÇ¸ç ½ºÄ®¶ó ÄÁÅؽºÆ®¿¡¼­ È£ÃâµÇ´Â °æ¿ì¸¦ Á¦¿ÜÇÏ°í NetBlocks ¸ñ·ÏÀ» ¹ÝȯÇÕ´Ï´Ù. Synopsis´Â Net :: CIDRÀ» »ç¿ëÇÕ´Ï´Ù. net :: cidr ': ALL'; Àμâ Á¶ÀÎ ( "\ n", net :: cidr :: Range2CIDR ( "192.68.0.0-192.68.255.255", "10.0.0.0-10.3.255"))). "\N"; # # # 192.68.0.0/16 # 192.68.0.0/16 # 10.0.0.0/14 Àμâ Á¶ÀÎ ( "\ n", net :: cidr :: range2cidr ( "Dead : Beef :: Dead : ¼è°í±â : FFFF : FFFF : FFFF : FFFF : FFFF : FFFF : ffff : ffff : ffff : ffff ")). "\N"; # # : # DEAD : ¼è°í±â :: / 32 Àμâ Á¶ÀÎ ( "\ n", net :: cidr :: Range2CIDR ( "192.68.1.255"))). "\N"; # # À̻󿡼­ Ãâ·Â : # # 192.68.1.0/24 # 192.68.2.0/24 Àμâ Á¶ÀÎ ( "\ n", net :: cidr :: cidr2range ( "192.68.0.0/16")). "\N"; # # # 192.68.0.0-192.68.255.255 Àμâ Á¶ÀÎ ( "\ n", net :: cidr :: cidr1grange ( "Dead :: ¼è°í±â :: / 46")). "\N"; # # # Á×Àº : # Á×Àº : ¼è°í±â :: - Á×Àº : ¼è°í±â : 3 : FFFF : FFFF : FFFF : FFFF : ffff @list = ( "192.68.0.0/24"); @ list = net :: cidr :: cidradd ( "192.68.1.0-192.68.1.255", @List); Àμâ Á¶ÀÎ ( "\ n", @List). "\N"; # # # 192.68.0.0/23 Àμ⠰¡ÀÔ ( "\ n", net :: cidr :: cidr2octets ( "192.68.0.0/22"))). "\N"; # # # 192.68.0 # 192.68.1 # 192.68.1 # 192.68.2 # 192.68.2 # 192.68.2 Àμâ Á¶ÀÎ ( "\ n", net :: cidr :: cidr2octets ( "Dead :: ¼è°í±â :: / 46") ~ÀÇ "\N"; # # Á×Àº : # Á×Àº : ¼è°í±â : 0000 # Á×Àº : ¼è°í±â : 0001 # Á×Àº : ¼è°í±â : 0002 Á×Àº : ¼è°í±â : 0003 @list = ( "192.68.0.0/24"); net :: cidr :: cidrlookup ( "192.68.0.12", @List); # # 1¿¡¼­ Ãâ·Â : # # 1 @list = net :: cidr :: addr2cidr ( "192.68.0.31"); Àμâ Á¶ÀÎ ( "\ n", @List); # # # 192.68.0.31/32 # 192.68.0.30/31 # 192.68.0.28/30 # 192.68.0.24/29 # 192.68.0.16/28 # 192.68.0.0/27 # 192.68.0/26 # 192.68.0/26 # # 192.68.0.0/25 # 192.68.0.0/24 # 192.68.0.0/24 # 192.68.0.0/24 # 192.68.0.0/24 # 192.68.0.0/23 # net :: cidr :: addRandMask2CIDR ( "195.149.50.61", "255.255.255.248") "\ N"; # # Ãâ·Â À§¿¡¼­ Ãâ·Â : # 195.149.50.56/29 ¿ä±¸ »çÇ× : ¡¤ Perl.


Net :: Cidr. °ü·Ã ¼ÒÇÁÆ®¿þ¾î