LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 06-22-2009, 11:32 PM   #1
kannansubash
LQ Newbie
 
Registered: Jun 2009
Location: India
Posts: 3

Rep: Reputation: 0
how to do Kernal recompiling


how to do Kernal recompiling

please
do help
 
Old 06-22-2009, 11:49 PM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
You google for "how to compile kernel" and read all about it. eg.
http://www.cyberciti.biz/tips/compil...kernel-26.html
http://www.youtube.com/watch?v=J3L8sLbfCPs

If you have a specific issue, then please ask a specific question.
Like, what do you need to compile the kernel for? Something to do with networking?
While you are at it, please take some time to add your distribution and some sort of location to your profile - this also helps us give you good answers.
 
Old 06-25-2009, 12:18 AM   #3
kannansubash
LQ Newbie
 
Registered: Jun 2009
Location: India
Posts: 3

Original Poster
Rep: Reputation: 0
reply

the current problem i am facing is
i have already posted it here and i have got a reply also
{
I am currently working on a project related to packet sniffing which has been implemented using the concept of raw sockets. I am using C language.
I am able to decode the following details from the packets received from a local network,like:
source and Destination Mac Address
source and Destination IP Address
source and Destination port no

But I am having trouble in decoding the domain name when an user in the local network is logging onto internet.For eg. if a user in the local network is trying to log on to web using his browser say if he has logged on to www.google.com then from the packet I need to get the following details

source Mac Address from which user had logged on
source IP Address from which user had logged on
domain name
}

but still my doubt is when the browser resolves the Domain name to Ip using dns .The browser have to send out a packet right.I want to know which header would contain the detail about domain and Jon Hannah who had replied to that post had told that the packet send out will be a udp packet.If the domain have been cached on the machine how is it resolved.
For getting to the bottom of this problem i thought about doing kernal recompiling for mozilla . I dont is it stupid thing to ask "kernal recompiling for mozilla" & is such a thing possible so pls do help
and i havent got such vast experince in linux c. I learned it all from net regarding socket programming ,raw sockets etc.
 
Old 06-25-2009, 01:43 AM   #4
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Quote:
I dont is it stupid thing to ask "kernal recompiling for mozilla" & is such a thing possible
Sounds like nonsense to me.

What I mean is, what is it you need the kernel to do that (a) it does not do already, and (b) is properly the job of the kernel?
 
Old 06-25-2009, 05:19 AM   #5
iceman47
Senior Member
 
Registered: Oct 2002
Location: Belgium
Distribution: Debian, Free/OpenBSD
Posts: 1,123

Rep: Reputation: 47
Quote:
Originally Posted by kannansubash;3585485
i have already posted it here and i have got a reply also
{
[snip
source Mac Address from which user had logged on
source IP Address from which user had logged on
domain name
}
Yes and if I remember correctly, you got a good answer.
You really want to know the 'domain' of the src packet by just sniffing a random packet ,right?
Like when a user from microsoft.com apt-get updates his rogue Debian machine at work, you wanna just see this: Source IP: <whatever> / Domain: microsoft.com / ..., right?
It doesn't work that way, TCP doesn't work with names, TCP works with IP addresses.
If a certain domainname isn't already being cached on the host OS, a UDP packet is being sent out (ARP) to request the ip address of the target host (eg google.com -> 74.125.127.100).
Then the target system will start it's TCP connection (to 74.125.127.100, _not_ to google.com), but there's _no_ headers defining source dns.
If you really want to know, analyze ARP requests and do a reverse DNS lookup of the source ip.

Last edited by iceman47; 06-25-2009 at 05:23 AM.
 
Old 06-25-2009, 08:13 AM   #6
micxz
Senior Member
 
Registered: Sep 2002
Location: CA
Distribution: openSuSE, Cent OS, Slackware
Posts: 1,131

Rep: Reputation: 75
Quote:
Originally Posted by Simon Bridge View Post
You google for "how to compile kernel" and read all about it. eg.
http://www.cyberciti.biz/tips/compil...kernel-26.html
http://www.youtube.com/watch?v=J3L8sLbfCPs
Cool' I compiled a new kernel. running the lastest; feels good. For some reason the sound does not work but everything else does. I plan to try again' Thanks'
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I disable modules without recompiling my Kernal? thorlin SUSE / openSUSE 1 09-23-2005 07:15 AM
Recompiling Kernal for ATI hongman Linux - Software 2 04-08-2005 04:26 PM
Will recompiling my mandrake kernal make any difference Boffy Linux - General 2 09-05-2004 04:56 PM
recompiling kernal slackware 7.1 gamji44 Slackware 5 09-07-2003 11:41 PM
Recompiling Your Kernal silentgeek Linux - General 2 07-27-2001 03:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 11:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration