Em Mon, Oct 27, 2003 at 10:23:24PM -0600, Bob Tracy escreveu: > A quick search of the archives didn't turn up anything, so pardon the > question if it's becoming (has become) a FAQ... > > I've got an old JetDirect internal interface on a LJ-III printer that > speaks DLC/LLC only. Can Linux talk to this beast, and if so, how? > > Is the Linux SNA project still around? That looked promising as far as > containing what I might be looking for... Oh yes, it can, not right now because I introduced a stupid bug in LLC, but with the fix attached you will be able to use PF_LLC sockets to talk to the printer, look at: http://www.kernel.org/pub/linux/kernel/people/acme/old/netbeui+llc/netkit/ for some (rough) patches to netkit inetd, ftp and ftpd to see how, now I'm working to have getnameinfo/getaddrinfo PF_LLC aware and then the changes to apps done with this API will be minimal, openssh being the first victim 8) Ah the patch below was already sent to David Miller and should be on 2.6.0-test10 or at most in 2.6.1. - Arnaldo ===== net/llc/llc_input.c 1.33 vs edited ===== --- 1.33/net/llc/llc_input.c Sat Sep 20 01:24:55 2003 +++ edited/net/llc/llc_input.c Mon Oct 27 10:04:10 2003 @@ -40,13 +40,13 @@ struct sk_buff *skb)) { if (type == LLC_DEST_SAP || type == LLC_DEST_CONN) - llc_type_handlers[type] = handler; + llc_type_handlers[type - 1] = handler; } void llc_remove_pack(int type) { if (type == LLC_DEST_SAP || type == LLC_DEST_CONN) - llc_type_handlers[type] = NULL; + llc_type_handlers[type - 1] = NULL; } void llc_set_station_handler(void (*handler)(struct sk_buff *skb)) - : send the line "unsubscribe linux-net" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html