summaryrefslogtreecommitdiff
path: root/net/appletalk
AgeCommit message (Collapse)Author
2006-03-28[NET]: Fix ipx/econet/appletalk/irda ioctl crashesPetr Vandrovec
Fix kernel oopses whenever somebody issues compatible ioctl on AppleTalk, Econet, IPX or IRDA socket. For AppleTalk/Econet/IRDA it restores state in which these sockets were before compat_ioctl was introduced to the socket ops, for IPX it implements support for 4 ioctls which were not implemented before - as these ioctls use structures which match between 32bit and 64bit userspace, no special code is needed, just call 64bit ioctl handler. Signed-off-by: Petr Vandrovec <petr@vandrovec.name> Signed-off-by: David S. Miller <davem@davemloft.net>
2006-01-11[PATCH] capable/capability.h (net/)Randy Dunlap
net: Use <linux/capability.h> where capable() is used. Signed-off-by: Randy Dunlap <rdunlap@xenotime.net> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-01-03[NET]: Add a dev_ioctl() fallback to sock_ioctl()Christoph Hellwig
Currently all network protocols need to call dev_ioctl as the default fallback in their ioctl implementations. This patch adds a fallback to dev_ioctl to sock_ioctl if the protocol returned -ENOIOCTLCMD. This way all the procotol ioctl handlers can be simplified and we don't need to export dev_ioctl. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: David S. Miller <davem@davemloft.net>
2006-01-03[NET]: move struct proto_ops to constEric Dumazet
I noticed that some of 'struct proto_ops' used in the kernel may share a cache line used by locks or other heavily modified data. (default linker alignement is 32 bytes, and L1_CACHE_LINE is 64 or 128 at least) This patch makes sure a 'struct proto_ops' can be declared as const, so that all cpus can share all parts of it without false sharing. This is not mandatory : a driver can still use a read/write structure if it needs to (and eventually a __read_mostly) I made a global stubstitute to change all existing occurences to make them const. This should reduce the possibility of false sharing on SMP, and speedup some socket system calls. Signed-off-by: Eric Dumazet <dada1@cosmosbay.com> Signed-off-by: David S. Miller <davem@davemloft.net>
2005-09-27[APPLETALK]: Fix broadcast bug.Oliver Dawid
From: Oliver Dawid <oliver@helios.de> we found a bug in net/appletalk/ddp.c concerning broadcast packets. In kernel 2.4 it was working fine. The bug first occured 4 years ago when switching to new SNAP layer handling. This bug can be splitted up into a sending(1) and reception(2) problem: Sending(1) In kernel 2.4 broadcast packets were sent to a matching ethernet device and atalk_rcv() was called to receive it as "loopback" (so loopback packets were shortcutted and handled in DDP layer). When switching to the new SNAP structure, this shortcut was removed and the loopback packet was send to SNAP layer. The author forgot to replace the remote device pointer by the loopback device pointer before sending the packet to SNAP layer (by calling ddp_dl->request() ) therfor the packet was not sent back by underlying layers to ddp's atalk_rcv(). Reception(2) In atalk_rcv() a packet received by this loopback mechanism contains now the (rigth) loopback device pointer (in Kernel 2.4 it was the (wrong) remote ethernet device pointer) and therefor no matching socket will be found to deliver this packet to. Because a broadcast packet should be send to the first matching socket (as it is done in many other protocols (?)), we removed the network comparison in broadcast case. Below you will find a patch to correct this bug. Its diffed to kernel 2.6.14-rc1 Signed-off-by: Arnaldo Carvalho de Melo <acme@ghostprotocols.net> Signed-off-by: David S. Miller <davem@davemloft.net>
2005-08-29[TCP]: Move the tcp sock states to net/tcp_states.hArnaldo Carvalho de Melo
Lots of places just needs the states, not even linux/tcp.h, where this enum was, needs it. This speeds up development of the refactorings as less sources are rebuilt when things get moved from net/tcp.h. Signed-off-by: Arnaldo Carvalho de Melo <acme@ghostprotocols.net> Signed-off-by: David S. Miller <davem@davemloft.net>
2005-08-29[NET]: Kill skb->real_devDavid S. Miller
Bonding just wants the device before the skb_bond() decapsulation occurs, so simply pass that original device into packet_type->func() as an argument. It remains to be seen whether we can use this same exact thing to get rid of skb->input_dev as well. Signed-off-by: David S. Miller <davem@davemloft.net>
2005-06-22[ATALK] aarp: replace schedule_timeout() with msleep()Nishanth Aravamudan
From: Nishanth Aravamudan <nacc@us.ibm.com> Use msleep() instead of schedule_timeout() to guarantee the task delays as expected. The current code is not wrong, but it does not account for early return due to signals, so I think msleep() should be appropriate. Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com> Signed-off-by: Domen Puncer <domen@coderock.org> Signed-off-by: David S. Miller <davem@davemloft.net>
2005-06-20[ATALK]: endian annotationsAlexey Dobriyan
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
2005-05-05[ATALK]: Add alloc_ltalkdev().Christoph Hellwig
this matches the API used by other link layer like ethernet or token ring. Signed-off-by: Christoph Hellwig <hch@lst.de> Acked-by: Arnaldo Carvalho de Melo <acme@ghostprotocols.net> Signed-off-by: David S. Miller <davem@davemloft.net>
2005-04-19[ATALK]: Add missing dev_hold() to atrtr_create().Herbert Xu
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: David S. Miller <davem@davemloft.net>
2005-03-26[NET] make all protos partially use sk_protArnaldo Carvalho de Melo
sk_alloc_slab becomes proto_register, that receives a struct proto not necessarily completely filled, but at least with the proto name, owner and obj_size (aka proto specific sock size), with this we can remove the struct sock sk_owner and sk_slab, using sk->sk_prot->{owner,slab} instead. This patch also makes sk_set_owner not necessary anymore, as at sk_alloc time we have now access to the struct proto onwer and slab members, so we can bump the module refcount exactly at sock allocation time. Another nice "side effect" is that this patch removes the generic sk_cachep slab cache, making the only last two protocols that used it use just kmalloc, informing a struct proto obj_size equal to sizeof(struct sock). Ah, almost forgot that with this patch it is very easy to use a slab cache, as it is now created at proto_register time, and all protocols need to use proto_register, so its just a matter of switching the second parameter of proto_register to '1', heck, this can be done even at module load time with some small additional patch. Another optimization that will be possible in the future is to move the sk_protocol and sk_type struct sock members to struct proto, but this has to wait for all protocols to move completely to sk_prot. This changeset also introduces /proc/net/protocols, that lists the registered protocols details, some may seem excessive, but I'd like to keep them while working on further struct sock hierarchy work and also to realize which protocols are old ones, i.e. that still use struct proto_ops, etc, yeah, this is a bit of an exaggeration, as all protos still use struct proto_ops, but in time the idea is to move all to use sk->sk_prot and make the proto_ops infrastructure be shared among all protos, reducing one level of indirection. Signed-off-by: Arnaldo Carvalho de Melo <acme@conectiva.com.br> Signed-off-by: David S. Miller <davem@davemloft.net>
2005-03-16[NET] Convert sk_zapped into SOCK_ZAPPED flagThomas Graf
Signed-off-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
2005-01-20[APPLETALK] stop using sk_protinfoArnaldo Carvalho de Melo
Signed-off-by: Arnaldo Carvalho de Melo <acme@conectiva.com.br> Signed-off-by: David S. Miller <davem@davemloft.net>
2005-01-13[ATALK]: Add ioctls to allow ifx txqueuelen sets/getsNeil Horman
Signed-off-by: Neil Horman <nhorman@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
2005-01-13[NET]: Lock initializer cleanup.Thomas Gleixner
Use the new lock initializers DEFINE_SPIN_LOCk and DEFINE_RW_LOCK Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: David S. Miller <davem@davemloft.net>
2004-12-27[APPLETALK]: Make some code static.Adrian Bunk
Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: David S. Miller <davem@davemloft.net>
2004-11-14[PATCH] fix appletalk lockingAndries E. Brouwer
Just tried the new toy. It works.
2004-11-13[APPLETALK]: Missing file add in recent commit.David S. Miller
This fixes up ChangeSet 1.2086.1.75 Signed-off-by: David S. Miller <davem@davemloft.net>
2004-11-10[NET]: Remove net_init.c ifdef clutter.Christoph Hellwig
Signed-off-by: David S. Miller <davem@davemloft.net>
2004-11-01[APPLETALK]: Remove an unused functionAdrian Bunk
Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: David S. Miller <davem@davemloft.net>
2004-08-18[ATALK]: Fix build with SYSCTL=nStephen Hemminger
Signed-off-by: Stephen Hemminger <shemminger@osdl.org> Signed-off-by: David S. Miller <davem@redhat.com>
2004-07-26[PATCH] appletalk SIOCADDRT fixAlexander Viro
blind dereferencing of userland pointer in appletalk SIOCADDRT handling. Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-06-05[NET]: Fix compat bug in recvmsg/sendmsg wrt MSG_CMSG_COMPAT.Olaf Hering
2004-06-03[PATCH] sparse: appletalk annotationAlexander Viro
2004-05-30[PATCH] sparse: dev_ioctl() callersAlexander Viro
dev_ioctl() has a __user pointer argument; however, its declaration lacks that and callers are also wrong. Declaration fixed, callers updated.
2004-05-29Add __user annotations to sock_get_timestamp()Linus Torvalds
2004-04-15[NET]: Do lazy gettimeofday for network packets.Andi Kleen
2004-02-17[APPLETALK]: Use '%Z' for size_t.David S. Miller
2004-01-24[APPLETALK]: Do not use lvalue in assignment.Andrew Morton
2004-01-08[APPLETALK DDP]: Use size_t for size in {send,recv}msg.Stephen Hemminger
2003-12-29[NET]: Missing sysctl strategy entries in net/{core,ipv6,appletalk}Hideaki Yoshifuji
2003-10-30[IPX]: Missing memset()'s in route and interface creation.Arnaldo Carvalho de Melo
2003-10-30[IPX]: Fix checksum computation.David S. Miller
2003-10-30[IPX]: Memset newly allocated atalk private area.Arnaldo Carvalho de Melo
2003-10-06[NET]: Delete support for old-style protocols, no longer necessary.David S. Miller
2003-09-24[NET]: Add and use PKT_CAN_SHARE_SKB instead of (void *) 1.Joe Perches
2003-09-09[PATCH] Fix SEQ_START_TOKEN typoJoe Perches
My fault. Fix for broken aarp.c which got an extra closing parenthesis.
2003-09-09[PATCH] Use SEQ_START_TOKEN in include/net/* [3/3]Joe Perches
2003-09-04[NET]: Remove all the silly 'NET4.x' init messages.David S. Miller
2003-09-01[NET]: Use MODULE_ALIAS() in network families.Rusty Russell
Previously, default aliases were hardwired into modutils. Now they should be inside the modules, using MODULE_ALIAS() (they will be overridden by any user alias).
2003-08-30[DDP]: Convert to new protocol interface.Stephen Hemminger
Convert ddp to the new protocol interface which means it has to handle fragmented skb's. The only big change is in the checksum routine which has to do more work (like skb_checksum). Minor speedup is folding the carry to avoid a branch. Tested against a 2.4 system and by running both code over a range of packets.
2003-08-30[DDP]: Missing netdev refcounting.Stephen Hemminger
DDP holds a pointer to underlying network device, but doesn't do the refcount bookeeping that it should.
2003-08-30[ATALK]: Move aarp procfs file into atalk subdirectory.Stephen Hemminger
Move aarp /proc interface like all the others in 2.6; the other appletalk /proc interfaces were moved to /proc/net/atalk but aarp was overlooked.
2003-08-30[DDP]: Fix oops in aecho socket handling.Stephen Hemminger
This fixes the problem caused by interrupting aecho causing an oops. What happened was that the sock was detached from the user process but sk->sk_sleep was still so when write data was freed it would do a wakeup on a poisoned data. The sk_state_change code that was there isn't necessary, because we are in middle of release so no user process can be waiting. sock_orphan does the right thing and sets SOCK_DEAD. This is similar to what some other protocols do. But some will have the same sk->sk_sleep problem...
2003-08-30[DDP]: Fix obsolete comment about module handling.Stephen Hemminger
2003-08-30[ATALK]: Set owner on /proc/net/atalk directory.Stephen Hemminger
2003-08-30[ATALK]: Convert AARP over to seq_file.Stephen Hemminger
The output format is slightly changed: - address is printed in same format as /proc/net/atalk/interface - retry and last_sent are only shown for unresolved entries - times shown in seconds.hundreths rather than raw jiffies - column headers changed to same format as /proc/net/atalk/interface
2003-08-30[ATALK]: AARP needs to use del_timer_sync().Stephen Hemminger
Aarp module unload needs to use del_timer_sync to handle the race condition where timer starts or is running during module unload.
2003-08-30[ATALK]: Purge AARP table on module unload.Stephen Hemminger