Date: Mon, 29 Jan 1996 09:35:57 PST From: Bill Fenner <fenner@parc.xerox.com> To: Marxx <marxx@mars.superlink.net> Cc: hackers@freebsd.org Subject: Re: User built packet header generation Message-ID: <96Jan29.093601pst.177478@crevenia.parc.xerox.com> In-Reply-To: Your message of "Sun, 28 Jan 96 19:26:27 PST." <Pine.SGI.3.91.960128222218.17229A-100000@mars.superlink.net>
next in thread | previous in thread | raw e-mail | index | archive | help
In message <Pine.SGI.3.91.960128222218.17229A-100000@mars.superlink.net> you wr ite: > Has anyone experimented with amnually generating packet headers? >I've done some xpermineting, but ti causes the kernel to panic at >m_copym in /kern/uipc_mbuf.c. Can anyone give em any insight, or a solution? Well, you could look at /usr/src/usr.sbin/traceroute/traceroute.c, which generates its own IP headers. You need to open an IPPROTO_RAW socket, setsockopt(..., IPPROTO_IP, IP_HDRINCL, ...), and then write() a fully formed packet. Bill
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?96Jan29.093601pst.177478>