add support for reading from filename#1
Open
chemag wants to merge 2 commits intobasvdl:masterfrom
Open
Conversation
Tested: ``` $ make $ ./dhcpdump -n -r /tmp/dhcp.pcap ... TIME: 2020-12-10 09:26:29.123 IP: 10.10.10.100 (aa:aa:aa:aa:aa:aa) > 10.10.10.55 (bb:bb:bb:bb:bb:bb) OP: 2 (BOOTPREPLY) HTYPE: 1 (Ethernet) HLEN: 6 HOPS: 0 XID: ffffffff SECS: 0 FLAGS: 0 CIADDR: 0.0.0.0 YIADDR: 10.10.10.55 SIADDR: 10.10.10.100 GIADDR: 0.0.0.0 CHADDR: BB:BB:BB:BB:BB:BB:00:00:00:00:00:00:00:00:00:00 SNAME: . FNAME: . OPTION: 53 ( 1) DHCP message type 5 (DHCPACK) OPTION: 54 ( 4) Server identifier 10.10.10.100 OPTION: 51 ( 4) IP address leasetime 3600 (60m) OPTION: 58 ( 4) T1 1800 (30m) OPTION: 59 ( 4) T2 3150 (52m30s) OPTION: 1 ( 4) Subnet mask 255.0.0.0 OPTION: 28 ( 4) Broadcast address 10.255.255.255 OPTION: 3 ( 4) Routers 10.10.10.100 OPTION: 6 ( 4) DNS server 10.10.10.100 TIME: 2020-12-10 09:26:29.123 IP: 10.10.10.55 (bb:bb:bb:bb:bb:bb) > 10.10.10.100 (aa:aa:aa:aa:aa:aa) OP: 1 (BOOTPREQUEST) HTYPE: 1 (Ethernet) HLEN: 6 HOPS: 0 XID: eeeeeeee SECS: 0 FLAGS: 0 CIADDR: 10.10.10.55 YIADDR: 0.0.0.0 SIADDR: 0.0.0.0 GIADDR: 0.0.0.0 CHADDR: BB:BB:BB:BB:BB:BB:00:00:00:00:00:00:00:00:00:00 SNAME: . FNAME: . OPTION: 53 ( 1) DHCP message type 7 (DHCPRELEASE) OPTION: 54 ( 4) Server identifier 10.10.10.100 ... ```
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.