[pkg-fso-commits] [SCM] FSO frameworkd Debian packaging branch, master, updated. milestone5.1
Michael 'Mickey' Lauer
mickey at vanille-media.de
Sat Jun 6 12:21:45 UTC 2009
The following commit has been merged in the master branch:
commit 4da280eb3753afa10c2b47b7c215a1fddb78ddcb
Author: Michael 'Mickey' Lauer <mickey at vanille-media.de>
Date: Fri Feb 13 09:21:51 2009 +0100
tools: add dump-netlink
diff --git a/setup.py b/setup.py
index 0ebd710..710aa25 100644
--- a/setup.py
+++ b/setup.py
@@ -13,7 +13,7 @@ packages = [ x[0] for x in os.walk( "framework" ) ]
setup(
name = "The FreeSmartphone Framework Daemon",
- version = "0.8.4.9",
+ version = "0.8.5.1",
author = "Michael 'Mickey' Lauer et. al.",
author_email = "mlauer at vanille-media.de",
url = "http://www.freesmartphone.org",
@@ -22,7 +22,7 @@ setup(
# ],
#cmdclass = {'build_ext': build_ext},
packages = packages,
- scripts = [ "framework/frameworkd", "tools/cli-framework" ],
+ scripts = [ "framework/frameworkd", "tools/cli-framework", "tools/dump-netlink" ],
data_files = [
("../../etc/dbus-1/system.d", ["etc/dbus-1/system.d/frameworkd.conf"] ),
("../../etc/freesmartphone/opreferences/schema/", ["etc/freesmartphone/opreferences/schema/phone.yaml"]),
diff --git a/tools/dump-netlink b/tools/dump-netlink
new file mode 100755
index 0000000..f29de58
--- /dev/null
+++ b/tools/dump-netlink
@@ -0,0 +1,19 @@
+#!/usr/bin/env python
+# -*- coding: UTF-8 -*-
+"""
+Minimal Netlink Message Dumper
+(C) 2008 Michael 'Mickey' Lauer <mlauer at vanille-media.de>
+GPLv2 or later
+"""
+import pprint
+pp = pprint.PrettyPrinter( indent=4 )
+
+from framework.cxnet.netlink.rtnl import *
+p = rtnl_msg_parser()
+s = rtnl_socket( groups=0xff )
+
+while True:
+ len, msg = s.recv()
+ pp.pprint( p.parse( msg ) )
+
+
--
FSO frameworkd Debian packaging
More information about the pkg-fso-commits
mailing list