-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
WraithWireless
authored and
WraithWireless
committed
Jun 25, 2016
1 parent
c5323ea
commit ce18633
Showing
22 changed files
with
627 additions
and
306 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -113,4 +113,4 @@ ENV/ | |
.spyderproject | ||
|
||
# Rope project settings | ||
.ropeproject | ||
.ropeproject |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
PyRIC: Python Radio Interface Controller | ||
|
||
Python wireless library | ||
Copyright (C) 2016 Dale V. Patterson ([email protected]) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# PyRIC root Distribution directory | ||
# Do not import from this directory i.e from PyRIC import foobar | ||
# use pip ('sudo pip install PyRIC') to install or import from pyric | ||
# use pip ('sudo pip install PyRIC') or download latest tarbal to | ||
# install. Then execute from pyric import ffobar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
|
||
# PyRIC.bib for v 1.4 | ||
@Misc{libnl, | ||
Title = {Netlink Library (libnl)}, | ||
Author = {Thomas Graf}, | ||
|
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -73,7 +73,7 @@ | |
basicstyle=\footnotesize | ||
} | ||
|
||
\title{\includegraphics[scale=1]{logo}\\ PyRIC v0.1.3: User Manual} | ||
\title{\includegraphics[scale=1]{logo}\\ PyRIC v0.1.4: User Manual} | ||
\author{Dale V. Patterson\\ [email protected]} | ||
|
||
\begin{document} | ||
|
@@ -185,9 +185,10 @@ \subsection{Cards} | |
A Card is merely a wrapper around a tuple t = (phy index,device name,ifindex). | ||
Since the underlying Netlink calls sometimes require the physical index, sometimes | ||
the device name, and sometimes the ifindex, pyw functions\footnote{Not all functions | ||
accept a Card, the function pyw.devinfo() will accept either a Card or a dev and | ||
pyw.isinterface() only accepts a dev} take a Card object which doesn't require | ||
callers to know which identifier to use for each function. There are four primary methods to creating a Card: | ||
accept a Card, devinfo() will accept either a Card or a dev and devadd will accept | ||
either a Card or a physical index} take a Card object which doesn't require callers | ||
to know which identifier to use for each function. There are four primary methods | ||
to creating a Card: | ||
\begin{enumerate} | ||
\item \textbf{pyw.getcard} returns a Card object from a given dev, | ||
\item \textbf{pyw.devinfo} returns the dict info where info['card'] is the Card | ||
|
@@ -205,9 +206,9 @@ \subsection{Cards} | |
Keep in mind that any identifier (phy, dev, ifindex) can be invalidated outside | ||
of your control. Another program can rename your interface, that is change the | ||
dev without your knowledge. Depending on what functions are being used this may | ||
not be noticed right away as the phy will remain the same. Also, usb devices (if | ||
the usb is disconnected and reconnected) will have the same dev but the phy and | ||
ifindex will be different. | ||
not be noticed right away as the phy will remain the same. Also for usb devices, | ||
(if the usb is disconnected and reconnected) will have the same dev but the phy | ||
and ifindex will be different. | ||
|
||
\subsection{Benchmarks} | ||
PyRIC makes use of several "extensions" to speed up pyw functions: | ||
|
@@ -687,7 +688,6 @@ \section{API: pyw.py}\label{sec:pywapi} | |
\subsection{Constants} | ||
\begin{itemize} | ||
\item \textbf{\_FAM80211ID\_}: Global netlink family id of nl80211. Do not touch | ||
\item \textbf{\_MAXTHRESH\_}: defines limit for thresholds or 'off'. Do not touch | ||
\item \textbf{IFTYPES}: redefined (from nl80211\_h.py) interface modes | ||
\item \textbf{MNTRFLAGS}: redefined (from nl80211\_h.py) monitor mode flags | ||
\item \textbf{IPADDR}: Regular Expression for ip4 address validation | ||
|
@@ -753,14 +753,24 @@ \subsection{Functions} | |
get card's power save state True = on, False = off | ||
\item pwrsaveset(card,on,[nlsock]) (iw dev card.<dev> set power\_save <on>) type: | ||
netlink set card's power save state True = on, False = off | ||
\item covclassget(card,[nlsock]) (iw phy card.<phy> get coverage <cc>) type: | ||
netlink get card's coverage class | ||
\item covclassset(card,cc,[nlsock]) (iw phy card.<phy> set coverage <cc>) type: | ||
netlink set card's coverage class | ||
\item retryshortget(card,[nlsock]) (iw phy card.<phy> info | grep 'retry short') | ||
type:netlink get card's retry short limit | ||
\item retryshortset(card,lim,[nlsock]) (iw phy card.<phy> set retry short <lim>) | ||
type:netlink set card's retry short limit | ||
\item retrylongget(card,[nlsock]) (iw phy card.<phy> info | grep 'retry long') | ||
type:netlink get card's retry long limit | ||
\item retrylongset(card,lim,[nlsock]) (iw phy card.<phy> set retry long <lim>) | ||
type:netlink set card's retry long limit | ||
\item rtsthreshget(card,[nlsock]) (iw phy card.<phy> info | grep rts) type: | ||
netlink set card's RTS threshold | ||
\item rtsthreshset(card,thresh,[nlsock]) (iw phy card.<phy> set rts <thresh>) type: | ||
netlink set card's RTS threshold | ||
\item fragthreshget(card,[nlsock]) (iw phy card.<phy> info | grep frag) type: | ||
netlink get card's fragmentation threshold | ||
\item fragthreshset(card,thresh,[nlsock]) (iw phy card.<phy> set frag <thresh>) type: | ||
netlink set card's fragmentation threshold | ||
\item inetget(card,[iosock]): (ifconfig card.<dev>), type: ioctl, get ip4 address, | ||
|
@@ -824,9 +834,11 @@ \subsection{Functions} | |
\item \_ifindex\_(dev,[iosock]): returns dev's ifindex | ||
\item \_flagsget\_(dev,[iosock]): get's the dev's interface flags | ||
\item \_flagsset\_(dev,flags,[iosock]): set's the dev's interface flags | ||
\item \_getfreqs\_(band): returns a list of frequencies from the packed byte string | ||
band | ||
\item \_iftypes\_(i): returns the mode corresponding to i | ||
\item \_frequencies\_(band): returns a list of frequencies from the packed byte | ||
string band | ||
\item \_commands\_(command): converts the list of numeric commands to a list of | ||
commands as strings | ||
\item \_ciphers\_(cipher): returns a list of ciphers from the packed byte string | ||
cipher | ||
\item \_iostub\_(fct,*argv): ioctl stub function, calls fct with parameter list argv | ||
|
@@ -1085,7 +1097,7 @@ \subsection{Functions} | |
\end{enumerate} | ||
|
||
\section{Copyright and License}\label{sec:copy} | ||
PYRIC: Python Radio Interface Controller v0.1.3\\ | ||
PYRIC: Python Radio Interface Controller v0.1.4\\ | ||
|
||
Copyright (C) 2016 Dale V. Patterson ([email protected])\\ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.