2019-12-23 13:13:13 +00:00
|
|
|
#include "coppino.h"
|
|
|
|
|
|
|
|
namespace coppino {
|
|
|
|
void handler() {
|
|
|
|
int r;
|
|
|
|
|
2019-12-24 16:59:51 +00:00
|
|
|
while ((r = slip::recv((char*)&ipv6::packetin, LEN)) != -1) {
|
|
|
|
ipv6::packetin.doAction();
|
2019-12-23 13:13:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
void hexdump(const char* pointer, int len) {
|
|
|
|
for (int i = 0; i < len; ++i) {
|
|
|
|
Serial.print(pointer[i] & 0xff, HEX);
|
|
|
|
Serial.print('.');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|