]> git.pld-linux.org Git - packages/lsof.git/commitdiff
ipv6 patch
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Fri, 6 Aug 1999 13:08:23 +0000 (13:08 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    lsof-linux-ipv6mapped.patch -> 1.1

lsof-linux-ipv6mapped.patch [new file with mode: 0644]

diff --git a/lsof-linux-ipv6mapped.patch b/lsof-linux-ipv6mapped.patch
new file mode 100644 (file)
index 0000000..88efeff
--- /dev/null
@@ -0,0 +1,25 @@
+diff -urN lsof_4.45.orig/dialects/linux/proc/dsock.c lsof_4.45/dialects/linux/proc/dsock.c
+--- lsof_4.45.orig/dialects/linux/proc/dsock.c Fri Aug  6 14:41:52 1999
++++ lsof_4.45/dialects/linux/proc/dsock.c      Fri Aug  6 14:45:07 1999
+@@ -1571,13 +1571,17 @@
+           Lf->inp_ty = 2;
+           (void) sprintf(dev_ch, "%ld", (long)s->st_ino);
+           enter_dev_ch(dev_ch);
+-          if (!IN6_IS_ADDR_UNSPECIFIED(&tp6->faddr) || tp6->fport)
++          if (!IN6_IS_ADDR_UNSPECIFIED(&tp6->faddr) || tp6->fport) {
+               fa = (unsigned char *)&tp6->faddr;
+-          else
++              if (IN6_IS_ADDR_V4MAPPED(&tp6->faddr))
++                  Lf->type[3] = '4';
++          } else
+               fa = (unsigned char *)NULL;
+-          if (!IN6_IS_ADDR_UNSPECIFIED(&tp6->laddr) || tp6->lport)
++          if (!IN6_IS_ADDR_UNSPECIFIED(&tp6->laddr) || tp6->lport) {
+               la = (unsigned char *)&tp6->laddr;
+-          else
++              if (IN6_IS_ADDR_V4MAPPED(&tp6->laddr))
++                  Lf->type[3] = '4';
++          } else
+               la = (unsigned char *)NULL;
+           ent_inaddr(la, tp6->lport, fa, tp6->fport, AF_INET6);
+           Lf->lts.type = tp6->proto;
This page took 0.068893 seconds and 4 git commands to generate.