···9 *10 * Author: Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG>11 * Donald Becker, <becker@super.org>12- * Peter De Schrijver, <stud11@cc4.kuleuven.ac.be>13 *14 * This program is free software; you can redistribute it and/or15 * modify it under the terms of the GNU General Public License···19#ifndef _LINUX_IF_TR_H20#define _LINUX_IF_TR_H2122-23/* IEEE 802.5 Token-Ring magic constants. The frame sizes omit the preamble24 and FCS/CRC (frame check sequence). */25-#define TR_ALEN 6 /* Octets in one ethernet addr */26-#define TR_HLEN (sizeof(struct trh_hdr)+sizeof(struct trllc))27-#define AC 0x1028-#define LLC_FRAME 0x4029-#if 030-#define ETH_HLEN 14 /* Total octets in header. */31-#define ETH_ZLEN 60 /* Min. octets in frame sans FCS */32-#define ETH_DATA_LEN 1500 /* Max. octets in payload */33-#define ETH_FRAME_LEN 1514 /* Max. octets in frame sans FCS */34-#endif35-3637/* LLC and SNAP constants */38-#define EXTENDED_SAP 0xAA39-#define UI_CMD 0x034041/* This is an Token-Ring frame header. */42struct trh_hdr {···88};8990/* source routing stuff */91-92-#define TR_RII 0x8093-#define TR_RCF_DIR_BIT 0x8094-#define TR_RCF_LEN_MASK 0x1f0095-#define TR_RCF_BROADCAST 0x8000 /* all-routes broadcast */96-#define TR_RCF_LIMITED_BROADCAST 0xC000 /* single-route broadcast */97-#define TR_RCF_FRAME2K 0x2098-#define TR_RCF_BROADCAST_MASK 0xC00099-#define TR_MAXRIFLEN 18100101#endif /* _LINUX_IF_TR_H */
···9 *10 * Author: Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG>11 * Donald Becker, <becker@super.org>12+ * Peter De Schrijver, <stud11@cc4.kuleuven.ac.be>13 *14 * This program is free software; you can redistribute it and/or15 * modify it under the terms of the GNU General Public License···19#ifndef _LINUX_IF_TR_H20#define _LINUX_IF_TR_H21022/* IEEE 802.5 Token-Ring magic constants. The frame sizes omit the preamble23 and FCS/CRC (frame check sequence). */24+#define TR_ALEN 6 /* Octets in one token-ring addr */25+#define TR_HLEN (sizeof(struct trh_hdr)+sizeof(struct trllc))26+#define AC 0x1027+#define LLC_FRAME 0x4000000002829/* LLC and SNAP constants */30+#define EXTENDED_SAP 0xAA31+#define UI_CMD 0x033233/* This is an Token-Ring frame header. */34struct trh_hdr {···96};9798/* source routing stuff */99+#define TR_RII 0x80100+#define TR_RCF_DIR_BIT 0x80101+#define TR_RCF_LEN_MASK 0x1f00102+#define TR_RCF_BROADCAST 0x8000 /* all-routes broadcast */103+#define TR_RCF_LIMITED_BROADCAST 0xC000 /* single-route broadcast */104+#define TR_RCF_FRAME2K 0x20105+#define TR_RCF_BROADCAST_MASK 0xC000106+#define TR_MAXRIFLEN 180107108#endif /* _LINUX_IF_TR_H */
-1
include/linux/net.h
···101 * @sk: internal networking protocol agnostic socket representation102 * @wait: wait queue for several uses103 * @type: socket type (%SOCK_STREAM, etc)104- * @passcred: credentials (used only in Unix Sockets (aka PF_LOCAL))105 */106struct socket {107 socket_state state;
···101 * @sk: internal networking protocol agnostic socket representation102 * @wait: wait queue for several uses103 * @type: socket type (%SOCK_STREAM, etc)0104 */105struct socket {106 socket_state state;
+1-1
include/linux/netdevice.h
···503#define SET_NETDEV_DEV(net, pdev) ((net)->class_dev.dev = (pdev))504505struct packet_type {506- unsigned short type; /* This is really htons(ether_type). */507 struct net_device *dev; /* NULL is wildcarded here */508 int (*func) (struct sk_buff *, struct net_device *,509 struct packet_type *);
···503#define SET_NETDEV_DEV(net, pdev) ((net)->class_dev.dev = (pdev))504505struct packet_type {506+ __be16 type; /* This is really htons(ether_type). */507 struct net_device *dev; /* NULL is wildcarded here */508 int (*func) (struct sk_buff *, struct net_device *,509 struct packet_type *);