SomeIPPacket

public class SomeIPPacket

SOME-IP Paket follows the AUTOSAR Standards and Definitions.

Fields

ERROR

public static final int ERROR

MESSAGE-TYPE 81(hex) = Error

E_MALFORMED_MESSAGE

public static final int E_MALFORMED_MESSAGE

ERROR-CODE 9 = Malformed message

E_NOT_OK

public static final int E_NOT_OK

ERROR-CODE 1 = NOT OK

E_NOT_REACHABLE

public static final int E_NOT_REACHABLE

ERROR-CODE 5 = Not Reachable

E_NOT_READY

public static final int E_NOT_READY

ERROR-CODE 4 = Not Ready

E_OK

public static final int E_OK

ERROR-CODE 0 = OK

E_TIMEOUT

public static final int E_TIMEOUT

ERROR-CODE 6 = Timeout

E_UNKNOWN_METHOD

public static final int E_UNKNOWN_METHOD

ERROR-CODE 3 = Methon unknown

E_UNKNOWN_SERVICE

public static final int E_UNKNOWN_SERVICE

ERROR-CODE 2 = Service unkown

E_WRONG_INTERFACE_VERSION

public static final int E_WRONG_INTERFACE_VERSION

ERROR-CODE 8 = Wrong Interface Version

E_WRONG_PROTOCOL_VERSION

public static final int E_WRONG_PROTOCOL_VERSION

ERROR-CODE 7 = Wrong Protocol Version

INTERFACE

public static final int INTERFACE

Interface Version is set to 1.

NOTIFICATION

public static final int NOTIFICATION

MESSAGE-TYPE 2 = Notification

REQUEST

public static final int REQUEST

MESSAGE-TYPE 0 = Request

REQUEST_NO_RETURN

public static final int REQUEST_NO_RETURN

MESSAGE-TYPE 1 = Request_No_Return (Fire and Forget)

RESPONSE

public static final int RESPONSE

MESSAGE-TYPE 80(hex) = Response

VERSION

public static final int VERSION

Protocol Version is set to 1, as defined in the standard.

clientID

int clientID

SOME-IP Header Field: client ID - 1. Part of request ID

dstIP

int dstIP

Destination IP Address (From the IP-Header)

dstMAC

long dstMAC

Destnation MAC Address (From the Ethernet-Header)

dstPort

int dstPort

Destination Port (From the UDP-Header)

interfaceVersion

int interfaceVersion

SOME-IP Header Field: interface version

length

int length

SOME-IP Header Field: Length of the SOME-IP paket (payload + header, header excl. messageID, requestID, length)

methodEventFlag

int methodEventFlag

SOME-IP Header Field: First Bit of method ID

methodID

int methodID

SOME-IP Header Field: method ID - 2. Part of message ID

protocolVersion

int protocolVersion

SOME-IP Header Field: protocol version

requestID

int requestID

SOME-IP Header Field: request ID

returnCode

int returnCode

SOME-IP Header Field: return/error code

serviceID

int serviceID

SOME-IP Header Field: service ID - 1. Part of message ID

sessionID

int sessionID

SOME-IP Header Field: session ID - 2. Part of request ID

srcIP

int srcIP

Source IP Address (From the IP-Header)

srcMAC

long srcMAC

Source MAC Address. (From the Ethernet-Header)

srcPort

int srcPort

Source Port (From the UDP-Header)

timestamp

long timestamp

Timestamp of the SOME-IP Paket. (.pcap Information)

type

int type

SOME-IP Header Field: message type

Constructors

SomeIPPacket

public SomeIPPacket(PcapPacket pkt, Ethernet ether, Ip4 ip, Udp udp)

Generates the complete SOME-Paket as defined above.

Return:The SomeIP-Paket with SomeIP-Header definitions.

Methods

getClientID

public int getClientID()

Getter-Method, required for Esper.

getDstIP

public int getDstIP()

Getter-Method, required for Esper.

getDstMAC

public long getDstMAC()

Getter-Method, required for Esper.

getDstPort

public int getDstPort()

Getter-Method, required for Esper.

getInterfaceVersion

public int getInterfaceVersion()

Getter-Method, required for Esper.

getLength

public int getLength()

Getter-Method, required for Esper.

getMethodID

public int getMethodID()

Getter-Method, required for Esper.

getProtocolVersion

public int getProtocolVersion()

Getter-Method, required for Esper.

getRequestID

public int getRequestID()

Getter-Method, required for Esper.

getReturnCode

public int getReturnCode()

Getter-Method, required for Esper.

getServiceID

public int getServiceID()

Getter-Method, required for Esper.

getSessionID

public int getSessionID()

Getter-Method, required for Esper.

getSrcIP

public int getSrcIP()

Getter-Method, required for Esper.

getSrcMAC

public long getSrcMAC()

Getter-Method, required for Esper.

getSrcPort

public int getSrcPort()

Getter-Method, required for Esper.

getTimestamp

public long getTimestamp()

Getter-Method, required for Esper.

getType

public int getType()

Getter-Method, required for Esper.

methodEventFlag

public int methodEventFlag()

Getter-Method, required for Esper.

print

public void print()

Printer Method for a SomeIP-Paket.