Skip to content

Instantly share code, notes, and snippets.

View yanosz's full-sized avatar
Drawn by the tides of confusion

yanosz yanosz

Drawn by the tides of confusion
View GitHub Profile
*** errRun: ['grep', '-c', 'processor', '/proc/cpuinfo']
4
0*** Setting resource limits
*** errRun: ['which', 'mnexec']
/usr/bin/mnexec
0*** errRun: ['which', 'ifconfig']
/usr/sbin/ifconfig
0_popen ['mnexec', '-cd', 'env', 'PS1=\x7f', 'bash', '--norc', '--noediting', '-is', 'mininet:c0'] 29575*** c0 : ('unset HISTFILE; stty -echo; set +m',)
unset HISTFILE; stty -echo; set +m
*** c0 : ('echo A | telnet -e A 127.0.0.1 6653',)
#!/usr/bin/python
'This example shows how to create wireless link between two APs'
import sys
import thread
import threading
from time import sleep
from mininet.node import Controller, Ryu
root@daisy:/home/jan/src/mininet-wifi/examples# ./4address.py
*** errRun: ['grep', '-c', 'processor', '/proc/cpuinfo']
4
0*** Setting resource limits
*** Creating nodes
*** errRun: ['which', 'mnexec']
/usr/bin/mnexec
0*** errRun: ['which', 'ip', 'addr']
/usr/sbin/ip
1_popen ['mnexec', '-cd', 'env', 'PS1=\x7f', 'bash', '--norc', '--noediting', '-is', 'mininet:ap1'] 16280*** ap1 : ('unset HISTFILE; stty -echo; set +m',)
#!/usr/bin/python
import sys
import thread
import threading
from time import sleep
from mininet.node import Controller, Ryu
from mininet.node import RemoteController
#!/usr/bin/python
'This example creates a simple network topology with 1 AP and 2 stations'
import sys
from mininet.node import Controller
from mininet.log import setLogLevel, info
from mn_wifi.link import mesh
jan@ubuntu:~/wmediumd$ sudo make install
make all in wmediumd...
make[1]: Entering directory '/home/jan/wmediumd/wmediumd'
cc -g -std=gnu11 -Wall -Wextra -Wno-unused-parameter -O2 -DCONFIG_LIBNL30 -I/usr/include/libnl3 -DVERSION_STR="\"0.5\"" -c -o wmediumd.o wmediumd.c
wmediumd.c: In function ‘queue_frame’:
wmediumd.c:317:6: warning: unused variable ‘retries’ [-Wunused-variable]
int retries = 0;
^~~~~~~
wmediumd.c:315:6: warning: unused variable ‘difs’ [-Wunused-variable]
int difs = 2 * slot_time + sifs;
#include <fstream>
#include <iostream>
#include "ns3/core-module.h"
#include "ns3/network-module.h"
#include "ns3/internet-module.h"
#include "ns3/mobility-module.h"
#include "ns3/wifi-module.h"
#include "ns3/aodv-module.h"
#include "ns3/olsr-module.h"
#include "ns3/dsdv-module.h"
@yanosz
yanosz / chan-issue.cc
Created May 25, 2019 15:26
Scanning channels
#include <fstream>
#include <iostream>
#include "ns3/core-module.h"
#include "ns3/network-module.h"
#include "ns3/internet-module.h"
#include "ns3/mobility-module.h"
#include "ns3/wifi-module.h"
#include "ns3/aodv-module.h"
#include "ns3/olsr-module.h"
#include "ns3/dsdv-module.h"
include $(TOPDIR)/rules.mk
# Name, version and release number
# The name and version of your package are used to define the variable to point to the build directory of your package: $(PKG_BUILD_DIR)
PKG_NAME:=helloworld
PKG_VERSION:=1.0
PKG_RELEASE:=1
# Source settings (i.e. where to find the source codes)
# This is a custom variable, used below
OpenWRT-Node
=================================================
babel log
-------------------------------------------------
Received changes in kernel tables.
Netlink message: (msg -> "" 0),
My id 02:27:22:ff:fe:2e:41:53 seqno 38835
fdd3:5d16:b5dd:f045::/64 from ::/0 metric 0 (exported)