Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Smoltcp Knowledge Patch?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/nevaberry-smoltcp-knowledge-patch)
---
name: smoltcp-knowledge-patch
description: smoltcp
version: "0.14.0"
license: MIT
metadata:
author: Nevaberry
---
# smoltcp compatibility guidance
Load this skill when updating smoltcp code or working with its feature
configuration, interface behavior, sockets, packet inspection, or wire APIs.
It covers the compatibility changes and capabilities described below.
## Reference index
| Reference | Topics |
| --- | --- |
| [Toolchain and features](references/toolchain-and-features.md) | Rust requirements, `heapless`, Ethernet, routing, DNS, IPv6 and multicast builds |
| [Interfaces and addressing](references/interfaces-and-addressing.md) | SLAAC, polling, AnyIP checks, IPv6 fragmentation, address removal |
| [Socket behavior](references/socket-behavior.md) | TCP probes, SYN-ACK control, raw sockets, ICMP, `AnySocket` |
| [Packet inspection and wire APIs](references/packet-inspection-and-wire.md) | `Tracer`, `IpRepr`, const CIDRs, endpoint conversion |
## Migration-sensitive changes
### Rust toolchain
smoltcp requires Rust 1.91 or later.
It uses Rust Edition 2024.
### Dependency update
smoltcp uses `heapless` v0.9.
See [toolchain and features](references/toolchain-and-features.md).
### Ethernet with `TunTapInterface`
`TunTapInterface` no longer enables `medium-ethernet` automatically.
Enable `medium-ethernet` explicitly if using the interface with Ethernet.
### Public `Tracer` API
The public `Tracer` API changed to support custom packet inspection
and printing.
See [packet inspection and wire APIs](references/packet-inspection-and-wire.md).
### Removing an interface address
A TCP socket closes when its local IP address is no longer assigned
to the interface. Removing an interface address can therefore close
existing connections.
### IPv6 fragmentation
smoltcp logs and drops IPv6 packets that require fragmentation.
See [interfaces and addressing](references/interfaces-and-addressing.md).
## Feature configuration
### IPv6 SLAAC
Enable the `slaac` Cargo feature to use IPv6 Stateless Address
Autoconfiguration.
Use `slaac_updated_at` to check when the SLAAC addresses were last updated.
### Disable the routing table
Enable `iface_max_route_count-0` to disable the routing table entirely.
### IPv6 and multicast without Ethernet
IPv6 and multicast support can be built with Ethernet disabled.
### DNS without UDP sockets
`socket-dns` can be enabled with `socket-udp` disabled.
See [toolchain and features](references/toolchain-and-features.md)
for these build configuration changes.
## Polling and local-address checks
### Queued socket output
A single `Interface::poll` can drain queued socket output that previously
had to wait for another poll.
### AnyIP checks
Local-address checks honor the interface's `any_ip` setting.
See [interfaces and addressing](references/interfaces-and-addressing.md).
## TCP behavior and application control
### Zero-window probes
TCP probes peers that advertise a zero receive window to detect when
transmission can resume.
### Application-controlled SYN-ACK
Enable `pause_synack` to let application code withhold TCP SYN-ACK responses.
### TCP resets and raw sockets
smoltcp suppresses its TCP reset response when a raw socket handles
the incoming TCP packet.
See [socket behavior](references/socket-behavior.md).
## ICMP, raw sockets, and generic socket APIs
### ICMP binding
An ICMP socket can bind to a TCP port.
### Automatic ICMP echo replies
Enable `no-auto-icmp-echo-reply` to disable automatic ICMP echo replies.
### Unfiltered raw sockets
In unfiltered mode, raw sockets can receive packets across all IP
protocols and versions.
### `Socket` and `AnySocket`
The `Socket` enum implements `AnySocket`, so it can be used where a
generic API requires that trait.
See [socket behavior](references/socket-behavior.md).
## Wire API conveniences
### Generic IP packet parsing
`IpRepr` supports parsing both IPv4 and IPv6 packets through the same
representation.
### Const CIDR initialization
`Cidr` values can be initialized in const contexts.
### Endpoint conversion
A wire `Endpoint` can be converted into a `core::net::SocketAddr`.
```rust
let addr: core::net::SocketAddr = endpoint.into();
```
See [packet inspection and wire APIs](references/packet-inspection-and-wire.md).