You should be able to use ethernet_register_input_type() to add support for your custom L2.
Best ben > -----Original Message----- > From: vpp-dev@lists.fd.io <vpp-dev@lists.fd.io> On Behalf Of Burcu YUKSEL > Sent: Friday, October 7, 2022 18:15 > To: vpp-dev@lists.fd.io > Subject: [vpp-dev] How to forward masked IP packets to IP nodes? > > Hello everyone, > > W have a network packet set consisting of custom L2 and standard L3 > packets. We want to forward these packets over VPP. When I tried to send > custom L2 packet which has a non-standard ethernet type, it had been > dropped in VPP. > > Related Node Stream: > > 00:14:05:507128: af-packet-input > af_packet: hw_if_index 1 rx-queue 0 next-index 4 > block 79: > address 0x7fe5bb922000 version 2 seq_num 80 pkt_num 0 > tpacket3_hdr: > status 0x1 len 398 snaplen 398 mac 92 net 106 > sec 0x63342b84 nsec 0x2b246a94 vlan 0 vlan_tpid 0 > vnet-hdr: > flags 0x00 gso_type 0x00 hdr_len 0 > gso_size 0 csum_start 0 csum_offset 0 > 00:14:05:507146: ethernet-input > 0xaa00: 1e:99:7f:17:46:68 -> 02:fe:63:d6:11:46 > 00:14:05:507156: error-punt > rx:host-vpp1out > 00:14:05:507162: punt > ethernet-input: unknown ethernet type > > If we use bridge-domain, we can mask all packets and transmit them. > However in bridge-domain, it is just looking at the L2 header of all > packets and forwarding them. But we want IP packets to be forwarded to the > IP nodes to take advantages of features like fragmentation, checksum > control etc. > > Is there a solution to forward masked IP packets to ip-node or an > alternative way to solve the problem? > > Regards, > Burcu > > > Bu elektronik posta ve onunla iletilen bütün dosyalar sadece göndericisi > tarafından alması amaçlanan yetkili, gerçek ya da tüzel kişinin kullanımı > içindir. Eğer söz konusu yetkili alıcı değilseniz, bu elektronik postanın > içeriğini açıklamanız, kopyalamanız, yönlendirmeniz ve kullanmanız > kesinlikle yasaktır ve bu elektronik postayı derhal silmeniz > gerekmektedir. Şirketimiz bu mesajın içerdiği bilgilerin doğruluğu veya > eksiksiz olduğu konusunda herhangi bir garanti vermemektedir. Bu nedenle, > bu bilgilerin ne şekilde olursa olsun içeriğinden, iletilmesinden, > alınmasından ve saklanmasından sorumlu değildir. Bu mesajdaki görüşler > yalnızca gönderen kişiye aittir ve Şirketimizin görüşlerini > yansıtmayabilir. Tarafınız ile paylaşılan kişisel verilerin, 6698 sayılı > Kişisel Verilerin Korunması Kanununa uygun olarak işlenmesi gereğini > bilginize sunarız. > > ________________________________ > > This e-mail and all files sent with it are intended for authorized natural > or legal persons, who should be the only persons to open and read them. If > you are not an authorized recipient, you are strictly prohibited from > disclosing, copying, forwarding, and using the contents of this e-mail, > and you must immediately delete it. Our company does not guarantee the > accuracy or thoroughness of the information contained in this message. It > is therefore in no way responsible for the content, sending, retrieval and > storage of this information. The opinions contained in this message are > the views of the sender only and do not necessarily reflect the views of > the company. We would like to inform you that any personal data shared > with you should be processed in accordance with the Law on Protection of > Personal Data numbered 6698.
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#21978): https://lists.fd.io/g/vpp-dev/message/21978 Mute This Topic: https://lists.fd.io/mt/94183047/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/leave/1480452/21656/631435203/xyzzy [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-