Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: gopacket/gopacket
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.3.1
Choose a base ref
...
head repository: gopacket/gopacket
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.4.0
Choose a head ref
  • 20 commits
  • 34 files changed
  • 16 contributors

Commits on Dec 2, 2024

  1. Make pcapgo EthernetHandle use runtime poller (#99)

    * Make pcapgo EthernetHandle use runtime poller
    
    This allows pcapgo to cooperate with the Go runtime poller
    to not block entire OS thread on operations.
    
    * Use close-on-exec in pcapgo
    
    The close-on-exec flag should always be used, where possible. The Go
    standard library does that everywhere, so it makes sense to use it here,
    too.
    WGH- authored Dec 2, 2024
    Configuration menu
    Copy the full SHA
    fa916e7 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b43272a View commit details
    Browse the repository at this point in the history

Commits on Dec 21, 2024

  1. pcapng: support read and write Enhanced Packet Block (EPB) options (#58)

    * pcapng: support read and write Enhanced Packet Block (EPB) options
    
    * no longer set LinkLayerErr for the epb.pcapng
    mozillazg authored Dec 21, 2024
    Configuration menu
    Copy the full SHA
    61c6261 View commit details
    Browse the repository at this point in the history

Commits on Dec 26, 2024

  1. updated dependencies

    mosajjal committed Dec 26, 2024
    Configuration menu
    Copy the full SHA
    e371646 View commit details
    Browse the repository at this point in the history

Commits on Jan 24, 2025

  1. Cleanup endian conversion helpers (#108)

    Rename "htons" package to "endian". Htons stands for "host to network
    short (uint16)". If we ever add helpers for other integer
    widths, "htons" for the package name would not fit.
    
    Rewrite Htons itself without unsafe, making the code easier to follow
    and helping the compiler generate tighter code.
    
    Signed-off-by: Nick Zavaritsky <mejedi@gmail.com>
    mejedi authored Jan 24, 2025
    Configuration menu
    Copy the full SHA
    4bc8c8e View commit details
    Browse the repository at this point in the history
  2. fix time resolution of pcap/pcapgo (#102)

    original appears to return the reversed results
    zhouyan authored Jan 24, 2025
    Configuration menu
    Copy the full SHA
    e9c78bd View commit details
    Browse the repository at this point in the history
  3. feat: support icmp6 option RecursiveDNSServer (#105)

    * feat: support icmp6 option RecursiveDNSServer
    
    * making the consts consistent
    
    ---------
    
    Co-authored-by: Ali Mosajjal <hi@n0p.me>
    ruokeqx and mosajjal authored Jan 24, 2025
    Configuration menu
    Copy the full SHA
    b8b13d7 View commit details
    Browse the repository at this point in the history

Commits on Feb 6, 2025

  1. endian: fix big endian detection (#110)

    The prior implementation of Htons attempted big endian detection via
    comparison of binary.NativeEndian.String() with binary.BigEndian.String().
    It turns out that the former always returns "NativeEndian", hence it
    didn't work as intended.
    
    Rewrite endian detection by passing []byte{0x12, 0x34} through
    Endian.Uint16(). Add test to ensure that detection works both on little
    and big endian CPUs.
    mejedi authored Feb 6, 2025
    Configuration menu
    Copy the full SHA
    9c54b11 View commit details
    Browse the repository at this point in the history

Commits on Feb 14, 2025

  1. updated go to 1.23

    mosajjal committed Feb 14, 2025
    Configuration menu
    Copy the full SHA
    de38b3e View commit details
    Browse the repository at this point in the history

Commits on Mar 13, 2025

  1. Bump golang.org/x/net from 0.35.0 to 0.36.0 (#114)

    Bumps [golang.org/x/net](https://github.com/golang/net) from 0.35.0 to 0.36.0.
    - [Commits](golang/net@v0.35.0...v0.36.0)
    
    ---
    updated-dependencies:
    - dependency-name: golang.org/x/net
      dependency-type: direct:production
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Mar 13, 2025
    Configuration menu
    Copy the full SHA
    1864a57 View commit details
    Browse the repository at this point in the history

Commits on Apr 13, 2025

  1. Making SIP parsing a bit more strict (#109)

    Adding truncated indication if header section is not complete, and return an error if first line is empty, and tests to tests these scenarios.
    
    Tests have been updated to test for truncated indicator, and test helper-functions are now marked as such.
    thorsager authored Apr 13, 2025
    Configuration menu
    Copy the full SHA
    f3aec87 View commit details
    Browse the repository at this point in the history
  2. geneve: implement DecodingLayer (#115)

    Before this patch, the Geneve layer would not fully implement
    DecodingLayer. This would prevent Geneve to be added as a DecodingLayer
    to gopacket.NewDecodingLayerParser():
    
        cannot use &Geneve{} (value of type *Geneve) as gopacket.DecodingLayer value in argument to gopacket.NewDecodingLayerParser: *Geneve does not implement gopacket.DecodingLayer (missing method CanDecode)
    
    This patch implements (*Geneve).CanDecode() and a test to ensure Geneve
    can be used as a DecodingLayer.
    
    Signed-off-by: Alexandre Perrin <alex@isovalent.com>
    kaworu authored Apr 13, 2025
    Configuration menu
    Copy the full SHA
    2b39da4 View commit details
    Browse the repository at this point in the history
  3. Enable decoding/encoding additional RadioTap namespaces and Vendor na…

    …mespaces (#116)
    
    * Enable parsing additional RadioTap namespaces and Vendor namespaces
    
    * A few more test checks
    robertkleffner authored Apr 13, 2025
    Configuration menu
    Copy the full SHA
    9e6e05d View commit details
    Browse the repository at this point in the history
  4. updated dependencies

    mosajjal committed Apr 13, 2025
    Configuration menu
    Copy the full SHA
    86eba08 View commit details
    Browse the repository at this point in the history

Commits on May 11, 2025

  1. gtpv1u: check message type when decoding payload (#112)

    GTPv1U has different message types. Data (255) carries nested IPv4, IPv6
    or PPP packet.  Other messages such as Echo Request / Response don't.
    
    Check the message type first and only parse payload as IPv4 / IPv6 / PPP
    in data PDUs.
    mejedi authored May 11, 2025
    Configuration menu
    Copy the full SHA
    eec1516 View commit details
    Browse the repository at this point in the history

Commits on May 13, 2025

  1. Potential fix for code scanning alert no. 5: Workflow does not contai…

    …n permissions (#118)
    
    Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
    mosajjal and github-advanced-security[bot] authored May 13, 2025
    Configuration menu
    Copy the full SHA
    b23ac34 View commit details
    Browse the repository at this point in the history

Commits on Jul 21, 2025

  1. add ability to handle pointers in layerString (#121)

    * add ability to handle pointers in layerString
    
    * copilot suggestions
    wardviaene authored Jul 21, 2025
    Configuration menu
    Copy the full SHA
    578eb20 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    be3fffa View commit details
    Browse the repository at this point in the history

Commits on Aug 1, 2025

  1. ipsec: implement DecodingLayer (#117)

    * ipsec: implement DecodingLayer
    
    Before this patch, the IPSecAH and IPSecESP layer would not fully implement
    DecodingLayer. This would prevent them to be added as a DecodingLayer
    to gopacket.NewDecodingLayerParser():
    
        cannot use &IPSecAH{} (value of type *IPSecAH) as gopacket.DecodingLayer value in argument to gopacket.NewDecodingLayerParser: *IPSecAH does not implement gopacket.DecodingLayer (missing method CanDecode)
    
    This patch implements (*IPSecAH).CanDecode() and (*IPSecESP).CanDecode()
    and a test to ensure they can be used as a DecodingLayer.
    
    Signed-off-by: Simone Magnani <simone.magnani@isovalent.com>
    
    * Update layers/ipsec.go
    
    Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
    
    ---------
    
    Signed-off-by: Simone Magnani <simone.magnani@isovalent.com>
    Co-authored-by: Ali <hi@n0p.me>
    Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
    3 people authored Aug 1, 2025
    Configuration menu
    Copy the full SHA
    1b6e82a View commit details
    Browse the repository at this point in the history
  2. Feature/add serialize to ipv6 routing (#111)

    * add SerializeTo IPv6Routing
    
    Signed-off-by: sat0ken <15720506+sat0ken@users.noreply.github.com>
    
    * add SerializeTo IPv6Routing
    
    Signed-off-by: sat0ken <15720506+sat0ken@users.noreply.github.com>
    
    * Update layers/ip6.go
    
    Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
    
    ---------
    
    Signed-off-by: sat0ken <15720506+sat0ken@users.noreply.github.com>
    Co-authored-by: Ali <hi@n0p.me>
    Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
    3 people authored Aug 1, 2025
    Configuration menu
    Copy the full SHA
    2e40d04 View commit details
    Browse the repository at this point in the history
Loading