- When m_defrag() fails we have to free the mbuf ourselves.
- If the handshake input queue is full, we are responsible for dropping the packet.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
sys/dev/if_wg/module/if_wg_session.c | ||
---|---|---|
1945 | How is this queue locked? |
sys/dev/if_wg/module/if_wg_session.c | ||
---|---|---|
1908–1914 | Hmm, is m_defrag() really needed here? This is a very costly operation due to allocation. Because we only need to get "pkttype", maybe using m_pullup is enough? |
sys/dev/if_wg/module/if_wg_session.c | ||
---|---|---|
1908–1914 | That's a good question. wg_handshake() assumes that the entire packet is contiguous, though, so a pullup to get the packet type is not sufficient. |