On 25/07/2014 23:32, Sridhar Iyer wrote:
I was looking at sys/net/if_lagg.c, and wanted to know the usage of
functions such as lagg_ioctl(), lagg_input() etc.

Regards,

Sridhar


Those functions are part of the implementation of the lagg driver, internal to the kernel. They generally mirror similarly-named functions for all network drivers.

xxx_ioctl() is for processing ioctl() calls from userland
xxx_input() is for processing packets that arrive at the interface
xxx_start() is for processing packets that are outbound from the interface
xxx_create() for creating a new lagg interface
xxx_attach() for attaching a laggport to a lagg interface
and so on...

If you want to programmatically attach, configure, modify, destroy lagg interfaces then you have choices like:

shell scripts
C code that performs the desired functions in the same way as ifconfig (userland)

I can't see any immediate reason why you'd call functions like lagg_input() directly and you would have to be kernel-side to do so.

What are you trying to achieve?

Hope this helps!

Dominic
_______________________________________________
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"

Reply via email to