Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show NTP version and mode instead of question marks #3944

Merged
merged 1 commit into from
Mar 25, 2023

Conversation

evverx
Copy link
Contributor

@evverx evverx commented Mar 17, 2023

In 1e48e13 NTP switched to dispatch_hook and all the fields including "version" and "mode" moved to the NTP subclasses. This PR adjusts the mysummary method accordingly.

With this patch applied tshark() prints something like

   17	Ether / IP / UDP / NTP v4, client
   18	Ether / IP / UDP / NTP v4, server

instead of

   17	Ether / IP / UDP / NTP v??, ??
   18	Ether / IP / UDP / NTP v??, ??

It's a follow-up to 1e48e13

In 1e48e13 NTP switched to
dispatch_hook and all the fields including "version" and "mode" moved to
the NTP subclasses. This PR adjusts the mysummary method accordingly.

With this patch applied tshark() prints something like
```
   17	Ether / IP / UDP / NTP v4, client
   18	Ether / IP / UDP / NTP v4, server
```
instead of
```
   17	Ether / IP / UDP / NTP v??, ??
   18	Ether / IP / UDP / NTP v??, ??
```

It's a follow-up to 1e48e13
@codecov
Copy link

codecov bot commented Mar 17, 2023

Codecov Report

Merging #3944 (8199a03) into master (d05de38) will decrease coverage by 0.49%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #3944      +/-   ##
==========================================
- Coverage   81.64%   81.15%   -0.49%     
==========================================
  Files         326      326              
  Lines       75429    75429              
==========================================
- Hits        61582    61216     -366     
- Misses      13847    14213     +366     
Impacted Files Coverage Δ
scapy/layers/ntp.py 85.05% <100.00%> (+0.27%) ⬆️

... and 24 files with indirect coverage changes

@gpotter2 gpotter2 merged commit c456201 into secdev:master Mar 25, 2023
@gpotter2
Copy link
Member

Thanks for the PR !

@gpotter2 gpotter2 added this to the 2.6.0 milestone Nov 28, 2023
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.

None yet

2 participants