public final class Packets
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
containsEthernetPacket(Packet packet)
Checks if the given packet contains an Ethernet packet (
EthernetPacket). |
static boolean |
containsIpPacket(Packet packet)
Checks if the given packet contains an IP packet (
IpPacket). |
static boolean |
containsIpV4Packet(Packet packet)
Checks if the given packet contains an IPv4 packet (
IpV4Packet). |
static boolean |
containsIpV6Packet(Packet packet)
Checks if the given packet contains an IPv6 packet (
IpV6Packet). |
static boolean |
containsTcpPacket(Packet packet)
Checks if the given packet contains a TCP packet (
TcpPacket). |
static boolean |
containsUdpPacket(Packet packet)
Checks if the given packet contains a Udp packet (
UdpPacket). |
public static boolean containsTcpPacket(Packet packet)
TcpPacket).packet - packetpublic static boolean containsUdpPacket(Packet packet)
UdpPacket).packet - packetpublic static boolean containsIpV4Packet(Packet packet)
IpV4Packet).packet - packetpublic static boolean containsIpV6Packet(Packet packet)
IpV6Packet).packet - packetpublic static boolean containsIpPacket(Packet packet)
IpPacket).packet - packetpublic static boolean containsEthernetPacket(Packet packet)
EthernetPacket).packet - packetCopyright © 2011 - 2018 Pcap4J.org. All rights reserved.