0

I tried to send snmp UDP packet through vlan interface by using "setsockopt bind to interface", but in client side when i capture packet using wireshark i can capture the packet both in eth0.4092 and eth0.

1:I tried to bind the interface name using setsockopt, its working but packet reaching at eth0 and eth0.4092

2:I tried with bind to specific address , no change

expected:The packet should reach only at vlan interface.

ARJUN
  • 21
  • 1
  • 7
  • 1
    You should describe your systems and network in more detail and show your code. Where and how do you send the packet, where and how do you run `wireshark`? – Bodo Feb 18 '19 at 17:36
  • 1
    The packet passes the vlan interface plain and the actual physical interface 802.1q tagged. This is expected behaviour. – Ctx Feb 18 '19 at 18:37

1 Answers1

0

It is expected, packet with vlan tag reach at eth0 and vlan tag removed packet reach at eth0.4092, vlan is a software feature so the packet should reach at physical interface then only it moves to virtual interface.

ARJUN
  • 21
  • 1
  • 7