Home
Blogs
Questions
Jobs
Monetize

Home

About Us

Blogs

Questions

Jobs

Monetize

Post Job

banner

Questions about gopacket

Read more about gopacket

python (65.2k questions)

javascript (44.3k questions)

reactjs (22.7k questions)

java (20.8k questions)

c# (17.4k questions)

html (16.3k questions)

r (13.7k questions)

android (13k questions)

Questions - gopacket

Go: How to remove data link layer from a packet?

I am using the gopacket library, and I read packets from the wire. Right now, all packets I read contain four layers: Link, Network, Transport, and Application Data. I need to remove the Link layer fr...
test-img

Prisacari Dmitrii

go

pcap

gopacket

Votes: 0

Answers: 1

Latest Answer

I found one possible way - to concatenate bytes from necessary packet layers: // `packet` variable contains four layers including the Link layer packet := <-packetSource.Packets() var packetData ...
test-img

Prisacari Dmitrii

Send EAPoL packet: Request Identity

I try to send Request Identity EAPoL packet: func eapol_requestIdentity(handle *pcap.Handle, iface *net.Interface, id uint8) error { len := uint16(5) // eap1 field length eap...
test-img

ipStack

go

gopacket

Votes: 0

Answers: 1

Latest Answer

I am not very familiar with EAP, but according to the RFC, Type and Type-Data are two different fields: 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 ...
test-img

Dylan Reimerink

Posts

Questions

Blogs

Jobs

The ultimate platform for coders and IT specialists

About

  • Company
  • Support

  • Platform

  • Terms & Conditions
  • Privacy statement
  • Cookie policy
  • Cookie option
  • OnlyCoders © 2025  |  All rights reserved