-rw-r--r-- | noncore/net/networksetup/TODO | 26 | ||||
-rw-r--r-- | noncore/net/networksetup/mainwindow.ui | 2 | ||||
-rw-r--r-- | noncore/net/networksetup/opie-networksetup.control | 2 | ||||
-rw-r--r-- | noncore/net/networksetup/wlan/wlanimp.cpp | 3 | ||||
-rw-r--r-- | noncore/settings/networksettings/TODO | 26 | ||||
-rw-r--r-- | noncore/settings/networksettings/mainwindow.ui | 2 | ||||
-rw-r--r-- | noncore/settings/networksettings/opie-networksettings.control | 2 | ||||
-rw-r--r-- | noncore/settings/networksettings/opie-networksetup.control | 2 | ||||
-rw-r--r-- | noncore/settings/networksettings/wlan/wlanimp.cpp | 3 |
9 files changed, 53 insertions, 15 deletions
diff --git a/noncore/net/networksetup/TODO b/noncore/net/networksetup/TODO index 93cbab7..6457836 100644 --- a/noncore/net/networksetup/TODO +++ b/noncore/net/networksetup/TODO | |||
@@ -1,32 +1,48 @@ | |||
1 | Types: | ||
2 | -Ethernet Connection (Done) | ||
3 | -ISDN Connection | ||
4 | -Modem COnnection (Started) | ||
5 | -xDSL connection | ||
6 | -Token Ring Connection | ||
7 | -CIPE (VPN) connection (ipsec?) | ||
8 | -Wireless Connection (Done) | ||
9 | -Bluetooth | ||
10 | -IPChains? | ||
11 | |||
1 | test WEP | 12 | test WEP |
2 | WEP key in file wireless.conf is not encrypted !, therefore it is very easy to get the key out of the zaurus.. | 13 | Add WEP transimtion rate |
3 | WEP transimtion rat | ||
4 | 1 or 2 | 14 | 1 or 2 |
5 | 5.5 | 15 | 5.5 |
6 | 1 | 16 | 1 |
7 | Auto | 17 | Auto |
8 | 18 | ||
9 | udchcp needs to output the dhcp information so interfaces can read it | 19 | udchcp needs to output the dhcp information so interfaces can read it |
10 | 20 | ||
11 | interfacesetupimp really doesn't need a interface* pointer | 21 | interfacesetupimp really doesn't need a interface* pointer |
12 | 22 | ||
13 | Possible other modules to write: ppp, ipsec, bluetooth, ipchains | ||
14 | |||
15 | PPP module needs to scan pppd.tdb to see what is currently active | 23 | PPP module needs to scan pppd.tdb to see what is currently active |
16 | 24 | ||
17 | WLAN - add possiblity to input text or hex without knowing "s:" | 25 | WLAN |
26 | - add possiblity to input text or hex without knowing "s:" | ||
27 | - Handle "any" and any the same way in config | ||
18 | 28 | ||
19 | Interface setupimp needs to use kernel calls. | 29 | Interface setupimp needs to use kernel calls. |
20 | 30 | ||
31 | Add a route/DNS editor under the ViewAdvancedInfo button | ||
32 | |||
33 | Use a true TCP/IP widget | ||
34 | |||
35 | Make it so that pcmcia doesn't need to be stopped/started for wlan | ||
36 | |||
21 | Automaticly update the main list of interfaces: | 37 | Automaticly update the main list of interfaces: |
22 | > That would be me. :-D netlink, can you point me in the right | 38 | > That would be me. :-D netlink, can you point me in the right |
23 | > direction where I can get more info on it? (I figured there was some | 39 | > direction where I can get more info on it? (I figured there was some |
24 | > kenel call) | 40 | > kenel call) |
25 | 41 | ||
26 | You can look up the meaning of the packets you receive, or you can just go | 42 | You can look up the meaning of the packets you receive, or you can just go |
27 | poll for changes you might be interested in each time you receive _any_ | 43 | poll for changes you might be interested in each time you receive _any_ |
28 | packet. Anything's better than periodic polling. | 44 | packet. Anything's better than periodic polling. |
29 | 45 | ||
30 | Note that you can't do this as non-root on some kernels. There's a patch | 46 | Note that you can't do this as non-root on some kernels. There's a patch |
31 | which can go into the hh.org kernel if it's not already there. | 47 | which can go into the hh.org kernel if it's not already there. |
32 | cf. http://marc.theaimsgroup.com/?l=linux-kernel&m=103520821605353&w=2 | 48 | cf. http://marc.theaimsgroup.com/?l=linux-kernel&m=103520821605353&w=2 |
diff --git a/noncore/net/networksetup/mainwindow.ui b/noncore/net/networksetup/mainwindow.ui index 3d30994..dcabc52 100644 --- a/noncore/net/networksetup/mainwindow.ui +++ b/noncore/net/networksetup/mainwindow.ui | |||
@@ -8,25 +8,25 @@ | |||
8 | </property> | 8 | </property> |
9 | <property stdset="1"> | 9 | <property stdset="1"> |
10 | <name>geometry</name> | 10 | <name>geometry</name> |
11 | <rect> | 11 | <rect> |
12 | <x>0</x> | 12 | <x>0</x> |
13 | <y>0</y> | 13 | <y>0</y> |
14 | <width>240</width> | 14 | <width>240</width> |
15 | <height>289</height> | 15 | <height>289</height> |
16 | </rect> | 16 | </rect> |
17 | </property> | 17 | </property> |
18 | <property stdset="1"> | 18 | <property stdset="1"> |
19 | <name>caption</name> | 19 | <name>caption</name> |
20 | <string>Network Setup</string> | 20 | <string>Network Settings</string> |
21 | </property> | 21 | </property> |
22 | <vbox> | 22 | <vbox> |
23 | <property stdset="1"> | 23 | <property stdset="1"> |
24 | <name>margin</name> | 24 | <name>margin</name> |
25 | <number>0</number> | 25 | <number>0</number> |
26 | </property> | 26 | </property> |
27 | <property stdset="1"> | 27 | <property stdset="1"> |
28 | <name>spacing</name> | 28 | <name>spacing</name> |
29 | <number>6</number> | 29 | <number>6</number> |
30 | </property> | 30 | </property> |
31 | <widget> | 31 | <widget> |
32 | <class>QTabWidget</class> | 32 | <class>QTabWidget</class> |
diff --git a/noncore/net/networksetup/opie-networksetup.control b/noncore/net/networksetup/opie-networksetup.control index 3d6a32c..585e50e 100644 --- a/noncore/net/networksetup/opie-networksetup.control +++ b/noncore/net/networksetup/opie-networksetup.control | |||
@@ -1,8 +1,8 @@ | |||
1 | Files: bin/networksetup apps/Settings/networksetup.desktop plugins/networksetup/* pics/networksetup/* pics/Network/PPPConnect.png $QTDIR/lib/libinterfaces.so.1.0.0 $QTDIR/lib/libinterfaces.so.1.0 $QTDIR/lib/libinterfaces.so.1 root/usr/bin/changedns bin/getprofile | 1 | Files: bin/networksetup apps/Settings/networksetup.desktop plugins/networksetup/* pics/networksetup/* pics/Network/PPPConnect.png $QTDIR/lib/libinterfaces.so.1.0.0 $QTDIR/lib/libinterfaces.so.1.0 $QTDIR/lib/libinterfaces.so.1 root/usr/bin/changedns bin/getprofile |
2 | Priority: optional | 2 | Priority: optional |
3 | Section: opie/settings | 3 | Section: opie/settings |
4 | Maintainer: Ben Meyer <meyerb@sharpsec.com> | 4 | Maintainer: Ben Meyer <meyerb@sharpsec.com> |
5 | Architecture: arm | 5 | Architecture: arm |
6 | Version: $QPE_VERSION-$SUB_VERSION | 6 | Version: $QPE_VERSION-$SUB_VERSION |
7 | Depends: opie-base ($QPE_VERSION) | 7 | Depends: opie-base ($QPE_VERSION) |
8 | Description: Opie network setup tool | 8 | Description: Network settings |
diff --git a/noncore/net/networksetup/wlan/wlanimp.cpp b/noncore/net/networksetup/wlan/wlanimp.cpp index 648932f..1782c22 100644 --- a/noncore/net/networksetup/wlan/wlanimp.cpp +++ b/noncore/net/networksetup/wlan/wlanimp.cpp | |||
@@ -222,23 +222,26 @@ void WLANImp::accept(){ | |||
222 | changeAndSaveSettingFile(); | 222 | changeAndSaveSettingFile(); |
223 | 223 | ||
224 | // Try to save the interfaces settings. | 224 | // Try to save the interfaces settings. |
225 | if(!interfaceSetup->saveChanges()) | 225 | if(!interfaceSetup->saveChanges()) |
226 | return; | 226 | return; |
227 | 227 | ||
228 | // Restart the device now that the settings have changed | 228 | // Restart the device now that the settings have changed |
229 | QString initpath; | 229 | QString initpath; |
230 | if( QDir("/etc/rc.d/init.d").exists() ) | 230 | if( QDir("/etc/rc.d/init.d").exists() ) |
231 | initpath = "/etc/rc.d/init.d"; | 231 | initpath = "/etc/rc.d/init.d"; |
232 | else if( QDir("/etc/init.d").exists() ) | 232 | else if( QDir("/etc/init.d").exists() ) |
233 | initpath = "/etc/init.d"; | 233 | initpath = "/etc/init.d"; |
234 | |||
235 | // It would be kinda cool if we didn't have to do this and could just to ifup/down | ||
236 | |||
234 | if( initpath ) | 237 | if( initpath ) |
235 | system(QString("%1/pcmcia stop").arg(initpath)); | 238 | system(QString("%1/pcmcia stop").arg(initpath)); |
236 | if( initpath ) | 239 | if( initpath ) |
237 | system(QString("%1/pcmcia start").arg(initpath)); | 240 | system(QString("%1/pcmcia start").arg(initpath)); |
238 | 241 | ||
239 | // Close out the dialog | 242 | // Close out the dialog |
240 | QDialog::accept(); | 243 | QDialog::accept(); |
241 | } | 244 | } |
242 | 245 | ||
243 | // wlanimp.cpp | 246 | // wlanimp.cpp |
244 | 247 | ||
diff --git a/noncore/settings/networksettings/TODO b/noncore/settings/networksettings/TODO index 93cbab7..6457836 100644 --- a/noncore/settings/networksettings/TODO +++ b/noncore/settings/networksettings/TODO | |||
@@ -1,32 +1,48 @@ | |||
1 | Types: | ||
2 | -Ethernet Connection (Done) | ||
3 | -ISDN Connection | ||
4 | -Modem COnnection (Started) | ||
5 | -xDSL connection | ||
6 | -Token Ring Connection | ||
7 | -CIPE (VPN) connection (ipsec?) | ||
8 | -Wireless Connection (Done) | ||
9 | -Bluetooth | ||
10 | -IPChains? | ||
11 | |||
1 | test WEP | 12 | test WEP |
2 | WEP key in file wireless.conf is not encrypted !, therefore it is very easy to get the key out of the zaurus.. | 13 | Add WEP transimtion rate |
3 | WEP transimtion rat | ||
4 | 1 or 2 | 14 | 1 or 2 |
5 | 5.5 | 15 | 5.5 |
6 | 1 | 16 | 1 |
7 | Auto | 17 | Auto |
8 | 18 | ||
9 | udchcp needs to output the dhcp information so interfaces can read it | 19 | udchcp needs to output the dhcp information so interfaces can read it |
10 | 20 | ||
11 | interfacesetupimp really doesn't need a interface* pointer | 21 | interfacesetupimp really doesn't need a interface* pointer |
12 | 22 | ||
13 | Possible other modules to write: ppp, ipsec, bluetooth, ipchains | ||
14 | |||
15 | PPP module needs to scan pppd.tdb to see what is currently active | 23 | PPP module needs to scan pppd.tdb to see what is currently active |
16 | 24 | ||
17 | WLAN - add possiblity to input text or hex without knowing "s:" | 25 | WLAN |
26 | - add possiblity to input text or hex without knowing "s:" | ||
27 | - Handle "any" and any the same way in config | ||
18 | 28 | ||
19 | Interface setupimp needs to use kernel calls. | 29 | Interface setupimp needs to use kernel calls. |
20 | 30 | ||
31 | Add a route/DNS editor under the ViewAdvancedInfo button | ||
32 | |||
33 | Use a true TCP/IP widget | ||
34 | |||
35 | Make it so that pcmcia doesn't need to be stopped/started for wlan | ||
36 | |||
21 | Automaticly update the main list of interfaces: | 37 | Automaticly update the main list of interfaces: |
22 | > That would be me. :-D netlink, can you point me in the right | 38 | > That would be me. :-D netlink, can you point me in the right |
23 | > direction where I can get more info on it? (I figured there was some | 39 | > direction where I can get more info on it? (I figured there was some |
24 | > kenel call) | 40 | > kenel call) |
25 | 41 | ||
26 | You can look up the meaning of the packets you receive, or you can just go | 42 | You can look up the meaning of the packets you receive, or you can just go |
27 | poll for changes you might be interested in each time you receive _any_ | 43 | poll for changes you might be interested in each time you receive _any_ |
28 | packet. Anything's better than periodic polling. | 44 | packet. Anything's better than periodic polling. |
29 | 45 | ||
30 | Note that you can't do this as non-root on some kernels. There's a patch | 46 | Note that you can't do this as non-root on some kernels. There's a patch |
31 | which can go into the hh.org kernel if it's not already there. | 47 | which can go into the hh.org kernel if it's not already there. |
32 | cf. http://marc.theaimsgroup.com/?l=linux-kernel&m=103520821605353&w=2 | 48 | cf. http://marc.theaimsgroup.com/?l=linux-kernel&m=103520821605353&w=2 |
diff --git a/noncore/settings/networksettings/mainwindow.ui b/noncore/settings/networksettings/mainwindow.ui index 3d30994..dcabc52 100644 --- a/noncore/settings/networksettings/mainwindow.ui +++ b/noncore/settings/networksettings/mainwindow.ui | |||
@@ -8,25 +8,25 @@ | |||
8 | </property> | 8 | </property> |
9 | <property stdset="1"> | 9 | <property stdset="1"> |
10 | <name>geometry</name> | 10 | <name>geometry</name> |
11 | <rect> | 11 | <rect> |
12 | <x>0</x> | 12 | <x>0</x> |
13 | <y>0</y> | 13 | <y>0</y> |
14 | <width>240</width> | 14 | <width>240</width> |
15 | <height>289</height> | 15 | <height>289</height> |
16 | </rect> | 16 | </rect> |
17 | </property> | 17 | </property> |
18 | <property stdset="1"> | 18 | <property stdset="1"> |
19 | <name>caption</name> | 19 | <name>caption</name> |
20 | <string>Network Setup</string> | 20 | <string>Network Settings</string> |
21 | </property> | 21 | </property> |
22 | <vbox> | 22 | <vbox> |
23 | <property stdset="1"> | 23 | <property stdset="1"> |
24 | <name>margin</name> | 24 | <name>margin</name> |
25 | <number>0</number> | 25 | <number>0</number> |
26 | </property> | 26 | </property> |
27 | <property stdset="1"> | 27 | <property stdset="1"> |
28 | <name>spacing</name> | 28 | <name>spacing</name> |
29 | <number>6</number> | 29 | <number>6</number> |
30 | </property> | 30 | </property> |
31 | <widget> | 31 | <widget> |
32 | <class>QTabWidget</class> | 32 | <class>QTabWidget</class> |
diff --git a/noncore/settings/networksettings/opie-networksettings.control b/noncore/settings/networksettings/opie-networksettings.control index 3d6a32c..585e50e 100644 --- a/noncore/settings/networksettings/opie-networksettings.control +++ b/noncore/settings/networksettings/opie-networksettings.control | |||
@@ -1,8 +1,8 @@ | |||
1 | Files: bin/networksetup apps/Settings/networksetup.desktop plugins/networksetup/* pics/networksetup/* pics/Network/PPPConnect.png $QTDIR/lib/libinterfaces.so.1.0.0 $QTDIR/lib/libinterfaces.so.1.0 $QTDIR/lib/libinterfaces.so.1 root/usr/bin/changedns bin/getprofile | 1 | Files: bin/networksetup apps/Settings/networksetup.desktop plugins/networksetup/* pics/networksetup/* pics/Network/PPPConnect.png $QTDIR/lib/libinterfaces.so.1.0.0 $QTDIR/lib/libinterfaces.so.1.0 $QTDIR/lib/libinterfaces.so.1 root/usr/bin/changedns bin/getprofile |
2 | Priority: optional | 2 | Priority: optional |
3 | Section: opie/settings | 3 | Section: opie/settings |
4 | Maintainer: Ben Meyer <meyerb@sharpsec.com> | 4 | Maintainer: Ben Meyer <meyerb@sharpsec.com> |
5 | Architecture: arm | 5 | Architecture: arm |
6 | Version: $QPE_VERSION-$SUB_VERSION | 6 | Version: $QPE_VERSION-$SUB_VERSION |
7 | Depends: opie-base ($QPE_VERSION) | 7 | Depends: opie-base ($QPE_VERSION) |
8 | Description: Opie network setup tool | 8 | Description: Network settings |
diff --git a/noncore/settings/networksettings/opie-networksetup.control b/noncore/settings/networksettings/opie-networksetup.control index 3d6a32c..585e50e 100644 --- a/noncore/settings/networksettings/opie-networksetup.control +++ b/noncore/settings/networksettings/opie-networksetup.control | |||
@@ -1,8 +1,8 @@ | |||
1 | Files: bin/networksetup apps/Settings/networksetup.desktop plugins/networksetup/* pics/networksetup/* pics/Network/PPPConnect.png $QTDIR/lib/libinterfaces.so.1.0.0 $QTDIR/lib/libinterfaces.so.1.0 $QTDIR/lib/libinterfaces.so.1 root/usr/bin/changedns bin/getprofile | 1 | Files: bin/networksetup apps/Settings/networksetup.desktop plugins/networksetup/* pics/networksetup/* pics/Network/PPPConnect.png $QTDIR/lib/libinterfaces.so.1.0.0 $QTDIR/lib/libinterfaces.so.1.0 $QTDIR/lib/libinterfaces.so.1 root/usr/bin/changedns bin/getprofile |
2 | Priority: optional | 2 | Priority: optional |
3 | Section: opie/settings | 3 | Section: opie/settings |
4 | Maintainer: Ben Meyer <meyerb@sharpsec.com> | 4 | Maintainer: Ben Meyer <meyerb@sharpsec.com> |
5 | Architecture: arm | 5 | Architecture: arm |
6 | Version: $QPE_VERSION-$SUB_VERSION | 6 | Version: $QPE_VERSION-$SUB_VERSION |
7 | Depends: opie-base ($QPE_VERSION) | 7 | Depends: opie-base ($QPE_VERSION) |
8 | Description: Opie network setup tool | 8 | Description: Network settings |
diff --git a/noncore/settings/networksettings/wlan/wlanimp.cpp b/noncore/settings/networksettings/wlan/wlanimp.cpp index 648932f..1782c22 100644 --- a/noncore/settings/networksettings/wlan/wlanimp.cpp +++ b/noncore/settings/networksettings/wlan/wlanimp.cpp | |||
@@ -222,23 +222,26 @@ void WLANImp::accept(){ | |||
222 | changeAndSaveSettingFile(); | 222 | changeAndSaveSettingFile(); |
223 | 223 | ||
224 | // Try to save the interfaces settings. | 224 | // Try to save the interfaces settings. |
225 | if(!interfaceSetup->saveChanges()) | 225 | if(!interfaceSetup->saveChanges()) |
226 | return; | 226 | return; |
227 | 227 | ||
228 | // Restart the device now that the settings have changed | 228 | // Restart the device now that the settings have changed |
229 | QString initpath; | 229 | QString initpath; |
230 | if( QDir("/etc/rc.d/init.d").exists() ) | 230 | if( QDir("/etc/rc.d/init.d").exists() ) |
231 | initpath = "/etc/rc.d/init.d"; | 231 | initpath = "/etc/rc.d/init.d"; |
232 | else if( QDir("/etc/init.d").exists() ) | 232 | else if( QDir("/etc/init.d").exists() ) |
233 | initpath = "/etc/init.d"; | 233 | initpath = "/etc/init.d"; |
234 | |||
235 | // It would be kinda cool if we didn't have to do this and could just to ifup/down | ||
236 | |||
234 | if( initpath ) | 237 | if( initpath ) |
235 | system(QString("%1/pcmcia stop").arg(initpath)); | 238 | system(QString("%1/pcmcia stop").arg(initpath)); |
236 | if( initpath ) | 239 | if( initpath ) |
237 | system(QString("%1/pcmcia start").arg(initpath)); | 240 | system(QString("%1/pcmcia start").arg(initpath)); |
238 | 241 | ||
239 | // Close out the dialog | 242 | // Close out the dialog |
240 | QDialog::accept(); | 243 | QDialog::accept(); |
241 | } | 244 | } |
242 | 245 | ||
243 | // wlanimp.cpp | 246 | // wlanimp.cpp |
244 | 247 | ||