def payload_from_raw(raw, linktype=1):
 ip = iplayer_from_raw(raw, linktype)
 try:
  return ip.data.data
 except:
  return ''

def payload_from_raw ( raw , linktype = 1 ) : ip = iplayer_from_raw ( raw , linktype ) try : return ip . data . data except : return ''
get the payload from a packet .