Florian Maury
784f44c880
Moving into another file the unit tests related to fields
2017-02-07 10:18:41 +01:00
Guillaume Valadon
3642cb9533
Merge pull request #438 from mtury/master
...
Fix issue #408 : complex ASN1 fields randval()
2017-02-03 16:25:26 +01:00
Pierre Lalet
afec3130e3
Merge pull request #480 from jsebechlebsky/pptp_support
...
PPTP support (Enhanced GRE, PPP LCP, PPTP Control Connection)
2017-02-02 18:24:07 +00:00
mtu
9888e6c471
Fix complex ASN1 fields randval()
2017-02-01 13:36:22 +01:00
Guillaume Valadon
a6589c9f18
Dot11 unit tests
2017-01-31 12:57:35 +01:00
Jan Sebechlebsky
836390ee15
Add PPTP related tests
2017-01-31 11:31:17 +01:00
Guillaume Valadon
67ee2f3b7a
Merge pull request #495 from p-l-/fix-inet6addr
...
inet_{pton,ntop}: reorganize, cleanup and improve tests
2017-01-30 16:28:20 +01:00
Pierre Lalet
d2f960092b
Merge pull request #483 from guedou/codecov_5
...
[coverage] SCTP & DHCP tests
2017-01-29 15:17:02 +00:00
Pierre LALET
01110e502e
inet_{pton,ntop}: reorganize, cleanup and improve tests
2017-01-29 16:04:12 +01:00
Guillaume Valadon
85d43059d0
Merge pull request #492 from hdnivara/pr/ipv4-addr-check
...
Error out incorrect IPv4 format in IPv6 addresses in inet_pton
2017-01-28 08:41:54 +01:00
Aravindhan Dhanasekaran
2e95845562
Unit tests for IPv6 addresses with inet_pton
2017-01-26 10:32:19 -08:00
Pierre LALET
c1cc3bd600
ls(): fix tuple values display like "ls(IP(ttl=(1,10)))"
2017-01-25 19:27:46 +01:00
Pierre LALET
f1b41e4213
Fix typo in tests
2017-01-25 18:48:30 +01:00
Pierre LALET
158350c279
Retry .whois() test on failure
2017-01-24 22:10:03 +01:00
plorinquer
2c9092a612
EAPOL-MKA (MACsec Key Agreement protocol) support. ( #446 )
2017-01-24 18:20:52 +00:00
Guillaume Valadon
e4ed84e06e
DHCP tests
2017-01-24 11:38:26 +01:00
Guillaume Valadon
ee950aaa2a
SCTP tests
2017-01-24 11:38:26 +01:00
ngkokkee
e63ecd7bc4
Fix IA_PD length error ( #428 )
...
* Fix IA_PD length error
I tested this and noticed wireshark wasn't parsing the message correctly. Turns out the length is wrong.
* Update regression.uts
Fix test for DHCP6OptIA_PD
* Update length of DHCP6OptIA_PD in test.
2017-01-24 11:34:33 +01:00
Pierre LALET
17ec20bdca
FlagValue: support multiple flags check at once
...
This PR makes it possible to check if several flags are all set, by
writting, for example, `if pkt[TCP].flags.SA:`.
It only works for single letter flags (e.g., will work for TCP().flags
but not for IP().flags), and only when getting a value.
Thanks @guedou for suggesting that.
2017-01-24 08:18:41 +01:00
Pierre LALET
f0bfaf7501
Cleanup & test logical operations on flags
2017-01-24 08:18:41 +01:00
Pierre LALET
c92fb3da1c
Handle FlagValue fields changes with .raw_packet_cache
2017-01-24 08:18:41 +01:00
Pierre LALET
05841bb383
FlagValue objects are now mutable.
...
It is now possible to write `pkt[TCP].flags.S = True`.
2017-01-24 08:18:41 +01:00
Pierre LALET
fc6a4caaf1
Introduce FlagValue(int) objects to represent FlagsField() values
...
This makes it possible to write `if pkt[TCP].flags.S: [...]`.
2017-01-24 08:18:41 +01:00
gpotter2
0c9b9089ab
[coverage/Tiny fixes] Fixed some appveyor.yml tests ( #481 )
2017-01-22 15:51:46 +00:00
Guillaume Valadon
823bd4bdaf
Unit tests fixed to test Route() methods on Windows
2017-01-21 10:59:25 +01:00
Guillaume Valadon
b368c0d877
get_dummy_interface() added thanks to gpotter2
2017-01-21 10:59:25 +01:00
Guillaume Valadon
40686429e6
Fix in6_getLocalUniquePrefix() unit test
2017-01-21 10:59:25 +01:00
Guillaume Valadon
85e408d451
Fix CPython & pypy random outputs
2017-01-21 10:59:25 +01:00
Guillaume Valadon
5e7624b8ea
get_if_raw_addr(): unified behavior
2017-01-21 10:59:25 +01:00
Guillaume Valadon
6e9b02642b
More regression tests
2017-01-21 10:59:25 +01:00
Guillaume Valadon
932bd772f4
Typo
2017-01-21 10:59:25 +01:00
Pierre LALET
2664ff8802
Use SourceIPField in HSRPmd5
2017-01-20 09:08:32 +01:00
Pierre LALET
9ca0b3f7ec
Fix SourceIPField() + add a couple of tests
2017-01-20 08:31:31 +01:00
Pierre Lalet
1b5c24df2c
Merge pull request #464 from guedou/codecov_4
...
[coverage] VRRP, L2TP, HSRP, RIP, & Radius tests
2017-01-20 07:30:21 +00:00
Pierre Lalet
d235d24ce2
Merge pull request #473 from gpotter2/fix-pickle
...
[coverage] main.py tests
2017-01-19 19:29:42 +00:00
Guillaume Valadon
8338dc3949
VRRP, L2TP, HSRP, RIP, & Radius tests
2017-01-19 09:26:35 +01:00
Benjamin
fcb62e79a1
Fix issue #359 : Bin to str conversion of IPv6 addresses ( #431 )
2017-01-18 18:51:23 +00:00
gpotter2
b3ef12b743
Add main.py tests
2017-01-17 22:37:30 +01:00
Pierre LALET
5069fcff0b
Fix a bug in Source*Fields: p[layer].field != p.field
...
A new test that triggers the bug (with ARPSourceMACField) has been added.
2017-01-16 20:15:29 +01:00
Guillaume Valadon
ad0bc43283
AS resolvers tests
2017-01-16 13:41:03 +01:00
gpotter2
18fe02f7e7
[Windows] Fix AutoCompletion + add tests ( #465 )
2017-01-15 17:32:00 +00:00
gpotter2
90da76f56b
[Networking/Windows] Added IPv6 support ( #398 )
...
Fix IPv6 support on Windows
2017-01-13 07:25:04 +00:00
Guillaume Valadon
fdb7380c4f
Merge pull request #457 from plorinquer/eap-md5
...
EAP_MD5 class added.
2017-01-12 21:36:25 +01:00
Pierre LALET
0aa0633505
Fix empty LLTDAttribute build & dissect
...
- LLTDAttribute() produces a Raw instance (or crashes, when
conf.debug_dissector is set).
- str(LLTDAttribute(type=18)) crashes.
2017-01-11 17:38:51 +01:00
Pierre LALET
5fbdd49b1b
New defrag() test
2017-01-11 16:39:51 +01:00
Pierre Lorinquer
7b458aecfe
EAP_MD5 class added.
2017-01-11 14:03:54 +01:00
Pierre LALET
9e0e882ecc
Add new IP-related tests
2017-01-11 12:54:10 +01:00
Pierre LALET
be152458ce
Adapt send_and_sniff() test function to work under Windows
...
Thanks @gpotter2
2017-01-09 21:45:37 +01:00
Pierre LALET
4da93c9a92
Add tests for sniff(), send(), sendp()
2017-01-09 21:12:47 +01:00
Pierre LALET
b1b741c5f1
Tests: introduce "crypto" keyword
...
Pypy won't run crypto tests on Travis CI because the cryptography
module cannot be installed with the Pypy version used.
2017-01-06 13:56:05 +01:00