Request For Some help On Netgraph

Gleb Smirnoff glebius at cell.sick.ru
Fri Feb 20 14:05:42 PST 2004


On Fri, Feb 20, 2004 at 11:52:22AM -0800, Arunav Roy wrote:
A> 	I have tried out a few things and I have faced
A> problems in few things such as : 
A> 1)  How to print the packet information on the konsole
A> when the packet passes through the node. 

Use printf(). :)

A> 2)  How can I make changes in the Packet header 

Make sure to read mbuf(9) manpage.
Look into source of nodes, which are shipped with FreeBSD.
They are really nice examples of netgraph code.

A> 3)  What are the different types of errors which we
A> can induce in  TCP/IP connection  
A>      to test the reliability of TCP/IP 

What kind of errors do you mean? There can be definitely
two types:

- normal network errors, such as packet loss, delay,
  duplication, checksum mismatch and else...
- errors in particular implementations of TCP

What kind do you want to simulate?

-- 
Totus tuus, Glebius.
GLEBIUS-RIPN GLEB-RIPE


More information about the freebsd-net mailing list