| lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
|
Open Source and information security mailing list archives
| ||
|
Message-ID: <1323467297.4016.10.camel@edumazet-laptop> Date: Fri, 09 Dec 2011 22:48:17 +0100 From: Eric Dumazet <eric.dumazet@...il.com> To: Pavel Emelyanov <xemul@...allels.com> Cc: David Miller <davem@...emloft.net>, Linux Netdev List <netdev@...r.kernel.org> Subject: Re: [PATCH 11/13] udp_diag: Implement the get_exact dumping functionality Le vendredi 09 décembre 2011 à 20:24 +0400, Pavel Emelyanov a écrit : > Do the same as TCP does -- lookup a socket in the given udp_table, > check cookie, fill the reply message with existing inet socket dumping > helper and send one back. > > Signed-off-by: Pavel Emelyanov <xemul@...allels.com> > + > + if (req->sdiag_family == AF_INET) > + sk = __udp4_lib_lookup(&init_net, > + req->id.idiag_src[0], req->id.idiag_sport, > + req->id.idiag_dst[0], req->id.idiag_dport, > + req->id.idiag_if, tbl); > + else if (req->sdiag_family == AF_INET6) > + sk = __udp6_lib_lookup(&init_net, > + (struct in6_addr *)req->id.idiag_src, > + req->id.idiag_sport, > + (struct in6_addr *)req->id.idiag_dst, > + req->id.idiag_dport, > + req->id.idiag_if, tbl); > + else OK, but what happens if IPv6 is a module ? LD .tmp_vmlinux1 net/built-in.o: In function `udp_dump_one': udp_diag.c:(.text+0xa2b40): undefined reference to `__udp6_lib_lookup' make: *** [.tmp_vmlinux1] Erreur 1 -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists