Linux Audio

Check our new training course

Loading...
v5.9
 1/* SPDX-License-Identifier: GPL-2.0 */
 2/* Copyright 2011-2014 Autronica Fire and Security AS
 3 *
 
 
 
 
 
 4 * Author(s):
 5 *	2011-2014 Arvid Brodin, arvid.brodin@alten.se
 6 *
 7 * include file for HSR and PRP.
 8 */
 9
10#ifndef __HSR_FORWARD_H
11#define __HSR_FORWARD_H
12
13#include <linux/netdevice.h>
14#include "hsr_main.h"
15
16void hsr_forward_skb(struct sk_buff *skb, struct hsr_port *port);
17struct sk_buff *prp_create_tagged_frame(struct hsr_frame_info *frame,
18					struct hsr_port *port);
19struct sk_buff *hsr_create_tagged_frame(struct hsr_frame_info *frame,
20					struct hsr_port *port);
21struct sk_buff *hsr_get_untagged_frame(struct hsr_frame_info *frame,
22				       struct hsr_port *port);
23struct sk_buff *prp_get_untagged_frame(struct hsr_frame_info *frame,
24				       struct hsr_port *port);
25bool prp_drop_frame(struct hsr_frame_info *frame, struct hsr_port *port);
26void prp_fill_frame_info(__be16 proto, struct sk_buff *skb,
27			 struct hsr_frame_info *frame);
28void hsr_fill_frame_info(__be16 proto, struct sk_buff *skb,
29			 struct hsr_frame_info *frame);
30#endif /* __HSR_FORWARD_H */
v4.10.11
 
 1/* Copyright 2011-2014 Autronica Fire and Security AS
 2 *
 3 * This program is free software; you can redistribute it and/or modify it
 4 * under the terms of the GNU General Public License as published by the Free
 5 * Software Foundation; either version 2 of the License, or (at your option)
 6 * any later version.
 7 *
 8 * Author(s):
 9 *	2011-2014 Arvid Brodin, arvid.brodin@alten.se
 
 
10 */
11
12#ifndef __HSR_FORWARD_H
13#define __HSR_FORWARD_H
14
15#include <linux/netdevice.h>
16#include "hsr_main.h"
17
18void hsr_forward_skb(struct sk_buff *skb, struct hsr_port *port);
19
 
 
 
 
 
 
 
 
 
 
 
 
20#endif /* __HSR_FORWARD_H */