Difference between revisions of "Network Management"

From WebOS Internals
Jump to navigation Jump to search
(New page: There are lots of undocumented DBUS services for network management. Let's use this page to document them. Public bus: com.palm.firewall com.palm.netroute com.palm.bridge com.palm.n...)
 
Line 20: Line 20:
 
  com.palm.connectionmanager
 
  com.palm.connectionmanager
 
  com.palm.wifi
 
  com.palm.wifi
 +
 +
 +
PmNetConfigManager is the main service executable.  It starts com.palm.firewall, com.palm.netroute, com.palm.bridge, com.palm.nettools and com.palm.connectionmanager.
 +
 +
palm://com.palm.netroute/addNetIf { "ifName": "eth0", "networkTechnology": "wifi", "networkScope": "wan", "ipv4": { "ip": "0x1301a8c0", "netmask": "0x00ffffff", "gateway": "0x0101a8c0", "dns": [ "0x0101a8c0" ] }, "networkUsage": [ "other" ] }
 +
 +
CMINTERFACE=eth0
 +
CMNETWORKTECHTYPE=wifi
 +
CMSERVICES=0
 +
CMIPADDR=192.168.1.19
 +
CMNETMASK=255.255.255.0
 +
CMNETADDR=192.168.1.0
 +
CMBRDADDR=192.168.1.255
 +
CMPREFIXLEN=24
 +
CMDNSSERVERS=192.168.1.1
 +
CMDNSDOMAINS=
 +
CMROUTES=
 +
CMDEFGW=192.168.1.1
 +
 +
/etc/pmnetconfig/if-up
 +
 +
palm://com.palm.netroute/removeNetIf { "ifName": "eth0" }
 +
 +
palm://com.palm.netroute/removeNetIf { "ifName": "tun0" }
 +
 +
CMINTERFACE=tun0
 +
CMNETWORKTECHTYPE=vpn
 +
CMSERVICES=0
 +
CMIPADDR=192.168.1.19
 +
CMNETMASK=255.255.255.0
 +
CMNETADDR=192.168.1.0
 +
CMBRDADDR=192.168.1.255
 +
CMPREFIXLEN=24
 +
CMDNSSERVERS=192.168.1.1
 +
CMDNSDOMAINS=
 +
CMROUTES=
 +
CMDEFGW=192.168.1.1
 +
CMINTERFACENEXT=eth0
 +
CMDNSSERVERSNEXT=192.168.1.1
 +
 +
/etc/pmnetconfig/if-down

Revision as of 10:03, 28 December 2009

There are lots of undocumented DBUS services for network management.

Let's use this page to document them.

Public bus:
com.palm.firewall
com.palm.netroute
com.palm.bridge
com.palm.nettools
com.palm.connectionmanager
Private bus:
com.palm.firewall
com.palm.wan
com.palm.bluetooth
com.palm.wifi.supplicant
com.palm.netroute
com.palm.bridge
com.palm.nettools
com.palm.connectionmanager
com.palm.wifi


PmNetConfigManager is the main service executable. It starts com.palm.firewall, com.palm.netroute, com.palm.bridge, com.palm.nettools and com.palm.connectionmanager.

palm://com.palm.netroute/addNetIf { "ifName": "eth0", "networkTechnology": "wifi", "networkScope": "wan", "ipv4": { "ip": "0x1301a8c0", "netmask": "0x00ffffff", "gateway": "0x0101a8c0", "dns": [ "0x0101a8c0" ] }, "networkUsage": [ "other" ] }
CMINTERFACE=eth0
CMNETWORKTECHTYPE=wifi
CMSERVICES=0
CMIPADDR=192.168.1.19 
CMNETMASK=255.255.255.0 
CMNETADDR=192.168.1.0 
CMBRDADDR=192.168.1.255 
CMPREFIXLEN=24 
CMDNSSERVERS=192.168.1.1 
CMDNSDOMAINS= 
CMROUTES= 
CMDEFGW=192.168.1.1 
/etc/pmnetconfig/if-up
palm://com.palm.netroute/removeNetIf { "ifName": "eth0" }
palm://com.palm.netroute/removeNetIf { "ifName": "tun0" }
CMINTERFACE=tun0 
CMNETWORKTECHTYPE=vpn 
CMSERVICES=0 
CMIPADDR=192.168.1.19 
CMNETMASK=255.255.255.0 
CMNETADDR=192.168.1.0 
CMBRDADDR=192.168.1.255 
CMPREFIXLEN=24 
CMDNSSERVERS=192.168.1.1 
CMDNSDOMAINS= 
CMROUTES= 
CMDEFGW=192.168.1.1 
CMINTERFACENEXT=eth0 
CMDNSSERVERSNEXT=192.168.1.1 
/etc/pmnetconfig/if-down