net.sourceforge.jpcap.net
Interface IPProtocols

All Known Implementing Classes:
IPProtocol

public interface IPProtocols

Code constants for well-defined IP protocols.

Taken from netinet/in.h


Field Summary
static int AH
          authentication header.
static int COMP
          Compression Header Protocol.
static int DSTOPTS
          IPv6 destination options.
static int EGP
          Exterior Gateway Protocol.
static int ENCAP
          Encapsulation Header.
static int ESP
          encapsulating security payload.
static int FRAGMENT
          IPv6 fragmentation header.
static int GRE
          General Routing Encapsulation.
static int HOPOPTS
          IPv6 Hop-by-Hop options.
static int ICMP
          Internet Control Message Protocol.
static int ICMPV6
          ICMPv6.
static int IDP
          XNS IDP protocol.
static int IGMP
          Internet Group Management Protocol.
static int INVALID
          Unrecognized IP protocol.
static int IP
          Dummy protocol for TCP.
static int IPIP
          IPIP tunnels (older KA9Q tunnels use 94).
static int IPV6
          IPv6 header.
static int MTP
          Multicast Transport Protocol.
static int NONE
          IPv6 no next header.
static int PIM
          Protocol Independent Multicast.
static int PUP
          PUP protocol.
static int RAW
          Raw IP packets.
static int ROUTING
          IPv6 routing header.
static int RSVP
          Reservation Protocol.
static int TCP
          Transmission Control Protocol.
static int TP
          SO Transport Protocol Class 4.
static int UDP
          User Datagram Protocol.
 

Field Detail

IP

public static final int IP
Dummy protocol for TCP.

HOPOPTS

public static final int HOPOPTS
IPv6 Hop-by-Hop options.

ICMP

public static final int ICMP
Internet Control Message Protocol.

IGMP

public static final int IGMP
Internet Group Management Protocol.

IPIP

public static final int IPIP
IPIP tunnels (older KA9Q tunnels use 94).

TCP

public static final int TCP
Transmission Control Protocol.

EGP

public static final int EGP
Exterior Gateway Protocol.

PUP

public static final int PUP
PUP protocol.

UDP

public static final int UDP
User Datagram Protocol.

IDP

public static final int IDP
XNS IDP protocol.

TP

public static final int TP
SO Transport Protocol Class 4.

IPV6

public static final int IPV6
IPv6 header.

ROUTING

public static final int ROUTING
IPv6 routing header.

FRAGMENT

public static final int FRAGMENT
IPv6 fragmentation header.

RSVP

public static final int RSVP
Reservation Protocol.

GRE

public static final int GRE
General Routing Encapsulation.

ESP

public static final int ESP
encapsulating security payload.

AH

public static final int AH
authentication header.

ICMPV6

public static final int ICMPV6
ICMPv6.

NONE

public static final int NONE
IPv6 no next header.

DSTOPTS

public static final int DSTOPTS
IPv6 destination options.

MTP

public static final int MTP
Multicast Transport Protocol.

ENCAP

public static final int ENCAP
Encapsulation Header.

PIM

public static final int PIM
Protocol Independent Multicast.

COMP

public static final int COMP
Compression Header Protocol.

RAW

public static final int RAW
Raw IP packets.

INVALID

public static final int INVALID
Unrecognized IP protocol. WARNING: this only works because the int storage for the protocol code has more bits than the field in the IP header where it is stored.