tech-net archive

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

Re: Adding ifam_pid to ifa_msghdr



On Wednesday 31 August 2016 06:02:57 Christos Zoulas wrote:
> In article <3585331.9LpqSETiX3%uberpc.marples.name@localhost>,
> 
> Roy Marples  <roy%marples.name@localhost> wrote:
> >Hi List!
> >
> >Unlike rtm_msghdr, ifam_msghdr has no idea of the identity of the process
> >who added or deleted an address.
> >
> >This is important for processes which add/delete addresses while listening
> >for 3rd parties to add/delete addresses as well, so self generated
> >messages can be ignored.
> >
> >Here is a simple patch which adds ifam_pid to ifa_msghdr so the identity of
> >the sender is known.
> >http://www.netbsd.org/~roy/ifam_pid.patch
> >
> >Unless anyone objects, I will add this soon.
> 
> If only it was that simple... See sys/compat/net/if.h how to do it properly.

I looked ......... and have no idea what you are alluding to.
All I see in that file for ifa_msghgr is the structs pre always 64-bit 
messages.
I added ifam_pid at the end of the struct so we're still binary compatible 
with older messages. What am I missing that you're complaining about?

Roy


Home | Main Index | Thread Index | Old Index