Re: about the sock_fd

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



C.J writes:
> In the pppd code, I read that it used sock_fd to set ip addr on a interface(ppp0). I want to know whether this sock_fd is a common udp socket or not. Do we  need some extra operations on this socket. Like unit_fd or dev_fd which both of them need ioctl on them.

Does this help?

% grep 'sock_fd = ' *.c
sys-linux.c:static int sock_fd = -1;    /* socket for doing interface ioctls */
sys-linux.c:    sock_fd = socket(AF_INET, SOCK_DGRAM, 0);
sys-linux.c:    sock_fd = socket(AF_INET, SOCK_DGRAM, 0);
% 

-- 
James Carlson         42.703N 71.076W         <carlsonj@xxxxxxxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Audio Users]     [Linux for Hams]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Fedora Users]

  Powered by Linux