next up previous contents
Next: Example. Up: Flow label management. Previous: Discussion.   Contents

Implementation.

Socket option IPV6_FLOWLABEL_MGR allows to request flow label manager to allocate new flow label, to reuse already allocated one or to delete old flow label. Its argument is struct in6_flowlabel_req:

struct in6_flowlabel_req
{
        struct in6_addr flr_dst;
        __u32           flr_label;
        __u8            flr_action;
        __u8            flr_share;
        __u16           flr_flags;
        __u16           flr_expires;
        __u16           flr_linger;
        __u32         __flr_reserved;
        /* Options in format of IPV6_PKTOPTIONS */
};

This structure is followed by optional extension headers associated with this flow label in format of IPV6_PKTOPTIONS. Only IPV6_HOPOPTS, IPV6_RTHDR and, if IPV6_RTHDR presents, IPV6_DSTOPTS are allowed.


next up previous contents
Next: Example. Up: Flow label management. Previous: Discussion.   Contents