route: Remove ifam_pid for the time being.
authorRoy Marples <roy@marples.name>
Thu, 12 Sep 2019 18:26:58 +0000 (19:26 +0100)
committerRoy Marples <roy@marples.name>
Thu, 12 Sep 2019 18:28:26 +0000 (19:28 +0100)
We lose curproc in netisr0 and I don't see a way of getting
it easily. Will work on this in the future.

share/man/man4/route.4
sys/net/if.h
sys/net/rtsock.c

index 0166355..4459dc8 100644 (file)
@@ -251,7 +251,6 @@ struct ifa_msghdr {
     u_short ifam_index;         /* index for associated ifp */
     int     ifam_flags;         /* value of ifa_flags */
     int     ifam_addrs;         /* like rtm_addrs */
-    pid_t   ifam_pid;           /* identify sender */
     int     ifam_addrflags;    /* family specific address flags */
     int     ifam_metric;        /* value of ifa_metric */
 };
index 91cc8cd..769ec2e 100644 (file)
@@ -186,7 +186,6 @@ struct ifa_msghdr {
        u_short ifam_index;     /* index for associated ifp */
        int     ifam_flags;     /* value of ifa_flags */
        int     ifam_addrs;     /* like rtm_addrs */
-       pid_t   ifam_pid;       /* identify sender */
        int     ifam_addrflags; /* family specific address flags */
        int     ifam_metric;    /* value of ifa_metric */
 };
index 2217aff..f1dd879 100644 (file)
@@ -1154,7 +1154,6 @@ rt_ifamsg(int cmd, struct ifaddr *ifa)
        ifam->ifam_index = ifp->if_index;
        ifam->ifam_flags = ifa->ifa_flags;
        ifam->ifam_addrs = rtinfo.rti_addrs;
-       ifam->ifam_pid = curproc->p_pid;
        ifam->ifam_addrflags = if_addrflags(ifa);
        ifam->ifam_metric = ifa->ifa_metric;
 
@@ -1480,7 +1479,6 @@ sysctl_iflist(int af, struct walkarg *w)
                                ifam->ifam_index = ifa->ifa_ifp->if_index;
                                ifam->ifam_flags = ifa->ifa_flags;
                                ifam->ifam_addrs = rtinfo.rti_addrs;
-                               ifam->ifam_pid = 0 ;
                                ifam->ifam_addrflags = if_addrflags(ifa);
                                ifam->ifam_metric = ifa->ifa_metric;
                                error = SYSCTL_OUT(w->w_req, w->w_tmem, msglen);