mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-12 06:10:10 +00:00
5a82c74822
Also, change sources.redhat.com to sourceware.org. This patch was automatically generated by running the following shell script, which uses GNU sed, and which avoids modifying files imported from upstream: sed -ri ' s,(http|ftp)(://(.*\.)?(gnu|fsf|sourceware)\.org($|[^.]|\.[^a-z])),https\2,g s,(http|ftp)(://(.*\.)?)sources\.redhat\.com($|[^.]|\.[^a-z]),https\2sourceware.org\4,g ' \ $(find $(git ls-files) -prune -type f \ ! -name '*.po' \ ! -name 'ChangeLog*' \ ! -path COPYING ! -path COPYING.LIB \ ! -path manual/fdl-1.3.texi ! -path manual/lgpl-2.1.texi \ ! -path manual/texinfo.tex ! -path scripts/config.guess \ ! -path scripts/config.sub ! -path scripts/install-sh \ ! -path scripts/mkinstalldirs ! -path scripts/move-if-change \ ! -path INSTALL ! -path locale/programs/charmap-kw.h \ ! -path po/libc.pot ! -path sysdeps/gnu/errlist.c \ ! '(' -name configure \ -execdir test -f configure.ac -o -f configure.in ';' ')' \ ! '(' -name preconfigure \ -execdir test -f preconfigure.ac ';' ')' \ -print) and then by running 'make dist-prepare' to regenerate files built from the altered files, and then executing the following to cleanup: chmod a+x sysdeps/unix/sysv/linux/riscv/configure # Omit irrelevant whitespace and comment-only changes, # perhaps from a slightly-different Autoconf version. git checkout -f \ sysdeps/csky/configure \ sysdeps/hppa/configure \ sysdeps/riscv/configure \ sysdeps/unix/sysv/linux/csky/configure # Omit changes that caused a pre-commit check to fail like this: # remote: *** error: sysdeps/powerpc/powerpc64/ppc-mcount.S: trailing lines git checkout -f \ sysdeps/powerpc/powerpc64/ppc-mcount.S \ sysdeps/unix/sysv/linux/s390/s390-64/syscall.S # Omit change that caused a pre-commit check to fail like this: # remote: *** error: sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: last line does not end in newline git checkout -f sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S
111 lines
3.6 KiB
C
111 lines
3.6 KiB
C
/* Copyright (C) 1997-2019 Free Software Foundation, Inc.
|
|
This file is part of the GNU C Library.
|
|
|
|
The GNU C Library is free software; you can redistribute it and/or
|
|
modify it under the terms of the GNU Lesser General Public
|
|
License as published by the Free Software Foundation; either
|
|
version 2.1 of the License, or (at your option) any later version.
|
|
|
|
The GNU C Library is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Lesser General Public License for more details.
|
|
|
|
You should have received a copy of the GNU Lesser General Public
|
|
License along with the GNU C Library; if not, see
|
|
<https://www.gnu.org/licenses/>. */
|
|
|
|
#ifndef _NETINET_IF_TR_H
|
|
#define _NETINET_IF_TR_H 1
|
|
|
|
#include <sys/types.h>
|
|
#include <stdint.h>
|
|
|
|
/* IEEE 802.5 Token-Ring magic constants. The frame sizes omit the preamble
|
|
and FCS/CRC (frame check sequence). */
|
|
#define TR_ALEN 6 /* Octets in one token-ring addr */
|
|
#define TR_HLEN (sizeof (struct trh_hdr) + sizeof (struct trllc))
|
|
#define AC 0x10
|
|
#define LLC_FRAME 0x40
|
|
|
|
/* LLC and SNAP constants */
|
|
#define EXTENDED_SAP 0xAA
|
|
#define UI_CMD 0x03
|
|
|
|
/* This is an Token-Ring frame header. */
|
|
struct trh_hdr
|
|
{
|
|
uint8_t ac; /* access control field */
|
|
uint8_t fc; /* frame control field */
|
|
uint8_t daddr[TR_ALEN]; /* destination address */
|
|
uint8_t saddr[TR_ALEN]; /* source address */
|
|
uint16_t rcf; /* route control field */
|
|
uint16_t rseg[8]; /* routing registers */
|
|
};
|
|
|
|
/* This is an Token-Ring LLC structure */
|
|
struct trllc
|
|
{
|
|
uint8_t dsap; /* destination SAP */
|
|
uint8_t ssap; /* source SAP */
|
|
uint8_t llc; /* LLC control field */
|
|
uint8_t protid[3]; /* protocol id */
|
|
uint16_t ethertype; /* ether type field */
|
|
};
|
|
|
|
/* Token-Ring statistics collection data. */
|
|
struct tr_statistics
|
|
{
|
|
unsigned long rx_packets; /* total packets received */
|
|
unsigned long tx_packets; /* total packets transmitted */
|
|
unsigned long rx_bytes; /* total bytes received */
|
|
unsigned long tx_bytes; /* total bytes transmitted */
|
|
unsigned long rx_errors; /* bad packets received */
|
|
unsigned long tx_errors; /* packet transmit problems */
|
|
unsigned long rx_dropped; /* no space in linux buffers */
|
|
unsigned long tx_dropped; /* no space available in linux */
|
|
unsigned long multicast; /* multicast packets received */
|
|
unsigned long transmit_collision;
|
|
|
|
/* detailed Token-Ring errors. See IBM Token-Ring Network
|
|
Architecture for more info */
|
|
|
|
unsigned long line_errors;
|
|
unsigned long internal_errors;
|
|
unsigned long burst_errors;
|
|
unsigned long A_C_errors;
|
|
unsigned long abort_delimiters;
|
|
unsigned long lost_frames;
|
|
unsigned long recv_congest_count;
|
|
unsigned long frame_copied_errors;
|
|
unsigned long frequency_errors;
|
|
unsigned long token_errors;
|
|
unsigned long dummy1;
|
|
};
|
|
|
|
/* source routing stuff */
|
|
#define TR_RII 0x80
|
|
#define TR_RCF_DIR_BIT 0x80
|
|
#define TR_RCF_LEN_MASK 0x1f00
|
|
#define TR_RCF_BROADCAST 0x8000 /* all-routes broadcast */
|
|
#define TR_RCF_LIMITED_BROADCAST 0xC000 /* single-route broadcast */
|
|
#define TR_RCF_FRAME2K 0x20
|
|
#define TR_RCF_BROADCAST_MASK 0xC000
|
|
#define TR_MAXRIFLEN 18
|
|
|
|
#ifdef __USE_MISC
|
|
|
|
struct trn_hdr
|
|
{
|
|
uint8_t trn_ac; /* access control field */
|
|
uint8_t trn_fc; /* field control field */
|
|
uint8_t trn_dhost[TR_ALEN]; /* destination host */
|
|
uint8_t trn_shost[TR_ALEN]; /* source host */
|
|
uint16_t trn_rcf; /* route control field */
|
|
uint16_t trn_rseg[8]; /* routing registers */
|
|
};
|
|
|
|
#endif
|
|
|
|
#endif /* netinet/if_tr.h */
|