Skip to content

Commit da9ba27

Browse files
Minor build document improvments (ntop#926)
* Improve some build documentation * Address build failure
1 parent bca9968 commit da9ba27

File tree

3 files changed

+17
-4
lines changed

3 files changed

+17
-4
lines changed

doc/Building.md

+8
Original file line numberDiff line numberDiff line change
@@ -220,3 +220,11 @@ destination.
220220

221221
This is not a good way to produce binaries for embedded environments (like OpenWRT)
222222
as they will often use a different libc environment.
223+
224+
# N2N Packages
225+
226+
There are also some example package build recipes included with the source.
227+
228+
- [Debian](../packages/debian/README)
229+
- [RPM](../packages/rpm)
230+
- [OpenWRT](../packages/openwrt/README.md)

packages/openwrt/README.md

+8-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,14 @@
22

33
This instructions explain how to build an OpenWRT .ipk package for n2n.
44

5-
Before going on, it is required to have a working cross-compiling build
6-
environment for the OpenWRT version installed into your device. This usually
7-
comes down to the following steps:
5+
You will either need to build a full OpenWRT buildchain (See the github
6+
action for building openwrt.yml for some example steps) or have a working
7+
cross-compiling build environment for the OpenWRT version installed into
8+
your device.
9+
10+
### Downloading a cross-compiling build environment
11+
12+
This usually comes down to the following steps:
813

914
1. Download and extract the SDK toolchain for your device. The toolchain
1015
must match the *exact* OpenWRT version installed in your device. Toolchain

src/edge.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1080,7 +1080,7 @@ int main (int argc, char* argv[]) {
10801080
conf.federation_public_key = calloc(1, sizeof(n2n_private_public_key_t));
10811081
if(conf.federation_public_key) {
10821082
traceEvent(TRACE_WARNING, "using default federation public key; FOR TESTING ONLY, usage of a custom federation name and key (-P) is highly recommended!");
1083-
generate_private_key(*(conf.federation_public_key), FEDERATION_NAME + 1);
1083+
generate_private_key(*(conf.federation_public_key), &FEDERATION_NAME[1]);
10841084
generate_public_key(*(conf.federation_public_key), *(conf.federation_public_key));
10851085
}
10861086
}

0 commit comments

Comments
 (0)