HiGarfield
|
ee1e4d33f8
|
fix possible null pointer dereference
cppcheck reports:
network.cpp:1717:22: error: Null pointer dereference: payload [ctunullpointer]
memcpy(tcp_data, payload, payloadlen);
^
client.cpp:193:22: note: Calling function send_raw0, 2nd argument is null
send_raw0(raw_info, 0, 0);
^
network.cpp:2534:20: note: Calling function send_raw_tcp, 2nd argument is null
return send_raw_tcp(raw_info, payload, payloadlen);
^
network.cpp:1717:22: note: Dereferencing argument payload that is null
memcpy(tcp_data, payload, payloadlen);
^
|
2023-10-08 11:37:35 +08:00 |
|
yancey
|
d1a9bcc4fb
|
try to fix linux 6.5 compile
|
2023-10-07 08:26:10 -04:00 |
|
yancey
|
9217e0e9e6
|
fix indent with clang-format
|
2023-02-07 07:11:49 -05:00 |
|
wangyu
|
25d3323427
|
fix mp compile; fix tcp option bug
|
2021-02-17 16:58:32 -05:00 |
|
wangyu
|
026f97687a
|
fix packet_header->caplen <= max_data_len in network.cpp
|
2021-01-09 05:10:12 -05:00 |
|
wangyu
|
59819db2dd
|
do not quit when got pcap error
|
2020-08-27 00:32:07 -04:00 |
|
root
|
e8daf7c263
|
more fix of memory access
|
2020-07-26 19:07:17 +00:00 |
|
wangyu
|
5a51248cb0
|
unify udpraw linux and mp branch
|
2020-07-15 15:29:32 -04:00 |
|
wangyu
|
79bb28fd12
|
introduce huge_buf_len and huge_data_len
|
2020-07-15 03:59:58 -04:00 |
|
wangyu
|
b3e06de4cb
|
do not drop truncated packet if fix_gro enabled
|
2020-07-15 02:59:42 -04:00 |
|
wangyu
|
8c81f7673b
|
update --fix-gro
|
2019-07-15 13:00:16 -04:00 |
|
root
|
c1dfd4e928
|
--fix-gro works
|
2019-07-15 15:33:16 +00:00 |
|
wangyu
|
7e55b1e132
|
--fix-gro update
|
2019-07-15 10:49:54 -04:00 |
|
wangyu
|
ee787e0d4a
|
added --fix-gro
|
2019-07-15 08:36:06 -04:00 |
|
wangyu-
|
0137dba1fd
|
fix bug in random port bind
|
2018-11-13 02:37:45 -06:00 |
|
root
|
f0e36d7d7c
|
fixed a core
|
2018-08-31 17:10:46 +00:00 |
|
wangyu-
|
92fcdbb31a
|
reduce diff
|
2018-08-29 20:00:37 -05:00 |
|
wangyu-
|
8331610e7a
|
reduce diff
|
2018-08-29 16:48:45 -05:00 |
|
wangyu-
|
a3535364fa
|
fixed fifo at client side
|
2018-08-29 12:29:41 -05:00 |
|
wangyu-
|
4e9000c6b5
|
sync easyfaketcp,fixed a bug in try_to_list_and_bind2
|
2018-08-29 12:19:09 -05:00 |
|
wangyu-
|
a4aba62656
|
sync easy-tcp and other options from mp version
|
2018-08-29 05:25:44 -05:00 |
|
wangyu-
|
0980d89072
|
sync more updates from mp
|
2018-07-27 02:26:24 -05:00 |
|
wangyu-
|
278ade5d36
|
sync a few mp version update
|
2018-07-26 12:41:55 -05:00 |
|
wangyu-
|
10869eb197
|
changed to custom header definitons
|
2018-07-26 11:25:36 -05:00 |
|
wangyu-
|
1bc20c1cdb
|
changed a log level
|
2018-07-25 05:22:07 -05:00 |
|
wangyu-
|
7ad9a6987c
|
trival
|
2018-07-25 01:52:18 -05:00 |
|
wangyu-
|
184b198470
|
icmpv6 works
|
2018-07-24 08:33:42 -05:00 |
|
wangyu-
|
6ccd056d41
|
ipv6 faketcp and udp works
|
2018-07-24 05:36:56 -05:00 |
|
wangyu-
|
73daa12db1
|
implement raw ipv6 recv, refactor peek_raw
|
2018-07-23 13:52:36 -05:00 |
|
wangyu-
|
80d21e56c7
|
added send_raw_packet() and recv_raw_packet()
|
2018-07-23 09:50:21 -05:00 |
|
wangyu-
|
0682757631
|
changed src_ip and dst_ip in conn_info to new data structure
|
2018-07-22 08:59:09 -05:00 |
|
wangyu-
|
52d540df90
|
use csum_with_header in recv_raw_udp
|
2018-07-22 03:23:53 -05:00 |
|
wangyu-
|
256d1eee69
|
change IPPROTO_TCP to IPPROTO_RAW for raw socket,deleted IP_HDRINCL code
|
2018-07-21 14:26:07 -05:00 |
|
wangyu-
|
9e9ad56890
|
avoid MSG_PEEK
|
2018-07-21 14:23:13 -05:00 |
|
wangyu-
|
3a372b9eee
|
fix a dead loop, moved some code blocks
|
2018-07-20 11:54:57 -05:00 |
|
wangyu-
|
2e8294ab88
|
simplify csum, added tcp option parser
|
2018-07-20 09:29:10 -05:00 |
|
wangyu-
|
fef76af3a5
|
add option --dev to bind to a specific interface
|
2018-07-18 02:02:30 -05:00 |
|
wangyu-
|
736c3f46b6
|
address_t now works
|
2018-07-17 11:33:02 -05:00 |
|
wangyu-
|
5c7d48e711
|
new option set-ttl
|
2018-06-05 11:40:09 -05:00 |
|
wangyu-
|
2c67c319b7
|
fix last commit
|
2018-02-24 18:07:16 -06:00 |
|
wangyu-
|
0c2060028a
|
--max-rst-allowed --max-rst-to-show
|
2018-02-24 17:26:29 -06:00 |
|
wangyu-
|
7cb65ec45d
|
handle truncated packet
|
2018-02-20 06:10:18 -06:00 |
|
wangyu-
|
1bdb6a5720
|
fixed bug of last few commit, and fixed a bug of bind error
|
2017-11-21 14:46:11 -06:00 |
|
wangyu-
|
54f32f0611
|
fixed clear bug,add option random-drop
|
2017-10-11 09:10:38 -05:00 |
|
wangyu-
|
fc05e7f080
|
refactor
|
2017-09-24 03:14:08 -05:00 |
|
wangyu-
|
d778be2bfc
|
refacotr
|
2017-09-23 03:05:23 -05:00 |
|
wangyu-
|
9a959c2dcf
|
fix typo in help page
|
2017-09-06 19:24:39 -05:00 |
|
wangyu-
|
9472fe8bb3
|
seq mode 3 and 4,include git version in help page
|
2017-09-06 05:31:29 -05:00 |
|
wangyu-
|
178327c581
|
refactor
|
2017-09-06 01:37:14 -05:00 |
|
wangyu-
|
698504aca0
|
refactor
|
2017-09-06 01:31:29 -05:00 |
|