Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Aug 2003 21:09:54 -0400 (EDT)
From:      Ping Pan <pingpan@cs.columbia.edu>
To:        Jerry Toung <jtoung@arc.nasa.gov>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: new routing protocol
Message-ID:  <Pine.GSO.4.31.0308192106420.2738-100000@muni.cs.columbia.edu>
In-Reply-To: <200308191602.40166.jtoung@arc.nasa.gov>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

I wrote a socket family SOCK_IPOPTION several years ago, where you can
intercept any IP option. In your application, you can open this kind of
sockets to receive control messages, and use raw sockets to send. At the
same time, use the standard routing sockets to play in the userland.

The work was done in 4.2 though. Porting it to 5.0 should be simple.

http://www1.cs.columbia.edu/~pingpan/software_list.htm

- Ping


On Tue, 19 Aug 2003, Jerry Toung wrote:

> dear hackers,
> I am in the process of implementing a routing protocol under 5.0.
> This routing protocol is source route based and requires its own header after
> the ip header and before any other one such as udp,tcp.
>
> (ip)(new_rt_hdr)(udp)(paylaod)
>
> I am requesting your input as to the best way to approach this. I am thinking
> that the quick way would be to open netinet/ip_input.c and for every packet
> with ip->ip_p = NEW_RT_TYPE do my processing. I am not using routing tables,
> I have another mechanism for routing decisions. and for outgoing packets,
> before sending to the appropriate interface, in netinet/ip_output.c insert
> the new routing header then pass the packet to ifp->if_output.
>
> My problem is dealing with debuging and portability. With this raw approach I
> guess I will have to run builkernel and installkernel all the time. How can I
> avoid that? I thought about kernel modules, but I don't know what kind to use
> (SYSCALL_MODULE or DEV_MODULE,etc..) and how about netgraph.? does that make
> sense?
>
> somebody give a pointer and I'll figure out how to proceed.
> I am not that experienced in kernel programming.
> Thanks a lot,
> 	Jerry.
>
> _______________________________________________
> freebsd-hackers@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.31.0308192106420.2738-100000>