Search results

  1. P

    Start application in userland from Kernelland

    I don't think there is, and this is something I'm trying to figure out myself as a method for kernel/userspace interaction (like the OP is), where to use IPC sockets, dev char devices, ioctl, and so on. For the OP, I'm making my way through Designing BSD Rootkits , it runs through character...
  2. P

    Start application in userland from Kernelland

    Kernel / Userland interaction is something I'm working on at the moment myself. I've been looking at using Unix sockets to do this, although this might cause some overheads. What I've done, is based on an implementation of the SeND protocol, I have a kernel module that creates a hook, and...
  3. P

    Performance measurement tools

    top utility? top.
  4. P

    Kernel Space / User Space bi-directional communication

    Hi, Just looking for some guidance, I want the kernel to be able to send data to a userspace program (daemon?) and for the daemon to process that data and return the processed data back to the kernel. What ways in [Free]BSD are there for doing this? I've seen a lot about netlink and such...
  5. P

    Detect changes in network settings

    Can anyone guide me into a way of detecting changes in network settings (IP address, default gateway, connected wireless network) in the kernel space? Doing some playing with the kernel so I'd like to be able to detect these changes as they happen and perform a few tasks when they happen...
  6. P

    Open textfile in xterm on launch

    Hi, How can I configure Xorg to show a textfile (in more or vi) in an xterm on launching the xwindow? thanks
  7. P

    Jumbogram error

    Solved, configure both ends.
  8. P

    printf u_int32_t

    I've been scratching my head for a while now, I can't see to get printf to print out a u_int32_t value correctly, I've been using %c but it does not yield the correct value. Can anyone tell me the correct option? thanks
  9. P

    Jumbogram error

    the problem is, it won't even send a packet, ICMP or anything. Looking at Wireshark nothing seems to be transmitting??
  10. P

    Jumbogram error

    Enabled Jumbograms for testing and trying to ftp I get ftp: connect: Invalid argument ping's don't work either? FreeBSD 7.3-RELEASE ideas?
  11. P

    Using ip6_pktopts in kernel

    I'm looking to create an IPv6 extension header within the kernel (don't worry, this is just on a test bed). In the netinet6/ip6_output.c, ip6_output() I've noticed it takes an argument for ip6_pktopts pointed to opts. It continues on to check for a value in opt and if so it creates the ext...
  12. P

    Socket Options Error

    I've tried it with SOCK_DGRAM and it still happens. @SirDice I'm compiling and running the code as root.
  13. P

    Socket Options Error

    I've been testing some code and using ktrace to debug. The following error is occurring, setsockopt -1 errno 22 Invalid argument it is linked the following line of code. int on = 1; setsockopt(sockfd, IPPROTO_IPV6, IPV6_DSTOPTS, &on, sizeof(on)); sockfd is working fine as the rest...
  14. P

    Compile INET and INET6

    I'm doing some development work on the networking end of FreeBSD, mainly to the INET and INET6 stuff. Is there anyway to do a quick compile of these two parts of the kernel to test for any compile errors? I don't want to compile the kernel fully just yet, just want to test my changes compile...
Back
Top