Lines Matching refs:skb

25 static int br_pass_frame_up_finish(struct sk_buff *skb)  in br_pass_frame_up_finish()  argument
27 netif_rx(skb); in br_pass_frame_up_finish()
32 static void br_pass_frame_up(struct net_bridge *br, struct sk_buff *skb) in br_pass_frame_up() argument
37 br->statistics.rx_bytes += skb->len; in br_pass_frame_up()
39 indev = skb->dev; in br_pass_frame_up()
40 skb->dev = &br->dev; in br_pass_frame_up()
41 skb->pkt_type = PACKET_HOST; in br_pass_frame_up()
42 skb_push(skb, ETH_HLEN); in br_pass_frame_up()
43 skb->protocol = eth_type_trans(skb, &br->dev); in br_pass_frame_up()
45 NF_HOOK(PF_BRIDGE, NF_BR_LOCAL_IN, skb, indev, NULL, in br_pass_frame_up()
49 static int br_handle_frame_finish(struct sk_buff *skb) in br_handle_frame_finish() argument
57 dest = skb->mac.ethernet->h_dest; in br_handle_frame_finish()
59 p = skb->dev->br_port; in br_handle_frame_finish()
65 if (skb->dev->br_port == NULL) in br_handle_frame_finish()
72 skb2 = skb_clone(skb, GFP_ATOMIC); in br_handle_frame_finish()
80 br_flood_forward(br, skb, !passedup); in br_handle_frame_finish()
82 br_pass_frame_up(br, skb); in br_handle_frame_finish()
89 br_pass_frame_up(br, skb); in br_handle_frame_finish()
91 kfree_skb(skb); in br_handle_frame_finish()
97 br_forward(dst->dst, skb); in br_handle_frame_finish()
102 br_flood_forward(br, skb, 0); in br_handle_frame_finish()
111 kfree_skb(skb); in br_handle_frame_finish()
115 void br_handle_frame(struct sk_buff *skb) in br_handle_frame() argument
121 dest = skb->mac.ethernet->h_dest; in br_handle_frame()
123 p = skb->dev->br_port; in br_handle_frame()
129 if (skb->dev->br_port == NULL) in br_handle_frame()
136 if (skb->mac.ethernet->h_source[0] & 1) in br_handle_frame()
141 br_fdb_insert(br, p, skb->mac.ethernet->h_source, 0); in br_handle_frame()
149 NF_HOOK(PF_BRIDGE, NF_BR_PRE_ROUTING, skb, skb->dev, NULL, in br_handle_frame()
158 kfree_skb(skb); in br_handle_frame()
163 NF_HOOK(PF_BRIDGE, NF_BR_LOCAL_IN, skb, skb->dev,NULL, in br_handle_frame()
170 kfree_skb(skb); in br_handle_frame()