Re: [nox-dev] Accessing TCP sequence numbers on packet-in-events

2011-10-12 Thread andrea simeoni
Hi KK, I think it is exactly want I need to solve my problem. Now the question is: I need to call the static pull_tcp(..) function defined in flow.cc. Well how do I include that file? Maybe it's a stupid question, but I'm not so used to C++. Thank you in advance 2011/10/11 kk yap > Hi Andrea,

Re: [nox-dev] Accessing TCP sequence numbers on packet-in-events

2011-10-12 Thread kk yap
Hi Andrea, My suggestion would be for you to overload the Flow struct with your own. In that new struct, you can override how pull_tcp works and have an additional field that stores the seq number. Try not to muck with the main distribution, though it is the convenient thing to do (at least in t

Re: [nox-dev] Accessing TCP sequence numbers on packet-in-events

2011-10-12 Thread andrea simeoni
Hi KK, Thank you for the answer. I was able to call the pull_tcp(..) function, on the event buffer. By calling this function I would be able to get a tcp_header structure, or 0 in case something went wrong. And guess what I get from this function :) ? Always 0; even if the event buffer contains a