All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.pkts.packet.MACPacket Maven / Gradle / Ivy

There is a newer version: 3.0.10
Show newest version
/**
 * 
 */
package io.pkts.packet;

/**
 * Represents a packet from the Data Link Layer (DLL - Layer 2 in the OSI
 * model). Now, this is not 100% accurate since the MAC layer is really a sub
 * layer of DLL but whatever, it works for now.
 * 
 * @author [email protected]
 */
public interface MACPacket extends PCapPacket, Cloneable {

    String getSourceMacAddress();

    /**
     * Set the MAC address of this {@link MACPacket}.
     * 
     * @param macAddress
     * @throws IllegalArgumentException
     *             in case the MAC address specified is null or the empty
     *             string.
     */
    void setSourceMacAddress(String macAddress) throws IllegalArgumentException;

    String getDestinationMacAddress();

    void setDestinationMacAddress(String macAddress) throws IllegalArgumentException;

    @Override
    MACPacket clone();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy