diff options
author | Dimitri Staessens <dimitri@ouroboros.rocks> | 2023-10-03 05:26:46 +0200 |
---|---|---|
committer | Sander Vrijders <sander@ouroboros.rocks> | 2023-10-25 11:41:59 +0200 |
commit | 0611afc41d6d1f21c558e73fb95e959f02153bc5 (patch) | |
tree | eb9b4e4c9dc4314970cd8d4d3476891b5c5bb342 /src | |
parent | 669108f477f404b58364bec8a49712f25d05bfe2 (diff) | |
download | ouroboros-0611afc41d6d1f21c558e73fb95e959f02153bc5.tar.gz ouroboros-0611afc41d6d1f21c558e73fb95e959f02153bc5.zip |
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 <dimitri@ouroboros.rocks>
Signed-off-by: Sander Vrijders <sander@ouroboros.rocks>
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/dev.c | 4 |
1 files changed, 0 insertions, 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; |