1. 30 8月, 2005 2 次提交
    • A
      [NET]: Introduce inet_connection_sock · 463c84b9
      Arnaldo Carvalho de Melo 提交于
      This creates struct inet_connection_sock, moving members out of struct
      tcp_sock that are shareable with other INET connection oriented
      protocols, such as DCCP, that in my private tree already uses most of
      these members.
      
      The functions that operate on these members were renamed, using a
      inet_csk_ prefix while not being moved yet to a new file, so as to
      ease the review of these changes.
      Signed-off-by: NArnaldo Carvalho de Melo <acme@ghostprotocols.net>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      463c84b9
    • A
      [INET]: Generalise tcp_tw_bucket, aka TIME_WAIT sockets · 8feaf0c0
      Arnaldo Carvalho de Melo 提交于
      This paves the way to generalise the rest of the sock ID lookup
      routines and saves some bytes in TCPv4 TIME_WAIT sockets on distro
      kernels (where IPv6 is always built as a module):
      
      [root@qemu ~]# grep tw_sock /proc/slabinfo
      tw_sock_TCPv6  0  0  128  31  1
      tw_sock_TCP    0  0   96  41  1
      [root@qemu ~]#
      
      Now if a protocol wants to use the TIME_WAIT generic infrastructure it
      only has to set the sk_prot->twsk_obj_size field with the size of its
      inet_timewait_sock derived sock and proto_register will create
      sk_prot->twsk_slab, for now its only for INET sockets, but we can
      introduce timewait_sock later if some non INET transport protocolo
      wants to use this stuff.
      
      Next changesets will take advantage of this new infrastructure to
      generalise even more TCP code.
      
      [acme@toy net-2.6.14]$ grep built-in /tmp/before.size /tmp/after.size
      /tmp/before.size: 188646   11764    5068  205478   322a6 net/ipv4/built-in.o
      /tmp/after.size:  188144   11764    5068  204976   320b0 net/ipv4/built-in.o
      [acme@toy net-2.6.14]$
      
      Tested with both IPv4 & IPv6 (::1 (localhost) & ::ffff:172.20.0.1
      (qemu host)).
      Signed-off-by: NArnaldo Carvalho de Melo <acme@ghostprotocols.net>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      8feaf0c0
  2. 29 6月, 2005 3 次提交
  3. 24 6月, 2005 1 次提交
  4. 22 6月, 2005 1 次提交
  5. 19 6月, 2005 3 次提交
  6. 14 6月, 2005 1 次提交
    • R
      [IPv6] Don't generate temporary for TUN devices · 77bd9196
      Rémi Denis-Courmont 提交于
      Userland layer-2 tunneling devices allocated through the TUNTAP driver 
      (drivers/net/tun.c) have a type of ARPHRD_NONE, and have no link-layer 
      address. The kernel complains at regular interval when IPv6 Privacy 
      extension are enabled because it can't find an hardware address :
      
      Dec 29 11:02:04 auguste kernel: __ipv6_regen_rndid(idev=cb3e0c00): 
      cannot get EUI64 identifier; use random bytes.
      
      IPv6 Privacy extensions should probably be disabled on that sort of 
      device. They won't work anyway. If userland wants a more usual 
      Ethernet-ish interface with usual IPv6 autoconfiguration, it will use a 
      TAP device with an emulated link-layer  and a random hardware address 
      rather than a TUN device.
      
      As far as I could fine, TUN virtual device from TUNTAP is the very only 
      sort of device using ARPHRD_NONE as kernel device type.
      Signed-off-by: NRmi Denis-Courmont <rdenis@simphalempin.com>
      Acked-by: NYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      77bd9196
  7. 04 5月, 2005 1 次提交
  8. 20 4月, 2005 1 次提交
  9. 17 4月, 2005 1 次提交
    • L
      Linux-2.6.12-rc2 · 1da177e4
      Linus Torvalds 提交于
      Initial git repository build. I'm not bothering with the full history,
      even though we have it. We can create a separate "historical" git
      archive of that later if we want to, and in the meantime it's about
      3.2GB when imported into git - space that would just make the early
      git days unnecessarily complicated, when we don't have a lot of good
      infrastructure for it.
      
      Let it rip!
      1da177e4