1. 12 Apr, 2011 13 commits
  2. 09 Mar, 2011 1 commit
  3. 02 Mar, 2011 1 commit
  4. 26 Feb, 2011 3 commits
    • Stephen Hemminger's avatar
      Remove #ifdef's · d5b7420a
      Stephen Hemminger authored
      The iproute package keeps its own headers so there is no need
      of polluting code with #ifdef's
      d5b7420a
    • Jiri Pirko's avatar
      iplink: implement setting of master devic · a1e191b9
      Jiri Pirko authored
      a1e191b9
    • Nicolas Dichtel's avatar
      iproute2: allow to specify truncation bits on auth algo · f323f2a3
      Nicolas Dichtel authored
      Hi,
      
      here is a patch against iproute2 to allow user to set a state with a specific
      auth length.
      
      Example:
      $ ip xfrm state add src 10.16.0.72 dst 10.16.0.121 proto ah spi 0x10000000
      auth-trunc "sha256" "azertyuiopqsdfghjklmwxcvbn123456" 96 mode tunnel
      $ ip xfrm state
      src 10.16.0.72 dst 10.16.0.121
               proto ah spi 0x10000000 reqid 0 mode tunnel
               replay-window 0
               auth-trunc hmac(sha256)
      0x617a6572747975696f707173646667686a6b6c6d77786376626e313233343536 96
               sel src 0.0.0.0/0 dst 0.0.0.0/0
      
      Regards,
      Nicolas
      
      >From 522ed7348cdf3b6f501af2a5a5d989de1696565a Mon Sep 17 00:00:00 2001
      From: Nicolas Dichtel <nicolas.dichtel@6wind.com>
      Date: Thu, 23 Dec 2010 06:48:12 -0500
      Subject: [PATCH] iproute2: allow to specify truncation bits on auth algo
      
      Attribute XFRMA_ALG_AUTH_TRUNC can be used to specify
      truncation bits, so we add a new algo type: auth-trunc.
      Signed-off-by: default avatarNicolas Dichtel <nicolas.dichtel@6wind.com>
      f323f2a3
  5. 25 Feb, 2011 13 commits
    • Vlad Dogaru's avatar
      iproute2: fix man page whitespace · 678b99ee
      Vlad Dogaru authored
      Signed-off-by: default avatarVlad Dogaru <ddvlad@rosedu.org>
      678b99ee
    • Eric Dumazet's avatar
      sfq: add divisor support · f3f28c21
      Eric Dumazet authored
      In 2.6.39, we can build SFQ queues with a given hash table size,
      f3f28c21
    • Gerrit Renker's avatar
      iproute: rename 'get_jiffies' since it uses msecs · 81d03dc3
      Gerrit Renker authored
      The get_jiffies() function retrieves rtt-type values in units of
      milliseconds. This patch updates the function name accordingly,
      following the pattern given by dst_metric() <=> dst_metric_rtt().
      81d03dc3
    • Gerrit Renker's avatar
      iproute: fix unit conversion of rtt/rttvar/rto_min · 9b2cdc00
      Gerrit Renker authored
      Since July 2008 (2.6.27, c1e20f7c8b9), the kernel stores the values for
      RTAX_{RTT{,VAR},RTO_MIN} in milliseconds. When using a kernel > 2.6.27 with
      the current iproute2, conversion of these values is broken in either way.
      
      This patch
       * updates the code to pass and retrieve milliseconds;
       * since values < 1msec would be rounded up, also drops the usec/nsec variants;
       * since there is no way to query kernel HZ, also drops the jiffies variant.
      
      Arguments such as
      	rtt		3.23sec
      	rto_min		0xff
      	rto_min		0.200s
      	rttvar		25ms
      now all work as expected when reading back previously set values.
      9b2cdc00
    • Gerrit Renker's avatar
      utils: get_jiffies always uses base=0 · 94089ef7
      Gerrit Renker authored
      get_jiffies() is in all places called in the same manner, with base=0;
      simplify argument list by putting the constant value into the function.
      94089ef7
    • Joy Latten's avatar
      xfrm security context support · 0c7a5945
      Joy Latten authored
      Adds security context support to ip xfrm state.
      Signed-off-by: default avatarJoy Latten <latten@austin.ibm.com>
      0c7a5945
    • Joy Latten's avatar
      xfrm security context support · e4f054f0
      Joy Latten authored
      Adds security context support to ip xfrm policy.
      Signed-off-by: default avatarJoy Latten <latten@austin.ibm.com>
      e4f054f0
    • Joy Latten's avatar
      xfrm security context support · b2bb289a
      Joy Latten authored
      In the Linux kernel, ipsec policy and SAs can include a
      security context to support MAC networking. This feature
      is often referred to as "labeled ipsec".
      
      This patchset adds security context support into ip xfrm
      such that a security context can be included when
      add/delete/display SAs and policies with the ip command.
      The user provides the security context when adding
      SAs and policies. If a policy or SA contains a security
      context, the changes allow the security context to be displayed.
      
      For example,
      ip xfrm state
      src 10.1.1.6 dst 10.1.1.2
      	proto esp spi 0x00000301 reqid 0 mode transport
      	replay-window 0
      	auth hmac(digest_null) 0x3078
      	enc cbc(des3_ede) 0x6970763672656164796c6f676f33646573636263696e3031
      	security context root:system_r:unconfined_t:s0
      
      Please  let me know if all is ok with the patchset.
      Thanks!!
      
      regards,
      Joy
      Signed-off-by: default avatarJoy Latten <latten@austin.ibm.com>
      b2bb289a
    • Vlad Dogaru's avatar
      iproute2: support device group semantics · db02608b
      Vlad Dogaru authored
      Add the group keyword to ip link set, which has the following meaning:
      If both a group and a device name are pressent, we change the device's
      group to the specified one. If only a group is present, then the
      operation specified by the rest of the command should apply on an entire
      group, not a single device.
      
      So, to set eth0 to the default group, one would use
      	ip link set dev eth0 group default
      
      Conversely, to set all the devices in the default group down, use
      	ip link set group default down
      Signed-off-by: default avatarVlad Dogaru <ddvlad@rosedu.org>
      db02608b
    • Vlad Dogaru's avatar
      iproute2: support device group semantics · 26ad3aec
      Vlad Dogaru authored
      Add the group keyword to ip link set, which has the following meaning:
      If both a group and a device name are pressent, we change the device's
      group to the specified one. If only a group is present, then the
      operation specified by the rest of the command should apply on an entire
      group, not a single device.
      
      So, to set eth0 to the default group, one would use
      	ip link set dev eth0 group default
      
      Conversely, to set all the devices in the default group down, use
      	ip link set group default down
      Signed-off-by: default avatarVlad Dogaru <ddvlad@rosedu.org>
      26ad3aec
    • Vlad Dogaru's avatar
      iproute2: support listing devices by group · f960c92a
      Vlad Dogaru authored
      User can specify device group to list by using the group keyword:
      
      	ip link show group test
      
      If no group is specified, 0 (default) is implied.
      Signed-off-by: default avatarVlad Dogaru <ddvlad@rosedu.org>
      f960c92a
    • Stephen Hemminger's avatar
      Merge branch 'choke' into net-next · dd4b25a0
      Stephen Hemminger authored
      Conflicts:
      	include/linux/pkt_sched.h
      dd4b25a0
    • Stephen Hemminger's avatar
      update to net-next (2.6.39) headers · 08dc32e1
      Stephen Hemminger authored
      08dc32e1
  6. 20 Feb, 2011 1 commit
  7. 31 Jan, 2011 1 commit
  8. 13 Jan, 2011 3 commits
    • Stephen Hemminger's avatar
      Revert "iproute2: add VF_PORT support" · 1598b9ef
      Stephen Hemminger authored
      This reverts commit 632110aa.
      
      There seem to be some recent changes in the 802.1Qbh/bg specs which may
      result in changes to this patch in the near future. It seems like its best
      to ignore this patch for now.
      I will re-spin at a later time when the changes in the specs converge.
      
      BTW, Please let me know if I should CC netdev list and others on the
      original email. I can resend this email.
      
      Thanks,
      Roopa
      1598b9ef
    • Roopa Prabhu's avatar
      iproute2: add VF_PORT support · 632110aa
      Roopa Prabhu authored
      Resubmitting Scott Feldmans original patch with below changes
      
      - Fix port profile strlen which was off by 1
      - Added function to convert IFLA_PORT_RESPONSE codes to string
      
      Add support for IFLA_VF_PORTS.  VF port netlink msg layout is
      
              [IFLA_NUM_VF]
              [IFLA_VF_PORTS]
                      [IFLA_VF_PORT]
                              [IFLA_PORT_*], ...
                      [IFLA_VF_PORT]
                              [IFLA_PORT_*], ...
                      ...
              [IFLA_PORT_SELF]
                      [IFLA_PORT_*], ...
      
      The iproute2 cmd line for link set is now:
      
      Usage: ip link add link DEV [ name ] NAME
                         [ txqueuelen PACKETS ]
                         [ address LLADDR ]
                         [ broadcast LLADDR ]
                         [ mtu MTU ]
                         type TYPE [ ARGS ]
             ip link delete DEV type TYPE [ ARGS ]
      
             ip link set DEVICE [ { up | down } ]
                                [ arp { on | off } ]
                                [ dynamic { on | off } ]
                                [ multicast { on | off } ]
                                [ allmulticast { on | off } ]
                                [ promisc { on | off } ]
                                [ trailers { on | off } ]
                                [ txqueuelen PACKETS ]
                                [ name NEWNAME ]
                                [ address LLADDR ]
                                [ broadcast LLADDR ]
                                [ mtu MTU ]
                                [ netns PID ]
                                [ alias NAME ]
                                [ port MODE { PROFILE | VSI } ]
                                [ vf NUM [ mac LLADDR ]
                                         [ vlan VLANID [ qos VLAN-QOS ] ]
                                         [ rate TXRATE ]
                                         [ port MODE { PROFILE | VSI } ] ]
             ip link show [ DEVICE ]
      
      TYPE := { vlan | veth | vcan | dummy | ifb | macvlan | can }
      MODE := { assoc | preassoc | preassocrr | disassoc }
      PROFILE := profile PROFILE
                 [ instance UUID ]
                 [ host UUID ]
      VSI := vsi mgr MGRID type VTID ver VER
             [ instance UUID ]
      Signed-off-by: default avatarScott Feldman <scofeldm@cisco.com>
      Signed-off-by: default avatarRoopa Prabhu <roprabhu@cisco.com>
      632110aa
    • Stephen Hemminger's avatar
      Update to lasest kernel headers · 9351fec7
      Stephen Hemminger authored
      9351fec7
  9. 07 Jan, 2011 1 commit
  10. 29 Dec, 2010 1 commit
  11. 16 Dec, 2010 1 commit
  12. 10 Dec, 2010 1 commit
    • Stephen Hemminger's avatar
      Cleanup ll_map · 4b3385f6
      Stephen Hemminger authored
      In preparation for adding name hash:
        * add const
        * use same types in cache as ifinfomsg
        * rename idxmap to ll_cache
      4b3385f6