Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 May 2000 20:44:24 +1200
From:      "MATTHEW JOHN,LUCKIE" <mjl12@waikato.ac.nz>
To:        "'freebsd-hackers@freebsd.org'" <freebsd-hackers@freebsd.org>
Subject:   sysctl_proc
Message-ID:  <45E87454FFC2D211AD9800508B650094BA4D67@stu-ex1.waikato.ac.nz>

next in thread | raw e-mail | index | archive | help
Hi there

I am wanting to create an icmp packet in the kernel for the purposes of
timestamping it as accurately as i can (in kernel space).

At the moment, I am creating a packet and sending it out through a raw
socket.
I am not sure if i can catch this packet easily in the kernel, and i thought
that perhaps a sysctl might be what i want.

is this what a SYSCTL_PROC can do for me?

basically, i want to pass in an IP address, and a packet ID that the user
wants to identify the packet with.  In the sysctl, i create the mbuf with
the packet i want to send and then send it, all from within the kernel.

If it is, what is the difference between a ptr and a hander when creating
the SYSCTL_PROC?
The handler is the function itself that i want to call, but i cannot see the
point of the arg parameter.  I am looking at the netinet/in_pcb.c source
code.

A sample SYSCTL_PROC definition would be handy to me.

Thanks in advance

Matthew Luckie


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?45E87454FFC2D211AD9800508B650094BA4D67>