LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 10-22-2017, 04:51 PM   #1
swingonaspiral
LQ Newbie
 
Registered: Oct 2017
Posts: 2

Rep: Reputation: Disabled
Question Implementation of Bind for Different Protocols


Good day all,

I'm looking for the source code where the bind system call is implemented for different protocols.

What I think this line is showing is that bind behaves differently based on the socket protocol:

http://elixir.free-electrons.com/lin...socket.c#L1462

Because if you follow that over to here:

http://elixir.free-electrons.com/lin...nux/net.h#L124
http://elixir.free-electrons.com/lin...nux/net.h#L285

I see that kernel_bind drills down to the protocol structure.

http://elixir.free-electrons.com/lin...socket.c#L3269

I can't seem to locate is implementation for each protocol. Any hints you could provide on where these are located would be greatly appreciated.
 
Old 10-24-2017, 03:46 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,576

Rep: Reputation: 191Reputation: 191
You're right in your analysis. You'll get down to functions like inet_bind() elixir.free-electrons.com/linux/latest/ident/inet_bind

Is it what you're searching for?
 
Old 10-24-2017, 05:18 PM   #3
swingonaspiral
LQ Newbie
 
Registered: Oct 2017
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thumbs up

Yes! That's exactly what I was looking for. I am glad that I wasn't crazy. Thank you very much!
 
Old 10-24-2017, 07:17 PM   #4
!!!
Member
 
Registered: Jan 2017
Posts: 610

Rep: Reputation: 233Reputation: 233Reputation: 233
Welcome to LQ!!! (Great 1st Thread) You can use link at top to mark 'Solved'
 
Old 10-25-2017, 03:28 PM   #5
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,576

Rep: Reputation: 191Reputation: 191
No problem and welcome
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
creating domain name in bind problems exposing bind to internal network abhijit_mohanta Linux - Security 1 09-03-2009 02:01 AM
Implementation of Network Protocols rajya Linux - Networking 1 04-12-2009 05:33 AM
Bind problem: config files are missing after re-install bind 9.5 on Fedora Core 8 elvisious Linux - Software 1 07-15-2008 08:49 PM
Why is multicast protocols designed in Layer 3 when routing protocols in L5 vineeth_thampi Linux - Networking 2 07-04-2006 06:23 PM

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

All times are GMT -5. The time now is 11:48 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration