Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Retrieve protocol in lower case
#1
Hey guys, im trying to retrieve the protocol, but comes up in Uppercase, i need to retrieve it in lower case.
This is my code.

protocol = ip.get_proto(ip.p).__name__
Thank you
Quote
#2
convert it using lower()
Quote

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  Splitting the audio file into smaller packets before transfer using UDP protocol in p MuhammadAli152 0 80 May-15-2020, 03:01 PM
Last Post: MuhammadAli152
  lower() applied at in operator Beerforfree 3 214 Mar-22-2020, 11:51 AM
Last Post: ndc85430
  How to change a dataframe column to lower case zhujp98 5 1,384 Oct-29-2019, 06:42 PM
Last Post: zhujp98
  Help Importing Protocol Library Into Scapy joedirgy 0 482 May-02-2019, 07:31 PM
Last Post: joedirgy
  How to only extract upper or lower triangular matrix into tabular form SriRajesh 3 6,760 Jan-04-2019, 01:21 AM
Last Post: scidam
  Pelco D protocol D_frucht 4 2,168 May-30-2018, 08:21 PM
Last Post: D_frucht
  How do I loop through a list and delete numerical elements that are 1 lower/higher? neko 4 1,686 Sep-05-2017, 02:25 PM
Last Post: ichabod801

Forum Jump:


Users browsing this thread: 1 Guest(s)