Project

General

Profile

Actions

Bug #3348

closed

VLAN tagged Ethernet packet triggers assertion failure

Added by susmit shannigrahi over 8 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Category:
Faces
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:

Description

This is probably because of offset mismatch in Ethernet packets with VLAN tags.

  • Steps to reproduce:

Add face on both ends:

faceid=259 remote=ether://[01:00:ab:00:17:aa] local=dev://p2p2.802
Machine1: nfdc register /test 259
Machine1: echo "hello" | ndnputchunks3 /test

faceid=263 remote=ether://[01:00:zz:00:17:aa] local=dev://p2p2.802
Machine2: nfdc register /test 263
Machine2" ndncatchunks3 /test

  • Results in NFD assertion failure.

nfd: ../daemon/face/ethernet-face.cpp:375: void nfd::EthernetFace::processIncomingPacket(const pcap_pkthdr*, const uint8_t*): Assertion `((extension ({ unsigned short int v, __x
= (unsigned short int) (eh->ether_type); if (
builtin_constant_p (x)) __v = ((unsigned short int) ((((x) >> 8) & 0xff) | (((x) & 0xff) << 8))); else __asm ("rorw $8, %w0" :
"=r" (v) : "0" (x) : "cc"); __v; })) == ethernet::ETHERTYPE_NDN)&&("Received frame with unrecognized ethertype")' failed.


Files

eth1.pcap (104 Bytes) eth1.pcap Alex Afanasyev, 12/21/2015 10:32 AM
Actions

Also available in: Atom PDF