···99 *1010 * Author: Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG>1111 * Donald Becker, <becker@super.org>1212- * Peter De Schrijver, <stud11@cc4.kuleuven.ac.be>1212+ * Peter De Schrijver, <stud11@cc4.kuleuven.ac.be>1313 *1414 * This program is free software; you can redistribute it and/or1515 * modify it under the terms of the GNU General Public License···1919#ifndef _LINUX_IF_TR_H2020#define _LINUX_IF_TR_H21212222-2322/* IEEE 802.5 Token-Ring magic constants. The frame sizes omit the preamble2423 and FCS/CRC (frame check sequence). */2525-#define TR_ALEN 6 /* Octets in one ethernet addr */2626-#define TR_HLEN (sizeof(struct trh_hdr)+sizeof(struct trllc))2727-#define AC 0x102828-#define LLC_FRAME 0x402929-#if 03030-#define ETH_HLEN 14 /* Total octets in header. */3131-#define ETH_ZLEN 60 /* Min. octets in frame sans FCS */3232-#define ETH_DATA_LEN 1500 /* Max. octets in payload */3333-#define ETH_FRAME_LEN 1514 /* Max. octets in frame sans FCS */3434-#endif3535-2424+#define TR_ALEN 6 /* Octets in one token-ring addr */2525+#define TR_HLEN (sizeof(struct trh_hdr)+sizeof(struct trllc))2626+#define AC 0x102727+#define LLC_FRAME 0x4036283729/* LLC and SNAP constants */3838-#define EXTENDED_SAP 0xAA3939-#define UI_CMD 0x033030+#define EXTENDED_SAP 0xAA3131+#define UI_CMD 0x0340324133/* This is an Token-Ring frame header. */4234struct trh_hdr {···8896};89979098/* source routing stuff */9191-9292-#define TR_RII 0x809393-#define TR_RCF_DIR_BIT 0x809494-#define TR_RCF_LEN_MASK 0x1f009595-#define TR_RCF_BROADCAST 0x8000 /* all-routes broadcast */9696-#define TR_RCF_LIMITED_BROADCAST 0xC000 /* single-route broadcast */9797-#define TR_RCF_FRAME2K 0x209898-#define TR_RCF_BROADCAST_MASK 0xC0009999-#define TR_MAXRIFLEN 189999+#define TR_RII 0x80100100+#define TR_RCF_DIR_BIT 0x80101101+#define TR_RCF_LEN_MASK 0x1f00102102+#define TR_RCF_BROADCAST 0x8000 /* all-routes broadcast */103103+#define TR_RCF_LIMITED_BROADCAST 0xC000 /* single-route broadcast */104104+#define TR_RCF_FRAME2K 0x20105105+#define TR_RCF_BROADCAST_MASK 0xC000106106+#define TR_MAXRIFLEN 18100107101108#endif /* _LINUX_IF_TR_H */
-1
include/linux/net.h
···101101 * @sk: internal networking protocol agnostic socket representation102102 * @wait: wait queue for several uses103103 * @type: socket type (%SOCK_STREAM, etc)104104- * @passcred: credentials (used only in Unix Sockets (aka PF_LOCAL))105104 */106105struct socket {107106 socket_state state;
+1-1
include/linux/netdevice.h
···503503#define SET_NETDEV_DEV(net, pdev) ((net)->class_dev.dev = (pdev))504504505505struct packet_type {506506- unsigned short type; /* This is really htons(ether_type). */506506+ __be16 type; /* This is really htons(ether_type). */507507 struct net_device *dev; /* NULL is wildcarded here */508508 int (*func) (struct sk_buff *, struct net_device *,509509 struct packet_type *);