From 88c7ca9b4fbba08a66136b654a0ac205a30fc91a Mon Sep 17 00:00:00 2001 From: pbi Date: Thu, 24 Mar 2005 15:19:33 +0000 Subject: [PATCH] - made it possible to use a PacketList as a parameter for send* or sr* --- scapy.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scapy.py b/scapy.py index b5a59a6ed..b082a5cc4 100755 --- a/scapy.py +++ b/scapy.py @@ -21,6 +21,9 @@ # # $Log: scapy.py,v $ +# Revision 0.9.17.62 2005/03/24 16:19:33 pbi +# - made it possible to use a PacketList as a parameter for send* or sr* +# # Revision 0.9.17.61 2005/03/23 18:27:06 pbi # - used init_cookie for ISAKMP.answers() # - raised an exception in route.make_route if parameters are incomplete @@ -655,7 +658,7 @@ from __future__ import generators -RCSID="$Id: scapy.py,v 0.9.17.61 2005/03/23 18:27:06 pbi Exp $" +RCSID="$Id: scapy.py,v 0.9.17.62 2005/03/24 16:19:33 pbi Exp $" VERSION = RCSID.split()[2]+"beta" @@ -1422,6 +1425,8 @@ class SetGen(Gen): def __init__(self, set): if type(set) is list: self.set = set + elif isinstance(set, PacketList): + self.set = list(set) else: self.set = [set] def transf(self, element):