From 2fa21ba71061ce2a286bb7c2a37230a0e6d235d1 Mon Sep 17 00:00:00 2001 From: Pierre LALET <pierre.lalet@cea.fr> Date: Sun, 26 Apr 2015 20:08:02 +0200 Subject: [PATCH] Changed RTP field name from `payload` to `payload_type` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fixes #5077 (reported by @immortalus) suggested by Loïc Gremaud (@grelinfo) --- scapy/layers/rtp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scapy/layers/rtp.py b/scapy/layers/rtp.py index 629dccdd..9c28ed38 100644 --- a/scapy/layers/rtp.py +++ b/scapy/layers/rtp.py @@ -32,7 +32,7 @@ class RTP(Packet): BitField('extension', 0, 1), BitFieldLenField('numsync', None, 4, count_of='sync'), BitField('marker', 0, 1), - BitEnumField('payload', 0, 7, _rtp_payload_types), + BitEnumField('payload_type', 0, 7, _rtp_payload_types), ShortField('sequence', 0), IntField('timestamp', 0), IntField('sourcesync', 0), -- GitLab