Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix random ip to not produce invalid IPs #251

Merged
merged 1 commit into from
Mar 9, 2022
Merged

Fix random ip to not produce invalid IPs #251

merged 1 commit into from
Mar 9, 2022

Conversation

arriven
Copy link
Owner

@arriven arriven commented Mar 9, 2022

Description

It took me couple days to realize that most of the time when packetgen is bitching about and argument in sendmsg it doesn't like the ip containing leading 0. Tweaked random IP generation function to stop producing those value

Fixes #249

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • sudo go run main.go -r 5s

Test Configuration

  • Release version: latest
  • Platform: linux-amd64

@arriven arriven merged commit 85a4249 into main Mar 9, 2022
@arriven arriven deleted the fix-random-ip branch March 9, 2022 07:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

sendmsg: invalid argument - latest version
1 participant