Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
netsed [2020/05/12 11:16] df2et angelegt |
netsed [2020/05/12 11:25] (aktuell) df2et |
||
---|---|---|---|
Zeile 4: | Zeile 4: | ||
* Install "wildcard netsed" ([[https://github.com/xlab/netsed]]) | * Install "wildcard netsed" ([[https://github.com/xlab/netsed]]) | ||
- | * Add the following line to /etc/rc.local : | + | * Add the following line to /etc/rc.local : |
- | ''sudo netsed tcp 43434 dapnet.afu.rwth-aachen.de 43434 's/:C8:3:%*%0a/:0:3:A%0a/i' 's/:D0:3:%*%0a/:0:3:B%0a/i' 's/:D8:3:%*%0a/:0:3:C%0a/i' 's/:E0:3:%*%0a/:0:3:D%0a/i' 's/:11A8:3:%*%0a/:0:3:X%0a/i' &'' | + | <code>sudo netsed tcp 43434 dapnet.afu.rwth-aachen.de 43434 's/:C8:3:%*%0a/:0:3:A%0a/i' 's/:D0:3:%*%0a/:0:3:B%0a/i' 's/:D8:3:%*%0a/:0:3:C%0a/i' 's/:E0:3:%*%0a/:0:3:D%0a/i' 's/:11A8:3:%*%0a/:0:3:X%0a/i' &</code> |
* On Unipager, change the default server to 127.0.0.1. | * On Unipager, change the default server to 127.0.0.1. | ||
This creates a proxy that intercepts and changes DAPNET messages based on rules. On the netsed command mentioned above, RICs 200, 208, 224, 216, are being zeroed. Packets are still transmitted over radio but with no playload, so much smaller, and requiring less timeslots (and energy). | This creates a proxy that intercepts and changes DAPNET messages based on rules. On the netsed command mentioned above, RICs 200, 208, 224, 216, are being zeroed. Packets are still transmitted over radio but with no playload, so much smaller, and requiring less timeslots (and energy). |