laforge has submitted this change. ( https://gerrit.osmocom.org/c/osmo-tetra/+/28592 )
Change subject: Created tuntap.h to allow for proper use of tun_alloc in tetra_llc.c
......................................................................
Created tuntap.h to allow for proper use of tun_alloc in tetra_llc.c
Change-Id: If920c15e4dafb48d5df70ce20532ecb19bd01ee3
---
M src/tetra_llc.c
A src/tuntap.h
2 files changed, 7 insertions(+), 0 deletions(-)
Approvals:
Jenkins Builder: Verified
laforge: Looks good to me, approved; Verified
fixeria: Looks good to me, approved
dexter: Looks good to me, but someone else must approve
diff --git a/src/tetra_llc.c b/src/tetra_llc.c
index 432f5a7..045b8df 100644
--- a/src/tetra_llc.c
+++ b/src/tetra_llc.c
@@ -28,6 +28,7 @@
#include <osmocom/core/bits.h>
#include "tetra_llc_pdu.h"
+#include "tuntap.h"
static int tun_fd = -1;
diff --git a/src/tuntap.h b/src/tuntap.h
new file mode 100644
index 0000000..728002b
--- /dev/null
+++ b/src/tuntap.h
@@ -0,0 +1,6 @@
+#ifndef TUNTAP_H
+#define TUNTAP_H
+
+int tun_alloc(char *dev);
+
+#endif
--
To view, visit https://gerrit.osmocom.org/c/osmo-tetra/+/28592
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-tetra
Gerrit-Branch: master
Gerrit-Change-Id: If920c15e4dafb48d5df70ce20532ecb19bd01ee3
Gerrit-Change-Number: 28592
Gerrit-PatchSet: 1
Gerrit-Owner: wbokslag <w.bokslag(a)midnightblue.nl>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: dexter <pmaier(a)sysmocom.de>
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-MessageType: merged
Attention is currently required from: wbokslag.
laforge has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-tetra/+/28592 )
Change subject: Created tuntap.h to allow for proper use of tun_alloc in tetra_llc.c
......................................................................
Patch Set 1: Verified+1
--
To view, visit https://gerrit.osmocom.org/c/osmo-tetra/+/28592
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-tetra
Gerrit-Branch: master
Gerrit-Change-Id: If920c15e4dafb48d5df70ce20532ecb19bd01ee3
Gerrit-Change-Number: 28592
Gerrit-PatchSet: 1
Gerrit-Owner: wbokslag <w.bokslag(a)midnightblue.nl>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: dexter <pmaier(a)sysmocom.de>
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Attention: wbokslag <w.bokslag(a)midnightblue.nl>
Gerrit-Comment-Date: Tue, 19 Jul 2022 13:48:55 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
Attention is currently required from: wbokslag.
laforge has removed a vote from this change. ( https://gerrit.osmocom.org/c/osmo-tetra/+/28591 )
Change subject: ensure zero termination of tun device name
......................................................................
Removed Verified-1 by Jenkins Builder (1000002)
--
To view, visit https://gerrit.osmocom.org/c/osmo-tetra/+/28591
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-tetra
Gerrit-Branch: master
Gerrit-Change-Id: I4b783c6b98ddfb30a4ca4532ef8cffa8e5f3a12f
Gerrit-Change-Number: 28591
Gerrit-PatchSet: 1
Gerrit-Owner: wbokslag <w.bokslag(a)midnightblue.nl>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: dexter <pmaier(a)sysmocom.de>
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Attention: wbokslag <w.bokslag(a)midnightblue.nl>
Gerrit-MessageType: deleteVote
Attention is currently required from: wbokslag.
laforge has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-tetra/+/28592 )
Change subject: Created tuntap.h to allow for proper use of tun_alloc in tetra_llc.c
......................................................................
Patch Set 1: Code-Review+2
(1 comment)
File src/tuntap.h:
https://gerrit.osmocom.org/c/osmo-tetra/+/28592/comment/7a5f8af5_ea1fc532
PS1, Line 1: #ifndef TUNTAP_H
> > I think "#pragma once" should be used for all code developed in the last decade, but it's not crit […]
ack
--
To view, visit https://gerrit.osmocom.org/c/osmo-tetra/+/28592
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-tetra
Gerrit-Branch: master
Gerrit-Change-Id: If920c15e4dafb48d5df70ce20532ecb19bd01ee3
Gerrit-Change-Number: 28592
Gerrit-PatchSet: 1
Gerrit-Owner: wbokslag <w.bokslag(a)midnightblue.nl>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: dexter <pmaier(a)sysmocom.de>
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Attention: wbokslag <w.bokslag(a)midnightblue.nl>
Gerrit-Comment-Date: Tue, 19 Jul 2022 13:48:33 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: wbokslag <w.bokslag(a)midnightblue.nl>
Comment-In-Reply-To: laforge <laforge(a)osmocom.org>
Gerrit-MessageType: comment