You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/API.md
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,6 +43,8 @@ struct ipconf {
43
43
```
44
44
Each `struct wolfIP` instance owns `WOLFIP_MAX_INTERFACES``ipconf` entries—one per link-layer slot. Use the `_ex` helpers to read or update a specific interface; the legacy accessors operate on index `0` for backwards compatibility.
45
45
46
+
If `WOLFIP_ENABLE_FORWARDING` is set to `1` at compile time, the stack performs simple IPv4 forwarding between interfaces. Packets received on one interface whose destinations match another configured interface are re-sent with the IP TTL decreased by one (or an ICMP TTL-exceeded response if the TTL would drop to zero).
47
+
46
48
### Socket Address Structures
47
49
```c
48
50
struct wolfIP_sockaddr_in {
@@ -153,6 +155,11 @@ Initializes a static wolfIP instance.
153
155
- Parameters:
154
156
- s: Pointer to wolfIP instance pointer
155
157
158
+
```c
159
+
size_t wolfIP_instance_size(void);
160
+
```
161
+
Returns the size (in bytes) required to store a `struct wolfIP`. Use this when allocating stacks from custom memory managers.
0 commit comments