- switch(DATA(packet)[14] >> 4) {
- case 4:
- DATA(packet)[12] = 0x08;
- DATA(packet)[13] = 0x00;
- break;
- case 6:
- DATA(packet)[12] = 0x86;
- DATA(packet)[13] = 0xDD;
- break;
- default:
- logger(DEBUG_TRAFFIC, LOG_ERR, "Unknown IP version %d while reading packet from %s %s", DATA(packet)[14] >> 4, device_info, device);
- return false;
- }
+ switch(DATA(packet)[14] >> 4) {
+ case 4:
+ DATA(packet)[12] = 0x08;
+ DATA(packet)[13] = 0x00;
+ break;