Re: [mpls-linux-general] use of *arg in mpls_netlink
Status: Beta
Brought to you by:
jleu
From: James R. L. <jl...@mi...> - 2002-01-24 15:31:31
|
On Thu, Jan 24, 2002 at 09:29:43AM -0000, anish verma wrote: > > hi jim, > what is the significance of argument "void *arg" in all the functions in file mpls_netlink.c.. is it just for matching the numbar of argument in "doit" function of struct rtnetlink_link. or sth else.. > thanx n advance > anish I think some protocols register some data to be sent in with each of the netlink calls. Netlink will sent this data in via the (void*). MPLS doesn't need netlink to hold any data for it. So we do not use the (void*). Since all of the netlink functions must match the netlink prototype I have no choice but to have the (void*) argument. Jim > > > _______________________________________________ > mpls-linux-general mailing list > mpl...@li... > https://lists.sourceforge.net/lists/listinfo/mpls-linux-general -- James R. Leu |