aregm / nff-go

NFF-Go -Network Function Framework for GO (former YANFF)
BSD 3-Clause "New" or "Revised" License
1.38k stars 156 forks source link

VXLAN example? #627

Open s3rj1k opened 5 years ago

gshimansky commented 5 years ago

Hello. What kind of example would you like to see? If I understand it correctly, VXLAN is UDP encapsulation. Do you want to see an example application that adds VXLAN header or strips it? We have several other encapsulation examples for GTP UDP encapsulation https://github.com/intel-go/nff-go/blob/master/examples/nffPktgen/gtp-u/trafficgen.go#L212, GRE encapsulation https://github.com/intel-go/nff-go/blob/master/examples/lb/balancer.go#L58, IPSEC encapsulation https://github.com/intel-go/nff-go/blob/master/examples/ipsec/ipsec_kernel.go#L147 and decapsulation https://github.com/intel-go/nff-go/blob/master/examples/ipsec/ipsec_kernel.go#L52 which you could use to implement your own VXLAN encapsulation and decapsulation applications.

s3rj1k commented 5 years ago

@gshimansky Hi, would be nice to have an example for VXLAN to VLAN translation.