| NetPacket :: IP. NetPacket :: IP´Â IP (ÀÎÅÍ³Ý ÇÁ·ÎÅäÄÝ) ÆÐŶÀ» ¾î¼ÀºíÇÏ°í ºÐÇØÇÏ´Â Perl ¸ðµâÀÔ´Ï´Ù. |
Áö±Ý ´Ù¿î·Îµå |
NetPacket :: IP. ¼øÀ§ ¹× ¿ä¾à
- ƯÇã:
- Perl Artistic License
- °Ô½ÃÀÚ À̸§:
- Tim Potter and Stephanie Wehner
- °Ô½ÃÀÚ À¥»çÀÌÆ®:
- http://search.cpan.org/~atrak/NetPacket-0.04/NetPacket/UDP.pm
NetPacket :: IP. ű×
NetPacket :: IP. ¼³¸í
NetPacket :: IP´Â IP (ÀÎÅÍ³Ý ÇÁ·ÎÅäÄÝ) ÆÐŶÀ» ¾î¼ÀºíÇÏ°í ºÐÇØÇÏ´Â Perl ¸ðµâÀÔ´Ï´Ù. ½Ã³ñ½Ã½º´Â NetPacket :: IP¸¦ »ç¿ëÇÕ´Ï´Ù. $ ip_obj = netPacket :: IP-> µðÄÚµå ($ raw_pkt); $ IP_PKT = netPacket :: IP-> ÀÎÄÚµù ($ IP_OBJ); $ IP_DATA = netPacket :: IP :: Strip ($ raw_pkt); NetPacket :: IP´Â IP (ÀÎÅÍ³Ý ÇÁ·ÎÅäÄÝ)¸¦ »ç¿ëÇÏ¿© ÆÐŶÀ» ¾î¼ÀºíÇÏ°í ºÐÇØÇϱâÀ§ÇÑ ÀÏ·ÃÀÇ ·çƾÀ» Á¦°øÇÕ´Ï´Ù .MethodsNetPacket :: IP-> µðÄÚµå () µðÄÚµå ¿ø½Ã ÆÐŶ µ¥ÀÌÅÍ´Â ÀνºÅϽº µ¥ÀÌÅÍ°¡ Æ÷ÇÔ µÈ °´Ã¼¸¦ ¹ÝȯÇÕ´Ï´Ù. ÀÌ ¹æ¹ýÀº ²Ï ÇູÇÏ°Ô ¾²·¹±â ÀÔ·ÂÀ» Çص¶ÇÕ´Ï´Ù. À¯È¿ÇÑ ÆÐŶ µ¥ÀÌÅÍ °¡ÀÌ ¸Þ¼µå·Î Àü´ÞµÇµµ·ÏÇÏ´Â °ÍÀº ÇÁ·Î±×·¡¸ÓÀÇ Ã¥ÀÓÀÔ´Ï´Ù .: IP-> encode () ÁöÁ¤µÈ ÀνºÅϽº µ¥ÀÌÅÍ·Î ÀÎÄÚµù µÈ IP ÆÐŶÀ» ¹ÝȯÇÕ´Ï´Ù. ÀÌ·¸°ÔÇϸé ÆäÀ̷εå LENTH°¡ ÀÚµ¿À¸·Î ÆÐŶÀÇ ÃÑ ±æÀÌ°¡ ÀÚµ¿À¸·Î Ã߷еǸç üũ ·¥ÇÁ¸¦ Á¶Á¤ÇÕ´Ï´Ù. IP :: Strip () IP ÆÐŶ¿¡ Æ÷ÇÔ µÈ ĸ½¶È µÈ µ¥ÀÌÅÍ (¶Ç´Â ÆäÀ̷εå)¸¦ ¹ÝȯÇÕ´Ï´Ù. ÀÌ µ¥ÀÌÅÍ´Â ´Ù¸¥ NetPacket :: * modulesÀÇ ÀÔ·ÂÀ¸·Î »ç¿ëµÇ±â¿¡ ÀûÇÕÇÕ´Ï´Ù.ÀÌ ±â´ÉÀº decode () »ý¼ºÀÚ¸¦ »ç¿ëÇÏ¿© °´Ã¼¸¦ ¸¸µå´Â °Í°ú ÇØ´ç object.Instance Datathe ÀνºÅϽº µ¥ÀÌÅÍÀÇ µ¥ÀÌÅÍ Çʵ带 NetPacket :: IP¿¡ ¹ÝȯÇÏ´Â °Í°ú °°½À´Ï´Ù. °´Ã¼´ÂÀÌ packet.hlentheÀÇ IP Çì´õÀÇ IP ¹öÀüÀÇ IP Çì´õ ±æÀÌÀÌ Packet.FOFFSetTheÀÌ Packet.ToSTHEÀÌ IP ÆÐŶ¿¡ ´ëÇÑ ¼ºñ½º À¯Çü¿¡ ´ëÇÑÀÌ Packet.FlagSthe IP Çì´õ Ç÷¡±×ÀÇ IP Çì´õ Ç÷¡±×ÀÔ´Ï´Ù. leenthe ±æÀÌ (Çì´õ ±æÀÌ)ÀÌ PacketÀÇ °æ¿ì ¹ÙÀÌÆ® (Sequence) ¹øÈ£´ÂÀÌ IP ÆÐŶ¿¡ ´ëÇÑ ¹øÈ£ÀÔ´Ï´Ù.ÀÌ Packet.PrototheÀÇ IP ÇÁ·ÎÅäÄÝ ¹øÈ£ÀÌ Packet.CloTothe IP ÇÁ·ÎÅäÄÝ ¹øÈ£ÀÌ Packet.Cl ¿¡¼ÀÌ Packet.CKSUMSUM °ªÀÌ PACKET.CUMSUMSUM °ª¿¡ ´ëÇÑ IP üũ¼¶ °ª packet.src_iptheÀÌ ÆÐŶ¿¡ ´ëÇÑÀÌ ÆÐŶ¿¡ ´ëÇÑÀÌ ÆÐŶ¿¡ ´ëÇÑÀÌ ÆÐŶ¿¡ ´ëÇÑÀÌ ÆÐŶ¿¡ ´ëÇÑÀÌ ÆÐŶ¿¡ ´ëÇÑÀÌ ÆÐŶ¿¡ ´ëÇÑÀÌ ÆÐŶ¿¡ ´ëÇÑ IP ÁÖ¼Ò.ÀÌ IP ÆÐŶ¿¡ ´ëÇÑ Ä¸½¶È µÈ µ¥ÀÌÅÍ (ÆäÀ̷εå). ¿ä±¸ »çÇ× : ¡¤ Perl.
NetPacket :: IP. °ü·Ã ¼ÒÇÁÆ®¿þ¾î