Comments (1)
Just in case someone else has the same problem when following the example
# command-line-arguments
./sendudp.go:101:39: too many arguments in call to xsk.GetDescs
have (number, bool)
want (int)
./sendudp.go:130:47: too many arguments in call to xsk.GetDescs
have (int, bool)
want (int)
You can add the following to your go.mod , which will make sure you use a more recent version with the fix:
github.com/asavie/xdp v0.3.4-0.20220212172814-56d71236a029
example:
https://github.com/atoonk/go-pktgen/blob/main/go.mod#L6
Btw, this is not a problem if you clone the repo, in that case you have the latest code.
from xdp.
Related Issues (20)
- Allowing offset into frame HOT 1
- Q: what is the correct way to use this for RX and TX at the same time? HOT 4
- Redirecting to another port HOT 1
- xsk stats report Tx_ring_empty_descs when change argument of GetDescs()
- Q: Attach xdp program to interface raises "cannot allocate memory" HOT 4
- xdp_pass
- error HOT 1
- Filter based on the value of a specific byte
- how to do example rate limiting of ip based on this?
- At high throughput receiving same packet twice at expense of another packet disappearing altogether.
- how do also listen to a specific port and forward to another application port based on ip address? HOT 1
- possible to provide example for tcp and ipv6 together?
- getting error for ubuntu 22.04, golang 1.19 go build sendudp.go
- Detaching program hangs when using SKB mode
- map xdp_stats_map: pin by name: missing MapOptions.PinPath
- Transmit error when using Intel nic / ixgbe driver HOT 6
- error: syscall.Bind SockaddrXDP failed: device or resource busy
- cpu reordering / missing memory fences issues?
- Support for XDP_USE_NEED_WAKEUP?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xdp.