memory problems with RAPI objects

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



heh! reading the archives. It's been a while since Feb. 
As it turned out, I _was_ misusing the objects. 
Inside this struct:

typedef struct {

 	<snip>	
        int rapi_reserve_flags;
        rapi_styleid_t rapi_style_id;

        int rapi_filter_spec_no;
        rapi_filter_t rapi_filter_spec_list;
        int rapi_flow_spec_no;
        rapi_flowspec_t rapi_flow_spec_list;
	<snip>
} template

moving the rapi_filter_t to the end of the struct solved the
mysterious memory problem. I got a hint from some 
"//variable length" comment about the rapi_filter_t.

<DISCLAIMER>
If some of you were wondering what I was working on RAPI for
these days, well, I didn't know nuts about QoS back in August
and on understanding the situation in late September, I figured
academic exercises sometimes do serve a purpose  8-))
</DISCLAIMER>

J-Philippe.

-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux