Date: Mon, 29 Sep 2008 12:21:55 +1300 From: "Ryan French" <rjf12@students.waikato.ac.nz> To: freebsd-net@freebsd.org Subject: Initialisation of a networking protocol Message-ID: <f7ab8f150809281621y6285b624k10e3cfc700a74064@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
Hi everyone, I'm having a bit of trouble with my MPLS protocol code at the moment. I have the code written and compiling (mostly based on some OpenBSD code I was shown) but when an MPLS packet is received it doesnt appear as thou my mpls_input routine is being called. I believe this is because I have not initialised the protocol properly. I have created protosw structure for MPLS as well as created an mpls_init(void) function which registers the protocol with netisr via netisr_register. Other than that I am not really sure where I tell the kernel to call the mpls_init function so that the protocol is initialised, and a couple of hours of googling/looking through ip6 code hasnt really helped at all. If anyone can help and needs to see the code it can be viewed on Perforce at http://perforce.freebsd.org/depotTreeBrowser.cgi?FSPC=//depot/projects/soc2008/rfrench_mpls&HIDEDEL=NO Thanks for any help. - Ryan French
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?f7ab8f150809281621y6285b624k10e3cfc700a74064>