Skip to content

Instantly share code, notes, and snippets.

Rosen Penev neheb

Block or report user

Report or block neheb

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:8b6223d52437b52a29e360220946deed
--- 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) {
View gist:56516a699a90f012d277c572d09e4198
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
View gist:930695e8b7b6e8f0e45d67f0a038ad33
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
View gist:61312a8f1a30ae1168f07cb2f7929c49
/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
View gist:d6aeb9a3123d75ad8bd0848b1903f514
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for arc-openwrt-linux-strip... arc-openwrt-linux-uclibc-strip
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for style of include used by make... GNU
checking for arc-openwrt-linux-gcc... arc-openwrt-linux-uclibc-gcc
checking whether the C compiler works... yes
View gist:7b4e29ff2b3e2bcaedf9d5947e405248
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for arc-openwrt-linux-strip... arc-openwrt-linux-uclibc-strip
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for style of include used by make... GNU
checking for arc-openwrt-linux-gcc... arc-openwrt-linux-uclibc-gcc
checking whether the C compiler works... yes
View gist:997e33ae81107f7ebccc3b032189d02c
diff --git a/folly/io/async/ssl/OpenSSLUtils.cpp b/folly/io/async/ssl/OpenSSLUtils.cpp
index 0504cf8..a9c2775 100644
--- a/folly/io/async/ssl/OpenSSLUtils.cpp
+++ b/folly/io/async/ssl/OpenSSLUtils.cpp
@@ -155,8 +155,12 @@ static std::unordered_map<uint16_t, std::string> getOpenSSLCipherNames() {
SSL_CTX* ctx = nullptr;
SSL* ssl = nullptr;
+#if OPENSSL_VERSION_NUMBER < 0x10100000L
const SSL_METHOD* meth = SSLv23_server_method();
View gist:4f26199722356be6b7966ee273579b95
Port 0: MAC 2c:f0:a2:dd:bc:d0
Port 0: MAC 00:c0:ca:95:87:6c
Port 0: MAC 18:a6:f7:78:86:e8
Port 1: MAC 00:17:10:8d:ff:09
Port 5: MAC 9c:ad:ef:63:d5:05
Port 6: MAC 18:a6:f7:78:86:e9
View gist:3d9e4cbf966f8487114df19b49f28214
diff --git a/drivers/mmc/host/mtk-sd.c b/drivers/mmc/host/mtk-sd.c
index 6457a7d8880f..01ad733da8b2 100644
--- a/drivers/mmc/host/mtk-sd.c
+++ b/drivers/mmc/host/mtk-sd.c
@@ -438,11 +438,24 @@ static const struct mtk_mmc_compatible mt2712_compat = {
.enhance_rx = true,
};
+static const struct mtk_mmc_compatible mt7620_compat = {
+ .clk_div_bits = 8,
View gist:5e340598e2e9c31939a3570d106816aa
--- a/block.h
+++ b/block.h
@@ -34,6 +34,7 @@ class Block
{ if( size_ < 0 || size_ > LLONG_MAX - pos_ ) size_ = LLONG_MAX - pos_; }
public:
+ Block() {} // default constructor
Block( const long long p, const long long s ) : pos_( p ), size_( s )
{ if( p < 0 ) { pos_ = 0; if( s > 0 ) size_ -= std::min( s, -p ); }
fix_size(); }
You can’t perform that action at this time.