Date: Thu, 11 Dec 1997 09:12:13 +1000 (EST) From: David Richards <dave@marvin.cs.dis.qut.edu.au> To: BSD Hackers <freebsd-hackers@FreeBSD.ORG> Subject: IP Firewall Message-ID: <Pine.LNX.3.95.971211090101.28947A-100000@marvin.cs.dis.qut.edu.au>
next in thread | raw e-mail | index | archive | help
Sorry, I did actually look at man 4 ipfirewall. But, I do not see how this is appropriate to an application that will set filters in place. Let me explain, The parameters are (in order): raw_socket, IPPROTO_IP, ipfw option, struct ipfw, size I am fine with them all, except raw_socket. Where did this socket come from?? Let's take an example from the ipfw.c when a flush is being done: setsockopt(s,IPPROTO_IP,IP_FW_FLUSH,NULL,0) Now, where does "s" come from?? I notice that it is a global variable, but i can't find where any initialisation occurs ... can someone please explain this concept to me? Thanks, Dave. -#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#- David Richards Ph: +61 7 3864 4347 Network Programmer Fax: +61 7 3864 5272 Computing Services E-mail: dj.richards@qut.edu.au Queensland University of Technology Brisbane, Australia -#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.3.95.971211090101.28947A-100000>
