/* * The ARP target hardware address of a packet. * * @return [Trema::Mac] * the value of ARP target hardware address as a Trema::Mac object or nil if * packet is not an ARP. */ static VALUE packet_in_arp_tha( VALUE self ) { if ( ( get_packet_in_info( self )->format & NW_ARP ) ) { PACKET_IN_RETURN_MAC( arp_tha ); } else { return Qnil; } }
/* * The destination MAC address. * * @return [Trema::Mac] the value of destination MAC address as a * Trema::MAC object. */ static VALUE packet_in_macda( VALUE self ) { PACKET_IN_RETURN_MAC( eth_macda ); }
/* * The ARP target hardware address. * * @return [Trema::Mac] arp_tha MAC hardware address. */ static VALUE packet_in_arp_tha( VALUE self ) { PACKET_IN_RETURN_MAC( arp_tha ); }