Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 May 2001 10:20:45 +0200 
From:      Gunnar Olsson <gunnar.olsson@xelerated.com>
To:        "Freebsd Net (E-mail)" <freebsd-net@freebsd.org>, "Freebsd Hackers (E-mail)" <freebsd-hackers@freebsd.org>
Subject:   how to use netgraph?
Message-ID:  <31A473DBB655D21180850008C71E251A031AAF3A@mail.kebne.se>

next in thread | raw e-mail | index | archive | help
Hi there,
I have a process in user space, that wants to send a packet
direct on the ethernet, not encapsulate the packet in IP.
When I read about netgraph, it looks like it possible to do, or?
When I hook to a upper or a lower hook, does the kernel create
the ethernet header, or do I have to create the ethernet header
in the user process myself before sending down?

If the kernal is adding the ethernet header,
what is actually sent out on the wire? Usaully an ARPLOOKUP
is done and maps the IP dst to a MAC dst, but now I do not
have the IP header. How to get the MAC dst field filled in?

If someone has an example how to write a small
program that using the netgragh to sent a packet down
via an hook, I would be so happy if you could send that
to me:-)

Best Regards
Gunnar
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Gunnar Olsson                             Phone: +46 8 5062 5762   
Xelerated Packet Devices AB         Fax:     +46 8 5455 3211
Regeringsgatan 67                          Mobile: +46 73 3279765
SE-10386 Stockholm
Web:   http://www.xelerated.com
Email:  mailto:gunnar.olsson@xelerated.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~





To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?31A473DBB655D21180850008C71E251A031AAF3A>