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 MASK
          IP protocol mask.
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.

See Also:
Constant Field Values

HOPOPTS

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

See Also:
Constant Field Values

ICMP

public static final int ICMP
Internet Control Message Protocol.

See Also:
Constant Field Values

IGMP

public static final int IGMP
Internet Group Management Protocol.

See Also:
Constant Field Values

IPIP

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

See Also:
Constant Field Values

TCP

public static final int TCP
Transmission Control Protocol.

See Also:
Constant Field Values

EGP

public static final int EGP
Exterior Gateway Protocol.

See Also:
Constant Field Values

PUP

public static final int PUP
PUP protocol.

See Also:
Constant Field Values

UDP

public static final int UDP
User Datagram Protocol.

See Also:
Constant Field Values

IDP

public static final int IDP
XNS IDP protocol.

See Also:
Constant Field Values

TP

public static final int TP
SO Transport Protocol Class 4.

See Also:
Constant Field Values

IPV6

public static final int IPV6
IPv6 header.

See Also:
Constant Field Values

ROUTING

public static final int ROUTING
IPv6 routing header.

See Also:
Constant Field Values

FRAGMENT

public static final int FRAGMENT
IPv6 fragmentation header.

See Also:
Constant Field Values

RSVP

public static final int RSVP
Reservation Protocol.

See Also:
Constant Field Values

GRE

public static final int GRE
General Routing Encapsulation.

See Also:
Constant Field Values

ESP

public static final int ESP
encapsulating security payload.

See Also:
Constant Field Values

AH

public static final int AH
authentication header.

See Also:
Constant Field Values

ICMPV6

public static final int ICMPV6
ICMPv6.

See Also:
Constant Field Values

NONE

public static final int NONE
IPv6 no next header.

See Also:
Constant Field Values

DSTOPTS

public static final int DSTOPTS
IPv6 destination options.

See Also:
Constant Field Values

MTP

public static final int MTP
Multicast Transport Protocol.

See Also:
Constant Field Values

ENCAP

public static final int ENCAP
Encapsulation Header.

See Also:
Constant Field Values

PIM

public static final int PIM
Protocol Independent Multicast.

See Also:
Constant Field Values

COMP

public static final int COMP
Compression Header Protocol.

See Also:
Constant Field Values

RAW

public static final int RAW
Raw IP packets.

See Also:
Constant Field Values

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.

See Also:
Constant Field Values

MASK

public static final int MASK
IP protocol mask.

See Also:
Constant Field Values