From owner-freebsd-hackers Mon Jan 29 09:36:54 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id JAA16423 for hackers-outgoing; Mon, 29 Jan 1996 09:36:54 -0800 (PST) Received: from alpha.xerox.com (alpha.Xerox.COM [13.1.64.93]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id JAA16418 for ; Mon, 29 Jan 1996 09:36:50 -0800 (PST) Received: from crevenia.parc.xerox.com ([13.2.116.11]) by alpha.xerox.com with SMTP id <15832(13)>; Mon, 29 Jan 1996 09:36:07 PST Received: from localhost by crevenia.parc.xerox.com with SMTP id <177478>; Mon, 29 Jan 1996 09:36:01 -0800 To: Marxx cc: hackers@freebsd.org Subject: Re: User built packet header generation In-reply-to: Your message of "Sun, 28 Jan 96 19:26:27 PST." Date: Mon, 29 Jan 1996 09:35:57 PST From: Bill Fenner Message-Id: <96Jan29.093601pst.177478@crevenia.parc.xerox.com> Sender: owner-hackers@freebsd.org Precedence: bulk In message 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