projects
/
vuplus_dvbapp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9519fb5
)
better netmask parsing
author
acid-burn
<acidburn@opendreambox.org>
Thu, 6 Nov 2008 10:06:45 +0000
(11:06 +0100)
committer
acid-burn
<acidburn@opendreambox.org>
Thu, 6 Nov 2008 10:06:45 +0000
(11:06 +0100)
lib/python/Components/Network.py
patch
|
blob
|
history
diff --git
a/lib/python/Components/Network.py
b/lib/python/Components/Network.py
index
8e9fc12
..
e317ef0
100755
(executable)
--- a/
lib/python/Components/Network.py
+++ b/
lib/python/Components/Network.py
@@
-74,7
+74,7
@@
class Network:
macRegexp = '[0-9]{2}\:[0-9]{2}\:[0-9]{2}\:[a-z0-9]{2}\:[a-z0-9]{2}\:[a-z0-9]{2}'
ipLinePattern = re_compile('inet ' + ipRegexp + '/')
ipPattern = re_compile(ipRegexp)
- netmaskLinePattern = re_compile(
'/' + netRegexp + ' brd '
)
+ netmaskLinePattern = re_compile(
ipRegexp + '/' + netRegexp
)
netmaskPattern = re_compile(netRegexp)
bcastLinePattern = re_compile(' brd ' + ipRegexp)
upPattern = re_compile('UP')