How can I drop packets?

M

Matin

I am running a FreeBSD box as a router on a test network. For my
tests, I have to drop random packets and observe the effects.

What features in C will allow me to drop or preferably delay a packet
before the router forwards the packet?

-Matin
 
M

Mike Wahler

Matin said:
I am running a FreeBSD box as a router on a test network. For my
tests, I have to drop random packets and observe the effects.

What features in C will allow me to drop or preferably delay a packet
before the router forwards the packet?

None at all. The C language has no facilities for
network programming. You'll need a third party library
or perhaps your implementation might provide library
extensions for this.

-Mike
 
H

Harti Brandt

On Tue, 13 Jul 2004, Matin wrote:

M>I am running a FreeBSD box as a router on a test network. For my
M>tests, I have to drop random packets and observe the effects.
M>
M>What features in C will allow me to drop or preferably delay a packet
M>before the router forwards the packet?

You probably better ask on (e-mail address removed)

harti
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,145
Messages
2,570,825
Members
47,371
Latest member
Brkaa

Latest Threads

Top