[haiku-development] Relationship between network device , network interface , network interface address and their configuration

  • From: sayan chaudhuri <sayanchaudhuri758@xxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Wed, 14 Feb 2024 22:26:37 +0530

Hi All,
          I am facing some doubts while trying to address the review
comments from (https://review.haiku-os.org/c/haiku/+/7259?tab=comments) ,
so would like to clarify the following points
 1)         I read in Google that a network device represents a physical
adapter like wifi , bluetooth etc. A device can have multiple interfaces .
Each interface can support only one address family at a time . Is this
understanding correct ?

2)           If the answer to the previous question is yes , then
      a) Why should both ipv4 and ipv6 be configured on  a single interface
at the same time?
       b) Does the following hierarchy hold :
             address family supported by an interface should be configured
first --> that implies interface is configured --> when all available
interfaces on a device is configured , then only we can say that the device
is configured
         c) if the earlier hierarchy is true ,then why are we marking the
device as configured while configuring address family from "interfaces"
file ? If I have two interface on a device , and ipv4 is by default
automatic on both of them , and I set the ipv4 on one interface to be
static , then only the entry from that particular interface will be present
in the file .But next time, the system comes up , it will statically
configure only the ipv4 address family of that particular interface but
mark the entire device as configured so further any configuration will not
happen .
         Reference code --> (
https://git.haiku-os.org/haiku/tree/src/servers/net/NetServer.cpp#n767)

   Thanks,
Sayan Chaudhuri

Other related posts: