Skip to content
Snippets Groups Projects
Commit 78d4ed1f authored by Tomas Krizek's avatar Tomas Krizek
Browse files

Merge branch 'extract-clients-ports-53' into 'master'

extract-clients: reset UDP port numbers in output to 53

See merge request !56
parents 6a9c4fef 468990a6
No related branches found
No related tags found
1 merge request!56extract-clients: reset UDP port numbers in output to 53
Pipeline #88044 failed
......@@ -223,8 +223,8 @@ while true do
obj_pcap_out.caplen = obj_pcap_out.len
put_uint16_be(bytes, 4, obj_udp.ulen) -- IPv6 payload length
put_uint16_be(bytes, 40, obj_udp.sport)
put_uint16_be(bytes, 42, obj_udp.dport)
put_uint16_be(bytes, 40, 0x0035) -- normalized src port 53
put_uint16_be(bytes, 42, 0x0035) -- normalized dst port 53
put_uint16_be(bytes, 44, obj_udp.ulen)
put_uint16_be(bytes, 46, obj_udp.sum)
ffi.copy(bytes + HEADERSLEN, obj_pl.payload, obj_pl.len)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment