All of lore.kernel.org
 help / color / mirror / Atom feed
* about the sock_fd
@ 2008-05-09 16:16 C.J
  2008-05-09 16:26 ` James Carlson
  0 siblings, 1 reply; 2+ messages in thread
From: C.J @ 2008-05-09 16:16 UTC (permalink / raw)
  To: linux-ppp

Hi list,

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.

Thx & Reg

--
cj


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: about the sock_fd
  2008-05-09 16:16 about the sock_fd C.J
@ 2008-05-09 16:26 ` James Carlson
  0 siblings, 0 replies; 2+ messages in thread
From: James Carlson @ 2008-05-09 16:26 UTC (permalink / raw)
  To: linux-ppp

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@workingcode.com>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-05-09 16:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-09 16:16 about the sock_fd C.J
2008-05-09 16:26 ` James Carlson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.