From 3e233678f13bc175e652ac0ea4a038054771ee97 Mon Sep 17 00:00:00 2001 From: Matej Perina Date: Thu, 14 Sep 2017 16:14:14 +0200 Subject: jvpp: add vpe_pid to ConnectionInfo ConnectionInfo now contains pid of vpp process pid is aquired through initial control ping during connection creation Change-Id: I68457770e07792d11c47bc7d8cbd0d2fd722d9b4 Signed-off-by: Matej Perina --- src/vpp-api/java/jvpp-registry/io/fd/vpp/jvpp/VppJNIConnection.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/vpp-api/java/jvpp-registry/io') diff --git a/src/vpp-api/java/jvpp-registry/io/fd/vpp/jvpp/VppJNIConnection.java b/src/vpp-api/java/jvpp-registry/io/fd/vpp/jvpp/VppJNIConnection.java index 53eaa790778..6a414f36b88 100644 --- a/src/vpp-api/java/jvpp-registry/io/fd/vpp/jvpp/VppJNIConnection.java +++ b/src/vpp-api/java/jvpp-registry/io/fd/vpp/jvpp/VppJNIConnection.java @@ -135,11 +135,13 @@ public final class VppJNIConnection implements VppConnection { public final long queueAddress; public final int clientIndex; public final int status; // FIXME throw exception instead + public final int pid; - public ConnectionInfo(long queueAddress, int clientIndex, int status) { + public ConnectionInfo(long queueAddress, int clientIndex, int status, int pid) { this.queueAddress = queueAddress; this.clientIndex = clientIndex; this.status = status; + this.pid = pid; } } -- cgit 1.2.3-korg