]> git.ipfire.org Git - thirdparty/xtables-addons.git/commit
xt_ipp2p: add helper for matching "\r\n"
authorJeremy Sowden <jeremy@azazel.net>
Mon, 5 Jun 2023 15:10:40 +0000 (00:10 +0900)
committerJan Engelhardt <jengelh@inai.de>
Tue, 6 Jun 2023 12:18:29 +0000 (21:18 +0900)
commitee1c4c7288909b5deefdc3c7ed462b849944326d
treed38aa4527307a71413868b973ed37264bf8a446a
parent2c5d0956a9b7de7dfaa3d802d485af5e1b46ef38
xt_ipp2p: add helper for matching "\r\n"

There are repeated checks that:

pkt[x] == 0x0d && pkt[x + 1] == 0x0a

Replace them with ``iscrlf(&pkt[x])`` function calls.

Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
extensions/xt_ipp2p.c