Skip to content

Instantly share code, notes, and snippets.

Ideen zum l3roamd

Das mit den unbekannten Routen zu den Zielen

Clientnetz auf ein tun-Device routen

Gefundene Routen sind spezifischer und gehen direkt zum peer

Daemon auf tun-Device findet ansonsten die Route und wartet, dass sie eingetragen wird

  • Nachfrage nach Route per Broadcast ähnlich AHCP
  • jeweil Broadcasts 3x senden
  • später irgendwie per Multicast optimieren

wenn vorhanden, wird das Paket nochmal gesendet

  • über das tun interface
# python2
# benoetigt: pylut, colorsys
import gtk
import socket
import math
import colorsys
from array import array
from time import sleep
from pylut import *
@tcatm
tcatm / 0.7.1.md
Last active September 17, 2015 15:14
layout title
post
Firmware 0.7.1

Wir freuen uns euch eine neue Firmware Version bereitstellen zu können. Da dies ein Bugfixrelease ist und wir anscheinend bei der letzten Firmware 0.7 vergessen haben Releasenotes zu schreiben, möchten wir das hier nochmal nachholen.

#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <json.h>
static json_object *neighbours(void) {
struct json_object *obj = json_object_new_object();
FILE *f;
diff --git a/package/gluon-announced/files/usr/lib/lua/gluon/announced.lua b/package/gluon-announced/files/usr/lib/lua/gluon/announced.lua
index aa6da3d..d658968 100644
--- a/package/gluon-announced/files/usr/lib/lua/gluon/announced.lua
+++ b/package/gluon-announced/files/usr/lib/lua/gluon/announced.lua
@@ -1,17 +1,21 @@
local announce = require 'gluon.announce'
local deflate = require 'deflate'
local json = require 'luci.jsonc'
+local nixio = require 'nixio'
+local fs = require 'nixio.fs'
[ 650.470000] fw3 invoked oom-killer: gfp_mask=0x201da, order=0, oom_score_adj=0
[ 650.470000] CPU: 0 PID: 3569 Comm: fw3 Not tainted 3.18.20 #9
[ 650.480000] Stack : 00000000 00000000 00000000 00000000 803d4292 00000031 00000000 00001bdf
00000001 00000000 80326d64 80380ba3 00000df1 803d34d0 819e72b8 00000000
00000000 00000000 00000000 800a3840 00000006 8008045c 00000000 00000000
8032a35c 8073fbbc 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
...
[ 650.520000] Call Trace:
[ 650.520000] [<800710f0>] show_stack+0x48/0x70
21:14:14 up 2 min, load average: 4.58, 1.43, 0.52
PID USER VSZ STAT COMMAND
1 root 1408 S /sbin/procd
2 root 0 SW [kthreadd]
3 root 0 SW [ksoftirqd/0]
4 root 0 SW [kworker/0:0]
5 root 0 SW< [kworker/0:0H]
6 root 0 RW [kworker/u2:0]
7 root 0 SW< [khelper]
code: a = 7; a * a - 7
VmPeak: 7608 kB
VmSize: 7600 kB
VmLck: 0 kB
VmPin: 0 kB
VmHWM: 772 kB
VmRSS: 772 kB
VmData: 340 kB
VmStk: 136 kB
# /usr/bin/respondd -g ff02::2:1001 -p 1001 -c 'return require("gluon.announced").handle_request' -i br-client -i br-wan -i ibss0 -i mesh0
Allocating 384 bytes
Allocating 192 bytes
Allocating 720 bytes
Allocating 32 bytes
Freeing 0 bytes
Allocating 64 bytes
Allocating 32 bytes
Freeing 0 bytes
Allocating 64 bytes
{
hostname_prefix = 'babel-',
site_name = 'Freifunk Lübeck Babel',
site_code = 'ffhl-babel',
opkg_repo = 'http://openwrt.draic.info/chaos_calmer/15.05-rc3/%S/packages',
prefix4 = '10.130.128.0/20',
prefix6 = '2001:67c:2d50:1001::/64',
timezone = 'CET-1CEST,M3.5.0,M10.5.0/3', -- Europe/Berlin