-
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.
v0.1.3 Added five new functions, libnl fixes
- Loading branch information
wraith-wireless
committed
Jun 16, 2016
1 parent
a397641
commit cee9f7f
Showing
11 changed files
with
371 additions
and
203 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 |
---|---|---|
@@ -0,0 +1,92 @@ | ||
PyRIC CHANGES | ||
|
||
v 0.0.2 to 0.1.0 | ||
o added ifconfig/iwconfig functions to pyw | ||
o reworked exception handling | ||
- all exceptions from libnl, libio & pyw are pyric.error | ||
- pyw will allow pyric to pass through | ||
- reworked errorcodes to derive from errno | ||
o added _iostub_, _nlstub_ and reworked traditiona commands to utilize these | ||
o finished porting nl80211_h and nl80211_c (for attribute policies) | ||
o pyw no longer provides familyid as a public function, rather it now uses a | ||
private global value for the nl80211 family id and will instantiate it one | ||
time only. In this way, callers do not not have to worry about retrieving and | ||
passing it | ||
o regdom get & set implemented | ||
o info implemented | ||
o removed radio/Radio class (shouldn't be the responsibility of this) | ||
o added channels.py (provides channel/freq functions) | ||
o added RFI page for notes/observations/questions | ||
o changed utils.py to device.py | ||
o updated libnl | ||
o added channel set & get | ||
- channel get only works when device is associated | ||
- channel set only works when card is in monitor mode and all other interfaces | ||
have been deleted | ||
o added device add & delete | ||
o rewrote pyw function to handle one-time & persistent functions using a | ||
single function interface for each command | ||
o added Card class and wrote functions to handle it in pyw | ||
o implemented basic help functionality (for nl80211) | ||
o added monitor flag(s) support in devadd | ||
o began work on a user guide | ||
o added nested attribute handling | ||
o added partial phyinfo handles all but supported channels/bands | ||
o fixed bugs in devinfo and phyinfo | ||
o added setup.py and required files | ||
o at least one card (ath9k_htc) has an unknown supported command, added a | ||
wrapper around the list IFTYPES to handle commands not listed | ||
o libnl: attribute related i.e. nla_* moved out of GENLMsg class and made as | ||
standalone functions | ||
o in pyw | ||
- added modeset/modeget in pyw | ||
- readded freqset in pyw | ||
- added devcmds in pyw | ||
- annotated (in comments) if fcts needed root privileges | ||
- added functions to get/set ip address, netmask and broadcast | ||
- fixed PEP8 errors | ||
- added function pulling supported freqs out NL80211_ATTR_WIPHY_BANDS | ||
* ATT using _getfreqs_ which attempts to find the packed version of every | ||
freq | ||
* nl80211_c.nl80211_parse_freqs works but is slower than _getfreqs_ and | ||
uses several hacks which may make it invalid for certain cards | ||
- added 4.9GHz frequencies to channels.py | ||
- fixed _validmac_ to validate both uppercase & lowercase hex characters | ||
- added devfreqs, devchs | ||
o unittest completed 61 tests ran in 5.360s | ||
o added rfkill (still working on it) | ||
o production release | ||
|
||
v 0.1.1 - 0.1.2 | ||
desc: wireless nic library: wireless radio identification, manipulation, enumeration | ||
includes: /nlhelp /lib /net /utils pyw 0.1.2 | ||
changes: | ||
o restructured hierarchy | ||
- renamed device to hardware | ||
o added mac address related functions to hardware | ||
o split rfkill into functions file and definition file | ||
o added block/unblock to pyw | ||
o updated pyw to handle the newest version of libnl.py's processing of nested | ||
attributes | ||
|
||
v 0.1.3 | ||
o added this File, a revision history | ||
o fixed issues | ||
- # 13: Failed to process commands.help | ||
- # 14: nlmsg_fromstream can incorrectly return error based on stream size | ||
- # 11: MemoryError on nla_parse_nested() | ||
o added nla_put_flag to libnl | ||
o identified (unopened issue) and fixed error with ouifetch having invalid path | ||
of default oui file | ||
o moved parseoui from hardware to ouifetch renaming to parse | ||
o removed ouifetch execution ability - parse and fetch must be called w/in | ||
python console. Will eventually add this capability as as top-level program | ||
o added ieee80211_h.py to net/wireless | ||
o added supported ciphers to pyw.phyinfo dict | ||
o added functions | ||
- pwrsaveset and pwrsaveget | ||
- covclassset | ||
- retryshortset | ||
- retrylongset | ||
- rtsthreshset | ||
- fragthreshset |
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
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 |
---|---|---|
|
@@ -19,7 +19,7 @@ | |
% | ||
% __name__ = 'User Guide' | ||
%__license__ = 'GPLv3' | ||
%__version__ = '0.0.3' | ||
%__version__ = '0.0.4' | ||
%__date__ = 'June 2016' | ||
%__author__ = 'Dale Patterson' | ||
%__maintainer__ = 'Dale Patterson' | ||
|
@@ -73,7 +73,7 @@ | |
basicstyle=\footnotesize | ||
} | ||
|
||
\title{\includegraphics[scale=1]{logo}\\ PyRIC v0.1.2: User Manual} | ||
\title{\includegraphics[scale=1]{logo}\\ PyRIC v0.1.3: User Manual} | ||
\author{Dale V. Patterson\\ [email protected]} | ||
|
||
\begin{document} | ||
|
@@ -687,6 +687,7 @@ \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 | ||
|
@@ -745,10 +746,20 @@ \subsection{Functions} | |
\item block(card): (rfkill block <rfkill\_idx>) type: N/A, soft blocks card | ||
\item unblock(card): (rfkill unblock <rfkill\_idx>) type: N/A, removes the soft | ||
block on card | ||
\item getpwrsave(card,[nlsock]) (iw dev card.<dev> get power\_save) type: netlink | ||
\item pwrsaveget(card,[nlsock]) (iw dev card.<dev> get power\_save) type: netlink | ||
get card's power save state True = on, False = off | ||
\item setpwrsave(card,on,[nlsock]) (iw dev card.<dev> set power\_save <on>) type: | ||
\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 covclassset(card,cc,[nlsock]) (iw phy card.<phy> set coverage <cc>) type: | ||
netlink set card's coverage class | ||
\item retryshortset(card,lim,[nlsock]) (iw phy card.<phy> set retry short <lim>) | ||
type:netlink set card's retry short limit | ||
\item retrylongset(card,lim,[nlsock]) (iw phy card.<phy> set retry long <lim>) | ||
type:netlink set card's retry long limit | ||
\item rtsthreshset(card,thresh,[nlsock]) (iw phy card.<phy> set rts <thresh>) type: | ||
netlink set card's RTS 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, | ||
netmask and broadcast address of card | ||
\item inetset(card,ipaddr,netmask,broadcast,[iosock]): (ifconfig card/<dev> <ipaddr> | ||
|
@@ -1069,7 +1080,7 @@ \subsection{Functions} | |
\end{enumerate} | ||
|
||
\section{Copyright and License}\label{sec:copy} | ||
PYRIC: Python Radio Interface Controller v0.1.0\\ | ||
PYRIC: Python Radio Interface Controller v0.1.3\\ | ||
|
||
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.