xref: /kernel/linux/linux-5.10/include/net/x25device.h
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-5.10/include/net/
18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci#ifndef _X25DEVICE_H
38c2ecf20Sopenharmony_ci#define _X25DEVICE_H
48c2ecf20Sopenharmony_ci
58c2ecf20Sopenharmony_ci#include <linux/if_ether.h>
68c2ecf20Sopenharmony_ci#include <linux/if_packet.h>
78c2ecf20Sopenharmony_ci#include <linux/if_x25.h>
88c2ecf20Sopenharmony_ci#include <linux/skbuff.h>
98c2ecf20Sopenharmony_ci
108c2ecf20Sopenharmony_cistatic inline __be16 x25_type_trans(struct sk_buff *skb, struct net_device *dev)
118c2ecf20Sopenharmony_ci{
128c2ecf20Sopenharmony_ci	skb->dev = dev;
138c2ecf20Sopenharmony_ci	skb_reset_mac_header(skb);
148c2ecf20Sopenharmony_ci	skb->pkt_type = PACKET_HOST;
158c2ecf20Sopenharmony_ci
168c2ecf20Sopenharmony_ci	return htons(ETH_P_X25);
178c2ecf20Sopenharmony_ci}
188c2ecf20Sopenharmony_ci#endif
19

Indexes created Thu Nov 07 10:32:03 CST 2024