Python Forum
Retrieve protocol in lower case
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
Reply
#2
convert it using lower()
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to apply function lower() to the list? Toltimtixma 2 756 Feb-10-2023, 05:15 PM
Last Post: Toltimtixma
  Beginner Higher Lower Game wallytan 2 1,537 Sep-29-2022, 05:14 PM
Last Post: deanhystad
  I have an issue with Netmiko Error reading SSH protocol banner omarhegazy 2 3,510 May-16-2022, 06:05 PM
Last Post: omarhegazy
  Switch case or match case? Frankduc 9 4,385 Jan-20-2022, 01:56 PM
Last Post: Frankduc
  Programming a routing protocol leemao 2 2,139 Jul-13-2021, 05:47 PM
Last Post: leemao
  Splitting the audio file into smaller packets before transfer using UDP protocol in p MuhammadAli152 0 3,643 May-15-2020, 03:01 PM
Last Post: MuhammadAli152
  lower() applied at in operator Beerforfree 3 2,258 Mar-22-2020, 11:51 AM
Last Post: ndc85430
  How to change a dataframe column to lower case zhujp98 5 6,206 Oct-29-2019, 06:42 PM
Last Post: zhujp98
  Help Importing Protocol Library Into Scapy joedirgy 0 2,039 May-02-2019, 07:31 PM
Last Post: joedirgy
  How to only extract upper or lower triangular matrix into tabular form SriRajesh 3 25,462 Jan-04-2019, 01:21 AM
Last Post: scidam

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020