Skip to content

Fix timestamp by keeping sctp layer#1

Open
kjh-wg2 wants to merge 1 commit intomoiji-mobile:masterfrom
kjh-wg2:master
Open

Fix timestamp by keeping sctp layer#1
kjh-wg2 wants to merge 1 commit intomoiji-mobile:masterfrom
kjh-wg2:master

Conversation

@kjh-wg2
Copy link

@kjh-wg2 kjh-wg2 commented Jan 12, 2021

Add the original timestamp of the SCTP layer to all the split up packets.

for pkt in pcap:
ip = pkt['IP']
layer = ip.payload
sctp = ip.payload
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shall we move this assignment to inside the layer.name == 'SCTP'?

sctp = ip.payload
while layer.name != 'NoPayload':
if layer.name == 'SCTP':
sport = layer.sport
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess we can mostly remove this or replace this with sctp = layer and forget about sport/dport/tag? WDUT?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants