From 0611afc41d6d1f21c558e73fb95e959f02153bc5 Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Tue, 3 Oct 2023 05:26:46 +0200 Subject: lib: Remove pid from flow struct The pid of the N-1 IPCP process was needlessly stored in the flow struct. We only need it to open the right shared memory maps, which is done when the flow is created. Signed-off-by: Dimitri Staessens Signed-off-by: Sander Vrijders --- src/lib/dev.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/lib/dev.c b/src/lib/dev.c index 02f9d3f9..55fc3575 100644 --- a/src/lib/dev.c +++ b/src/lib/dev.c @@ -104,8 +104,6 @@ struct flow { struct crypt_info crypt; - pid_t pid; - struct timespec snd_act; struct timespec rcv_act; @@ -386,7 +384,6 @@ static void flow_clear(int fd) memset(&ai.flows[fd], 0, sizeof(ai.flows[fd])); ai.flows[fd].flow_id = -1; - ai.flows[fd].pid = -1; } static void flow_fini(int fd) @@ -471,7 +468,6 @@ static int flow_init(int flow_id, flow->flow_id = flow_id; flow->oflags = FLOWFDEFAULT; - flow->pid = pid; flow->part_idx = NO_PART; flow->qs = qs; flow->snd_act = now; -- cgit v1.2.3