[L2SWITCH-40] Ipv4Decoder unable to listen to Ethernet packets Created: 16/Apr/15 Updated: 21/Dec/18 |
|
| Status: | Confirmed |
| Project: | l2switch |
| Component/s: | General |
| Affects Version/s: | unspecified |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Sanjivini Naikar | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: Linux |
||
| External issue ID: | 3000 |
| Priority: | Normal |
| Description |
|
Since the ArpDecoder, Ipv4Decoder and Ipv6Decoder subscribe for Ethernet packets, on receiving an Ethernet packet, all 3 must receive the Ethernet packet. On adding logs, only the onEthernetPacketReceived(EthernetPacketReceived notification) in the ArpDecoder gets invoked. I added logs to obtain the notificationListeners in onNotificationSubscribtion(Class<? extends Notification> aClass) in class AbstractPacketDecoder, only the EthernetDecoder and ArpDecoder get listed. On commenting .add(new ArpDecoder(notificationProviderService)) in initiateDecoders(NotificationProviderService notificationProviderService) in PacketHandlerModule, the EthernetDecoder,Ipv4Decoder and Ipv6Decoder get listed as notificationListeners. I am using the stable/helium version of l2switch. |
| Comments |
| Comment by Sai MarapaReddy [ 19/Apr/16 ] |
|
exists in stable/beryllium |
| Comment by Sai MarapaReddy [ 11/May/16 ] |
|
Colin will skim through and pass on comments |
| Comment by Suvitha Balu [ 03/Jun/16 ] |
|
As per the developer guide - Developer's Guide for Packet Dispatcher module. Any one of the decoder handle the packet based on the packet. |