From: "bunty " Subject: unable to call ntohs function in kernel module Date: 3 Dec 2004 10:20:29 -0000 Message-ID: <20041203102029.23445.qmail@webmail25.rediffmail.com> Reply-To: "bunty " Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="Next_1102069228---0-203.199.83.147-23428" Cc: netdev@oss.sgi.com Return-path: To: kernelnewbies@nl.linux.org Sender: kernelnewbies-bounce@nl.linux.org Errors-to: kernelnewbies-bounce@nl.linux.org List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-subscribe: List-owner: List-post: List-archive: List-Id: netdev.vger.kernel.org This is a multipart mime message --Next_1102069228---0-203.199.83.147-23428 Content-type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline hello,=0AWhat i observed about noths with respect to Fedora core 1 kernel i= s that if i write a simple network C program i can call ntohl, ntohs,htonl,= htons from netinet/in.h but same if i call from kernel module why it gives = ntohs unresolved symbol error?=0AAlso if try to include netinet/in.h it wil= l give me errors at compile time.=0A=0Aregards,=0Aparag.=0A --Next_1102069228---0-203.199.83.147-23428 Content-type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline

=0Ahello,
=0AWhat i observed about noths with respect to Fedora core = 1 kernel is that if i write a simple network C program i can call ntohl, nt= ohs,htonl,htons from netinet/in.h but same if i call from kernel module why= it gives ntohs unresolved symbol error?
=0AAlso if try to include netin= et/in.h it will give me errors at compile time.
=0A
=0Aregards,
= =0Aparag.
=0A=0A

=0A

=0A=0A --Next_1102069228---0-203.199.83.147-23428-- -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/