Create abstract base class for packet generator and make icmp and new igmp inherit from this.