udp_media.c (d44dc741327906b6eaf9f69c626cfc48d13f7250) udp_media.c (fc1b6d6de2208774efd2a20bf0daddb02d18b1e0)
1/* net/tipc/udp_media.c: IP bearer support for TIPC
2 *
3 * Copyright (c) 2015, Ericsson AB
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are met:
8 *

--- 358 unchanged lines hidden (view full) ---

367 skb_pull(skb, sizeof(struct udphdr));
368 hdr = buf_msg(skb);
369
370 b = rcu_dereference(ub->bearer);
371 if (!b)
372 goto out;
373
374 if (b && test_bit(0, &b->up)) {
1/* net/tipc/udp_media.c: IP bearer support for TIPC
2 *
3 * Copyright (c) 2015, Ericsson AB
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are met:
8 *

--- 358 unchanged lines hidden (view full) ---

367 skb_pull(skb, sizeof(struct udphdr));
368 hdr = buf_msg(skb);
369
370 b = rcu_dereference(ub->bearer);
371 if (!b)
372 goto out;
373
374 if (b && test_bit(0, &b->up)) {
375 TIPC_SKB_CB(skb)->flags = 0;
375 tipc_rcv(sock_net(sk), skb, b);
376 return 0;
377 }
378
379 if (unlikely(msg_user(hdr) == LINK_CONFIG)) {
380 err = tipc_udp_rcast_disc(b, skb);
381 if (err)
382 goto out;

--- 450 unchanged lines hidden ---
376 tipc_rcv(sock_net(sk), skb, b);
377 return 0;
378 }
379
380 if (unlikely(msg_user(hdr) == LINK_CONFIG)) {
381 err = tipc_udp_rcast_disc(b, skb);
382 if (err)
383 goto out;

--- 450 unchanged lines hidden ---