public void setupCommands(final ComponentRegistry registry, CommandHandler handler) {
handler.registerCommand("ipstack", new BasicLineCommand("setup 802.15.4/IP stack", "") {
CC2420PacketHandler listener;
public int executeCommand(CommandContext context) {
MSP430 cpu = registry.getComponent(MSP430.class);
listener = new CC2420PacketHandler(cpu);
listener.setOutput(context.out);
IEEE802154Handler ieeeHandler = new IEEE802154Handler();
listener.addUpperLayerHandler(0, ieeeHandler);
ieeeHandler.setLowerLayerHandler(listener);
ipStack = new IPStack();