> Scott Aitchison wrote:
> > Hi all.
> >
> > I'm trying to call a function from a kernel module
> that is within the kernel (ip_cksum).  However,
> everytime I load the module, I get an "undefined
> symbol" message for it.
> >
> > I think I'm missing something basic here, but I'm
> not sure what it is.  What options do I have to pass
> to "ld" when linking the module to give it access to
> functions like ip_cksum?
> >
> > Thanks,
> > -Scott.
> >  
> >  
> > This message posted from opensolaris.org
> > _______________________________________________
> > opensolaris-code mailing list
> > [email protected]
> >
> http://mail.opensolaris.org/mailman/listinfo/opensolar
> is-code
> >   
> 
> You need to set up a dependency to the right module.
>  ip_cksum is
> robably in drv/ip, so -N drv/ip in your ld command
> line.
> 
> Calling ip_cksum is probably not a good idea, btw.
>  Its not a public
> unction, and subject to change.
> 
> -- 
> Garrett D'Amore, Principal Software Engineer
> Tadpole Computer / Computing Technologies Division,
> General Dynamics C4 Systems
> http://www.tadpolecomputer.com/
> Phone: 951 325-2134  Fax: 951 325-2191
> 
> _______________________________________________
> opensolaris-code mailing list
> [email protected]
> http://mail.opensolaris.org/mailman/listinfo/opensolar
> is-code
> 

Thanks for your help Garrett.  That did it.  I come from a Linux background, so 
I'm still learning all these little details.

Is there an approved way of calculating checksums (UDP/TCP/IP) on Solaris?  Or 
is it up to the module writers to make their own?

-Scott.
 
 
This message posted from opensolaris.org
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to