How to see kernel in userland ?

2001-03-27 Thread Daniel Wong
Hi, I need some help with kernel programming. I'm trying to find out how to get my application to see kernel variables. I've tried to used sysctl_struct calls on my variable but I couldn't get sysctl command to see it... how do allow application to observer and maybe modify a variable inside a ke

how to Getting Sysctl to work ....

2001-03-27 Thread Daniel Wong
Hi All, I can't get my sysctl to come up in my sysctl -A I have in my kernel code defined SYSCTL_STRUCT(_net_inet_ip, ... ...) and under in.h (I'm working under Ip) added my sysctl definition, i presume it's just adding the extra enum definition for my sysctl right ? I did a clean compile of th

What do I have to change to add a sysctl ?

2001-03-28 Thread Daniel Wong
Hi All, I want to add a sysctl to the net.inet.ip what do I have to change ?? Thanks Dan To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-net" in the body of the message

How to find the bandwidth between two machines under freeBSD?

2001-03-30 Thread Daniel Wong
Hi, I'm trying to find out how to get the bandwidth speed for a connection between two machines. Programmatically in the kernel. Can anyone point me in the right direction ? can it be retrieved from an interface struct ?? Cheers Daniel

RE: How to find the bandwidth between two machines under freeBSD?

2001-03-30 Thread Daniel Wong
Hi, So if I need to code some traffic control algorithm under the IP layer in the kernel, how do I determine how fast a particular interface goes. ie how much bandwidth the interface has?? Also, what unit will this value be in?? I was considering using MTU in the ifnet struct, but not sure how to

Finding the bandwidth capabilities inside the Kernel space

2001-03-30 Thread Daniel Wong
Hi, So if I need to code some traffic control algorithm under the IP layer in the kernel, how do I determine how fast a particular interface goes. ie how much bandwidth the interface has?? Also, what unit will this value be in?? I was considering using MTU in the ifnet struct, but not sure how to

Routing 4 machines... help!

2001-04-02 Thread Daniel Wong
Hi, I have four machines, configured as follows. Machine 1 (leaf node) (defaultrouter to internet gateway) fxp0 129.94.232.13 fxp1 172.21.10.24 Machine 2 (router) (defaultrouter to internet gateway) fxp0 129.94.232.14 fxp1 172.21.10.42 fxp2 10.0.0.25 Machine 3 (router) (defaultrouter to intern

how to generate a custom ICMP packet from kernel ??

2001-04-04 Thread Daniel Wong
Hi, I've set up my own ICMP type - type 40 (ICMP_PROBE) which is to be used for probing the network's conjestion etc... (don't want to bore you with details) anyways... I've tried to imitate the way that icmp_error generates and icmp packet, but I have no idea why it's not sending... below is the

how to see what happen before kernel crash?

2001-04-08 Thread Daniel Wong
Hi,   My kernel periodically crashes on me, is there a way to capture the kernel output before the kernel reboots itself ? I suspect it might be something to do with my changes in the kernel. But I don't know what might be causing it.   I'm looking for something like what dmesg outputs, bu