Results 1 to 1 of 1
Enjoy an ad free experience by logging in. Not a member yet? Register.
- Join Date
- Dec 2006
How the kernel maps from IP address to the network interface .
suppose I am working on a multiple network interface machine and doing socket programming. The code runs
servaddr.sin_family = AF_INET;
servaddr.sin_addr.s_addr = inet_addr("172.16.28.200");
bind(listenfd,(struct sockaddr *)&servaddr,sizeof(servaddr));
In case the interfaces pickup the IP addresses from dhcp , from where the machine gets the address of dhcp server at time of booting ?? and where the IP address got stored after the machine gets IP address.?