Giter VIP home page Giter VIP logo

Comments (3)

JustinAzoff avatar JustinAzoff commented on July 19, 2024

Ah.. That's in the code that parses /etc/protocols. Your protocols file
seems to have a range defined in it which I am not expecting.

I need to see if that code is still needed or if newer versions of python
have a function in the socket module to lookup a protocol by number. I can
fix this up in the next day or so.
On Apr 18, 2013 4:36 PM, "switchtower" [email protected] wrote:

CentOS 6.4
Python 2.6.6

It seems that what ever I try, I get the following error.
In [4]: d=pynfdump.nfdump.Dumper()

ValueError Traceback (most recent call last)
in ()
----> 1 d=pynfdump.nfdump.Dumper()

/usr/lib/python2.6/site-packages/pynfdump-0.4.0dev-py2.6.egg/pynfdump/nfdump.pyc
in init(self, datadir, profile, sources, remote_host)
119 self.remote_host = remote_host
120 self.set_where()
--> 121 self.protocols = load_protocols()
122
123 def set_where(self, start=None, end=None, filename=None,dirfiles=None,
stdin=False):

/usr/lib/python2.6/site-packages/pynfdump-0.4.0dev-py2.6.egg/pynfdump/nfdump.pyc
in load_protocols()
31 if not line.strip(): break
32 proto, num,_ = line.split(None,2)
---> 33 protocols[int(num)] = proto
34 protocols[0]='ip'
35 f.close()

ValueError: invalid literal for int() with base 10: '141-252'

In [5]:


Reply to this email directly or view it on GitHubhttps://github.com//issues/3
.

from pynfdump.

switchtower avatar switchtower commented on July 19, 2024

Hey Justin,

Thanks for getting back to me so quickly. If you would like me to send the /etc/protocols file to you, let me know. This is a default Cent install with very few changes. Just messing around with our flow data where I work. :)

--Nick

----- Original Message -----

From: "Justin" [email protected]
To: "JustinAzoff/pynfdump" [email protected]
Cc: "switchtower" [email protected]
Sent: Thursday, April 18, 2013 5:48:12 PM
Subject: Re: [pynfdump] ValueError: invalid literal for int() with base 10: '141-252' (#3)

Ah.. That's in the code that parses /etc/protocols. Your protocols file
seems to have a range defined in it which I am not expecting.

I need to see if that code is still needed or if newer versions of python
have a function in the socket module to lookup a protocol by number. I can
fix this up in the next day or so.
On Apr 18, 2013 4:36 PM, "switchtower" [email protected] wrote:

CentOS 6.4
Python 2.6.6

It seems that what ever I try, I get the following error.
In [4]: d=pynfdump.nfdump.Dumper()

ValueError Traceback (most recent call last)
in ()
----> 1 d=pynfdump.nfdump.Dumper()

/usr/lib/python2.6/site-packages/pynfdump-0.4.0dev-py2.6.egg/pynfdump/nfdump.pyc
in init(self, datadir, profile, sources, remote_host)
119 self.remote_host = remote_host
120 self.set_where()
--> 121 self.protocols = load_protocols()
122
123 def set_where(self, start=None, end=None, filename=None,dirfiles=None,
stdin=False):

/usr/lib/python2.6/site-packages/pynfdump-0.4.0dev-py2.6.egg/pynfdump/nfdump.pyc
in load_protocols()
31 if not line.strip(): break
32 proto, num,_ = line.split(None,2)
---> 33 protocols[int(num)] = proto
34 protocols[0]='ip'
35 f.close()

ValueError: invalid literal for int() with base 10: '141-252'

In [5]:


Reply to this email directly or view it on GitHubhttps://github.com//issues/3
.


Reply to this email directly or view it on GitHub .

from pynfdump.

JustinAzoff avatar JustinAzoff commented on July 19, 2024

Ah, It is from a comment:

# 141-252 Unassigned [IANA]

from pynfdump.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.