/** * {@inheritDoc} */ @Override public int getEtherType() { return EtherTypes.IPV4.intValue(); }
/** * Determine whether this packet is an IPv4 packet or not. * * @return {@code true} is returned only if this packet is an IPv4 packet. */ public boolean isIPv4() { return (etherFrame.getEtherType() == EtherTypes.IPV4.intValue()); }