mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 00:28:21 +00:00
Fix types when constructing SYN_packet record.
The types used by the core did not match the types expected by the scripting framework, leading, e.g., to trouble with the logging framework. Discovered and fixed by Grant Moyer. Fixes BIT-1650
This commit is contained in:
parent
f6ff7f1e66
commit
4f51d6fc47
1 changed files with 4 additions and 4 deletions
|
@ -105,11 +105,11 @@ static RecordVal* build_syn_packet_val(int is_orig, const IP_Hdr* ip,
|
|||
|
||||
v->Assign(0, new Val(is_orig, TYPE_BOOL));
|
||||
v->Assign(1, new Val(int(ip->DF()), TYPE_BOOL));
|
||||
v->Assign(2, new Val(int(ip->TTL()), TYPE_INT));
|
||||
v->Assign(3, new Val((ip->TotalLen()), TYPE_INT));
|
||||
v->Assign(4, new Val(ntohs(tcp->th_win), TYPE_INT));
|
||||
v->Assign(2, new Val((ip->TTL()), TYPE_COUNT));
|
||||
v->Assign(3, new Val((ip->TotalLen()), TYPE_COUNT));
|
||||
v->Assign(4, new Val(ntohs(tcp->th_win), TYPE_COUNT));
|
||||
v->Assign(5, new Val(winscale, TYPE_INT));
|
||||
v->Assign(6, new Val(MSS, TYPE_INT));
|
||||
v->Assign(6, new Val(MSS, TYPE_COUNT));
|
||||
v->Assign(7, new Val(SACK, TYPE_BOOL));
|
||||
|
||||
return v;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue