Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

OnPacket conflict between gopacket.example.go and tls.downgrade.go

Open
#2 13 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
25/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
go
Domain
build-system

Research direction

Start with gopacket.example.go and tls.downgrade.go, then run make build to reproduce the compiler output. Determine how the duplicate OnPacket declarations should be handled so both examples can coexist, and confirm that the build completes successfully.

Written by the indexing model from the issue text.

Description

Hey all,
so I did build two paket.proxy-plugins you had provided, which are gopacket.example.go and tls.downgrade.go.

tls.downgrade.go is fixed by @buffermet . Thanks, boss!

gopacket.example.go and tls.downgrad.go were built successfully.

But as I tried to build bettercap with this:
make build

I got these:
go build -o bettercap .
./tls.downgrade.go:74:6: OnPacket redeclared in this block
previous declaration at ./gopacket.example.go:11:41
make: *** [Makefile:10: build] Error 2

What did I do wrong?

Environment:
OS version and architecture you are using: Kali GNU/Linux Rolling 2019.4
Go version if building from sources: go version go1.13.4 linux/amd64

Dominant language
Go
Stars
22
Forks
10
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.