17 Jul, 2012

3 commits

  • Lenght field should be encoded using big endian byte order, such as intend in the specs.
    As it is currently written, the len field would not be decoded properly on an implementation using the correct byte ordering. Hence, it could lead to interroperability issues.

    Also, I rewrote the code so that iphc0 argument of lowpan_alloc_new_frame could be removed.

    Signed-off-by: Tony Cheneau
    Signed-off-by: David S. Miller

    Tony Cheneau
     
  • The tag field should be stored and accessed using big endian byte order (as
    intended in the specs). Or else, when displayed with a trafic analyser, such a
    Wireshark, the field not properly displayed (e.g. 0x01 00 instead of 0x00 01,
    and so on).

    Signed-off-by: Tony Cheneau
    Signed-off-by: David S. Miller

    Tony Cheneau
     
  • When a UDP packet gets fragmented, a crash will occur at reassembly time.
    This is because skb->transport_header is not set during earlier period of fragment reassembly.
    As a consequence, call to udp_hdr() return NULL and uh (which is NULL) gets
    dereferenced without much test.

    Signed-off-by: Tony Cheneau
    Signed-off-by: David S. Miller

    Tony Cheneau
     

12 Jul, 2012

4 commits


11 Jul, 2012

1 commit

  • Conflicts:
    net/batman-adv/bridge_loop_avoidance.c
    net/batman-adv/bridge_loop_avoidance.h
    net/batman-adv/soft-interface.c
    net/mac80211/mlme.c

    With merge help from Antonio Quartulli (batman-adv) and
    Stephen Rothwell (drivers/net/usb/qmi_wwan.c).

    The net/mac80211/mlme.c conflict seemed easy enough, accounting for a
    conversion to some new tracing macros.

    Signed-off-by: David S. Miller

    David S. Miller
     

09 Jul, 2012

1 commit


05 Jul, 2012

1 commit

  • This reverts the commit cdf49c283e2e105da86ca575ad35b453f5ff24ea which
    replaces lowpan '.ndo_set_mac_address' method by ethernet's one.

    Accorind to the IEEE 802.15.4 standard, device has 8-byte length address,
    so this hook loses the last 2 bytes which may rise a compatibility problems
    with other IEEE 802.15.4 standard implementations.

    Signed-off-by: Alexander Smirnov
    Signed-off-by: David S. Miller

    alex.bluesman.smirnov@gmail.com
     

29 Jun, 2012

1 commit

  • Using NLMSG_GOODSIZE results in multiple pages being used as
    nlmsg_new() will automatically add the size of the netlink
    header to the payload thus exceeding the page limit.

    NLMSG_DEFAULT_SIZE takes this into account.

    Signed-off-by: Thomas Graf
    Cc: Jiri Pirko
    Cc: Dmitry Eremin-Solenikov
    Cc: Sergey Lapin
    Cc: Johannes Berg
    Cc: Lauro Ramos Venancio
    Cc: Aloisio Almeida Jr
    Cc: Samuel Ortiz
    Reviewed-by: Jiri Pirko
    Signed-off-by: David S. Miller

    Thomas Graf
     

27 Jun, 2012

1 commit

  • We already unlocked a few lines earlier here, so we can go directly to
    drop without passing through unlock. This was introduced recently in
    c5d3687f6c ('6lowpan: read data from skb safely').

    Signed-off-by: Dan Carpenter
    Acked-by: Alexander Smirnov
    Signed-off-by: David S. Miller

    Dan Carpenter
     

26 Jun, 2012

3 commits


17 May, 2012

1 commit


08 May, 2012

1 commit

  • Conflicts:
    drivers/net/ethernet/intel/e1000e/param.c
    drivers/net/wireless/iwlwifi/iwl-agn-rx.c
    drivers/net/wireless/iwlwifi/iwl-trans-pcie-rx.c
    drivers/net/wireless/iwlwifi/iwl-trans.h

    Resolved the iwlwifi conflict with mainline using 3-way diff posted
    by John Linville and Stephen Rothwell. In 'net' we added a bug
    fix to make iwlwifi report a more accurate skb->truesize but this
    conflicted with RX path changes that happened meanwhile in net-next.

    In e1000e a conflict arose in the validation code for settings of
    adapter->itr. 'net-next' had more sophisticated logic so that
    logic was used.

    Signed-off-by: David S. Miller

    David S. Miller
     

26 Apr, 2012

5 commits


16 Apr, 2012

1 commit


02 Apr, 2012

1 commit


23 Feb, 2012

1 commit

  • Use eth_mac_addr() for .ndo_set_mac_address, remove
    lowpan_set_address since it do currently the same as
    eth_mac_addr(). Additional advantage: eth_mac_addr() already
    checks if the given address is valid

    Signed-off-by: Danny Kukawka
    Acked-by: Dmitry Eremin-Solenikov
    Signed-off-by: David S. Miller

    Danny Kukawka
     

19 Nov, 2011

1 commit

  • net: Remove all uses of LL_ALLOCATED_SPACE

    The macro LL_ALLOCATED_SPACE was ill-conceived. It applies the
    alignment to the sum of needed_headroom and needed_tailroom. As
    the amount that is then reserved for head room is needed_headroom
    with alignment, this means that the tail room left may be too small.

    This patch replaces all uses of LL_ALLOCATED_SPACE with the macro
    LL_RESERVED_SPACE and direct reference to needed_tailroom.

    This also fixes the problem with needed_headroom changing between
    allocating the skb and reserving the head room.

    Signed-off-by: Herbert Xu
    Signed-off-by: David S. Miller

    Herbert Xu
     

17 Nov, 2011

1 commit


14 Nov, 2011

5 commits


01 Nov, 2011

1 commit


16 Sep, 2011

4 commits


25 Aug, 2011

1 commit

  • This patch provides base support for transmission of IPv6 packets as
    well as the formation of IPv6 link-local addresses and statelessly
    autoconfigured addresses on top of IEEE 802.15.4 networks.

    For more information please look at the RFC4944 "Compression Format
    for IPv6 Datagrams in Low Power and Losst Networks (6LoWPAN).

    Signed-off-by: Alexander Smirnov
    Signed-off-by: David S. Miller

    Alexander Smirnov
     

30 Jun, 2011

2 commits