nullb

Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • in reply to: State table in memory? #11816
    nullb
    Participant

    I didn’t realize it was single threaded, I guess I don’t need the mutex then since the simple_packet_filter will be doing all the logic itself.

    in reply to: State table in memory? #11814
    nullb
    Participant

    I see, are filters created under the simple_packet_filter type single threaded then? For starters I modified the dnstrace example, to do some drops which works fine.

    But if I wanted to add the state table to that example I’d have to declare a vector and mutex outside the main class then pass it into the creation function of simple_packet_filter correct?

    in reply to: State table in memory? #11812
    nullb
    Participant

    Is there any examples at all about storing data in a filtering function then referring back to it, I’m not even entirely sure how this is implemented is mutex locking required etc?

    in reply to: State table in memory? #11806
    nullb
    Participant

    That’s a table of filters, I want to store source IPs I’ve validated somewhere in shared memory that can be checked against. And if the IP isn’t in the array drop the packet basically.

Viewing 4 posts - 1 through 4 (of 4 total)