Guy Harris wrote: > On Fri, Nov 02, 2001 at 11:49:19PM -0800, ganglu wrote: [...] >>One other thing, how can I write data directly to the device instead of >>through TCP/UDP? >> > > That depends on the OS you're running. Currently, libpcap has no > support for transmitting packets; you'd have to use whatever raw packet > I/O mechanism your OS has (which is probably the same mechanism that > libpcap uses to read raw packets).
Raw sockets will allow you to send formatted IP datagrams, while packet sockets will allow you to construct your own frames, AFAIK. Only root can open raw and packet sockets, although, under Linux, you can probably do it if you have CAP_<something or other> :-) YMMV. -- Richard Sharpe, [EMAIL PROTECTED], LPIC-1 www.samba.org, www.ethereal.com, SAMS Teach Yourself Samba in 24 Hours, Special Edition, Using Samba - This is the TCPDUMP workers list. It is archived at http://www.tcpdump.org/lists/workers/index.html To unsubscribe use mailto:[EMAIL PROTECTED]?body=unsubscribe
