Skip to content

Instantly share code, notes, and snippets.

#!/bin/sh /etc/rc.common
# Copyright (C) 2010-2015 OpenWrt.org
START=99
USE_PROCD=1
LIST_SEP="
"
append_params() {
#!/bin/sh /etc/rc.common
# Copyright (C) 2010-2015 OpenWrt.org
START=99
USE_PROCD=1
LIST_SEP="
"
append_params() {
.file 1 "bw.c"
.section .mdebug.abi32
.previous
.nan legacy
.module softfloat
.module oddspreg
.abicalls
.option pic0
.text
#APP
# 1 "bw.c"
# 1 "<built-in>"
#define __STDC__ 1
#define __STDC_VERSION__ 201710L
#define __STDC_UTF_16__ 1
#define __STDC_UTF_32__ 1
#define __STDC_HOSTED__ 1
#define __GNUC__ 9
#define __GNUC_MINOR__ 2
#define __GNUC_PATCHLEVEL__ 0
From 524ed79355e6ba0375e5711840a8cc0ea1df50b5 Mon Sep 17 00:00:00 2001
From: Arjen de Korte <build+github@de-korte.org>
Date: Fri, 15 Mar 2019 10:17:32 +0100
Subject: [PATCH] Add support for openssl-1.1.0 (#504)
* Add support for openssl-1.1.0
* Allow TLSv1 and higher (not just TLSv1)
* Fix check for empty string
/home/mangix/devstuff/openwrt/build_dir/target-mips_24kc_musl/umdns-2018-01-02-78974417/dns.c:
In function 'dns_consume_question':
/home/mangix/devstuff/openwrt/build_dir/target-mips_24kc_musl/umdns-2018-01-02-78974417/dns.c:261:2:
error: converting a packed 'struct dns_question' pointer (alignment 1)
to a 'uint16_t' {aka 'short unsigned int'} pointer (alignment 2) may
result in an unaligned pointer value
[-Werror=address-of-packed-member]
261 | uint16_t *swap = (uint16_t *) q;
| ^~~~~~~~
In file included from
--- a/dcw/controller.cxx
+++ b/dcw/controller.cxx
@@ -195,7 +195,7 @@ void Controller::OnStationUnjoin(const MacAddress& primaryMacAddr, const Message
//remove any channel bondings matching the provided data channel mac addresses
for (unsigned i = 0; i < m.data_macaddr_count; i++) {
const ::dcw::MacAddress dcaddr(m.data_macaddrs[i]);
- const ::dcw::TrafficPolicy::DataChannelMap::iterator dcmEntry = state.policy.dataChannels.find(dcaddr);
+ ::dcw::TrafficPolicy::DataChannelMap::iterator dcmEntry = state.policy.dataChannels.find(dcaddr);
if (dcmEntry == state.policy.dataChannels.end()) continue;
if (dcmEntry->second == NULL) {
root@OpenWrt:~# dmesg | grep random
[ 0.000000] random: get_random_bytes called from start_kernel+0xa8/0x4f8 with crng_init=0
[ 3.359913] random: fast init done
[ 11.988240] random: crng init done
OpenWrt-libtool: compile: powerpc-openwrt-linux-musl-gcc -DHAVE_CONFIG_H -I. -I.. -I../json -I/home/mangix/devstuff/openwrt/staging_dir/target-powerpc_8540_musl/usr/include -I/home/mangix/devstuff/openwrt/staging_dir/target-powerpc_8540_musl/include -I/home/mangix/devstuff/openwrt/staging_dir/toolchain-powerpc_8540_gcc-9.1.0_musl/usr/include -I/home/mangix/devstuff/openwrt/staging_dir/toolchain-powerpc_8540_gcc-9.1.0_musl/include/fortify -I/home/mangix/devstuff/openwrt/staging_dir/toolchain-powerpc_8540_gcc-9.1.0_musl/include -D_GNU_SOURCE -Wall -Werror -fno-builtin -fno-strict-aliasing -fomit-frame-pointer -funroll-loops -pipe -I../bstring -DDEFCHILLICONF=\"/etc/chilli.conf\" -DDEFPIDFILE=\"/var/run/chilli.pid\" -DDEFSTATEDIR=\"/var/run\" -DSBINDIR=\"/usr/sbin\" -Os -pipe -mcpu=8540 -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -fmacro-prefix-map=/home/mangix/devstuff/openwrt/build_dir/target-powerpc_8540_musl/coova-chilli-1.4=coova-chilli
/home/mangix/devstuff/openwrt/build_dir/target-powerpc_8540_musl/fizz-2019.06.10.00/fizz/record/RecordLayer.cpp: In function 'fizz::Param fizz::parse(fizz::Buf, fizz::Buf) [with T = fizz::ServerHello; fizz::Param = boost::variant<fizz::ClientHello, fizz::ServerHello, fizz::EndOfEarlyData, fizz::HelloRetryRequest, fizz::EncryptedExtensions, fizz::CertificateRequest, fizz::CompressedCertificate, fizz::CertificateMsg, fizz::CertificateVerify, fizz::Finished, fizz::NewSessionTicket, fizz::KeyUpdate, fizz::Alert, fizz::CloseNotify, fizz::Accept, fizz::Connect, fizz::AppData, fizz::AppWrite, fizz::EarlyAppWrite, fizz::WriteNewSessionTicket>; fizz::Buf = std::unique_ptr<folly::IOBuf>]':
/home/mangix/devstuff/openwrt/build_dir/target-powerpc_8540_musl/fizz-2019.06.10.00/fizz/record/RecordLayer.cpp:92:21: error: redundant move in return statement [-Werror=redundant-move]
92 | return std::move(hrr);
| ~~~~~~~~~^~~~~
/home/mangix/devstuff/openwrt/build_dir/target-powerpc_8540_musl/fizz-2019.06.10