@@ -35,7 +35,7 @@ VALUE cPacketIn;
3535#define PACKET_IN_RETURN_IP ( packet_member ) \
3636 { \
3737 VALUE ret = ULONG2NUM( get_packet_in_info( self )->packet_member ); \
38- return rb_funcall( rb_eval_string( "Trema::IP " ), rb_intern( "new" ), 1, ret ); \
38+ return rb_funcall( rb_eval_string( "Pio::IPv4Address " ), rb_intern( "new" ), 1, ret ); \
3939 }
4040
4141#define PACKET_IN_RETURN_NUM ( flag , func , packet_member ) \
@@ -391,8 +391,8 @@ packet_in_arp_sha( VALUE self ) {
391391/*
392392 * The ARP source protocol address of a packet.
393393 *
394- * @return [Trema::IP , nil]
395- * the value of ARP source protocol address as a Trema::IP object or nil if
394+ * @return [Pio::IPv4Address , nil]
395+ * the value of ARP source protocol address as a Pio::IPv4Address object or nil if
396396 * packet is not an ARP.
397397 */
398398static VALUE
@@ -427,8 +427,8 @@ packet_in_arp_tha( VALUE self ) {
427427/*
428428 * The ARP target protocol address of a packet.
429429 *
430- * @return [Trema::IP ]
431- * the value of ARP target protocol address as a Trema::IP object or nil if
430+ * @return [Pio::IPv4Address ]
431+ * the value of ARP target protocol address as a Pio::IPv4Address object or nil if
432432 * packet is not an ARP.
433433 */
434434static VALUE
@@ -522,8 +522,8 @@ packet_in_rarp_sha( VALUE self ) {
522522/*
523523 * The RARP source protocol address of a packet.
524524 *
525- * @return [Trema::IP , nil]
526- * the value of RARP source protocol address as a Trema::IP object or nil if
525+ * @return [Pio::IPv4Address , nil]
526+ * the value of RARP source protocol address as a Pio::IPv4Address object or nil if
527527 * packet is not an RARP.
528528 */
529529static VALUE
@@ -558,8 +558,8 @@ packet_in_rarp_tha( VALUE self ) {
558558/*
559559 * The ARP target protocol address of a packet.
560560 *
561- * @return [Trema::IP ]
562- * the value of RARP target protocol address as a Trema::IP object or nil if
561+ * @return [Pio::IPv4Address ]
562+ * the value of RARP target protocol address as a Pio::IPv4Address object or nil if
563563 * packet is not an RARP.
564564 */
565565static VALUE
@@ -691,8 +691,8 @@ packet_in_ipv4_checksum( VALUE self ) {
691691/*
692692 * The IPv4 source IP address of a packet.
693693 *
694- * @return [Trema::IP ,nil]
695- * the value of IPv4 source IP address as a Trema::IP object or nil if
694+ * @return [Pio::IPv4Address ,nil]
695+ * the value of IPv4 source IP address as a Pio::IPv4Address object or nil if
696696 * packet is not an IPv4.
697697 */
698698static VALUE
@@ -709,8 +709,8 @@ packet_in_ipv4_saddr( VALUE self ) {
709709/*
710710 * The IPV4 destination IP address of a packet.
711711 *
712- * @return [Trema::IP , nil]
713- * the value of IPv4 destination IP address as a Trema::IP object or nil if
712+ * @return [Pio::IPv4Address , nil]
713+ * the value of IPv4 destination IP address as a Pio::IPv4Address object or nil if
714714 * packet is not an IPv4.
715715 */
716716static VALUE
@@ -814,8 +814,8 @@ packet_in_icmpv4_seq( VALUE self ) {
814814/*
815815 * The ICMPv4 redirect message gateway IP address.
816816 *
817- * @return [Trema::IP , nil]
818- * the value of ICMPv4 redirect message IP gateway address as a Trema::IP
817+ * @return [Pio::IPv4Address , nil]
818+ * the value of ICMPv4 redirect message IP gateway address as a Pio::IPv4Address
819819 * object or nil if packet is not ICMPv4.
820820 */
821821static VALUE
@@ -1009,8 +1009,8 @@ packet_in_igmp_type( VALUE self ) {
10091009/*
10101010 * The IGMP group address.
10111011 *
1012- * @return [Trema::IP , nil]
1013- * the value of IGMP IP group address as a Trema::IP object
1012+ * @return [Pio::IPv4Address , nil]
1013+ * the value of IGMP IP group address as a Pio::IPv4Address object
10141014 * or nil if packet is not IGMP.
10151015 */
10161016static VALUE
@@ -1228,7 +1228,7 @@ packet_in_udp_checksum( VALUE self ) {
12281228 */
12291229void
12301230Init_packet_in () {
1231- rb_require ( "trema/ip " );
1231+ rb_require ( "pio " );
12321232 rb_require ( "trema/mac" );
12331233 mTrema = rb_eval_string ( "Trema" );
12341234 cPacketIn = rb_define_class_under ( mTrema , "PacketIn" , rb_cObject );
0 commit comments