Methods to communicate between kernel network stack and user space

From: Syed Muhammad Mohsin Kazmi <hidden>
Date: 2012-03-15 14:49:42

Hi,
    Consider the figure below:

                                      +-----------------------------------+
                                       |                                    |
                                       |              TRILL  IS-IS<--|---------
                                       |  Quagga protocol  suite  |         |

+-----------------------------------+         |
                      user space
         |

----------------------------------------------------------|----------------------
                      kernel space                                             |

              |

+------------------------------------------+   |
                                      |         TCP / UDP / ICMP      |   |
                                      |
           |   |

+------------------------------------------+   |
                                      |               IPv4 /IPv6
      |   |
                                      |
           |   |

+------------------------------------------+  |
                                      |
+-------------+  |   |
                                      |                          |
TRILL    |<-|---
                                      |           Bridging   +------------+  |

+------------------------------------------+
                                      |    Interface between Device    |
                                      |Driver and network stack(dev.c)|

+------------------------------------------+
                                      |            Device Driver            |
                                      |
           |
                                      +-----------------|
|------------------+
                                                         |     |
                                                          NIC


                       As you may know, TRILL uses IS-IS protocol to
calculate pairwise optimal paths and other control plane parameters.
Now i want to communicate between TRILL forwarding in bridging with
TRILL IS-IS in quagga protocol suite to send and receive control plane
packets. I don't know what method should i use for this kind of
communication.

Netlink sockets are appropriate for this purpose?
Or please suggest something else.

Thanks in Advance...!!
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help