/* $NetBSD: llc.h,v 1.2 2014/11/19 19:33:30 christos Exp $ */
/*
* Copyright (c) 1993, 1994, 1997
* The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that: (1) source code distributions
* retain the above copyright notice and this paragraph in its entirety, (2)
* distributions including binary code include the above copyright notice and
* this paragraph in its entirety in the documentation or other materials
* provided with the distribution, and (3) all advertising materials mentioning
* features or use of this software display the following acknowledgement:
* ``This product includes software developed by the University of California,
* Lawrence Berkeley Laboratory and its contributors.'' Neither the name of
* the University nor the names of its contributors may be used to endorse
* or promote products derived from this software without specific prior
* written permission.
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
* WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*/
/*
* Definitions for information in the LLC header.
*/
#define LLC_U_FMT 3
#define LLC_GSAP 1
#define LLC_IG 1 /* Individual / Group */
#define LLC_S_FMT 1
#define LLC_U_POLL 0x10
#define LLC_IS_POLL 0x0100
#define LLC_XID_FI 0x81
#define LLC_U_CMD_MASK 0xef
#define LLC_UI 0x03
#define LLC_UA 0x63
#define LLC_DISC 0x43
#define LLC_DM 0x0f
#define LLC_SABME 0x6f
#define LLC_TEST 0xe3
#define LLC_XID 0xaf
#define LLC_FRMR 0x87
#define LLC_S_CMD_MASK 0x0f
#define LLC_RR 0x0001
#define LLC_RNR 0x0005
#define LLC_REJ 0x0009
#define LLC_IS_NR(is) (((is) >> 9) & 0x7f)
#define LLC_I_NS(is) (((is) >> 1) & 0x7f)
/*
* 802.2 LLC SAP values.
*/
#ifndef LLCSAP_NULL
#define LLCSAP_NULL 0x00
#endif
#ifndef LLCSAP_GLOBAL
#define LLCSAP_GLOBAL 0xff
#endif
#ifndef LLCSAP_8021B_I
#define LLCSAP_8021B_I 0x02
#endif
#ifndef LLCSAP_8021B_G
#define LLCSAP_8021B_G 0x03
#endif
#ifndef LLCSAP_IP
#define LLCSAP_IP 0x06
#endif
#ifndef LLCSAP_PROWAYNM
#define LLCSAP_PROWAYNM 0x0e
#endif
#ifndef LLCSAP_8021D
#define LLCSAP_8021D 0x42
#endif
#ifndef LLCSAP_RS511
#define LLCSAP_RS511 0x4e
#endif
#ifndef LLCSAP_ISO8208
#define LLCSAP_ISO8208 0x7e
#endif
#ifndef LLCSAP_PROWAY
#define LLCSAP_PROWAY 0x8e
#endif
#ifndef LLCSAP_SNAP
#define LLCSAP_SNAP 0xaa
#endif
#ifndef LLCSAP_IPX
#define LLCSAP_IPX 0xe0
#endif
#ifndef LLCSAP_NETBEUI
#define LLCSAP_NETBEUI 0xf0
#endif
#ifndef LLCSAP_ISONS
#define LLCSAP_ISONS 0xfe
#endif
emon?id=2f1d9cd3a3988c8009801e43fc366e434be4d7ee&showmsg=1'>Expand)
Author |
| 2016-01-11 | Take a reference on the (activity log) file itself, and not on the | pgoyette |
| 2016-01-09 | When following process parent pointers, lock the new (parent) before | pgoyette |
| 2016-01-08 | Don't release the proc_lock mutex until we're finished using the stuff | pgoyette |
| 2016-01-08 | typo in debug print | dholland |
| 2016-01-05 | KNF - blank line after (non-existant) declarations. No functional change. | pgoyette |
| 2016-01-05 | Although not recommended, it is possible to include filemon(4) as a | pgoyette |
| 2015-11-25 | Be a bit more paranoid about hijacking (and restoring) syscall function | pgoyette |
| 2015-11-24 | Add missing /* $NetBSD$ */ keyword | pgoyette |
| 2015-11-24 | finish previous - remove no-longer-used variables | pgoyette |
| 2015-11-23 | Remove the requirement that the target (tracked) process be a descendant | pgoyette |
| 2015-11-23 | Clean up the error paths in filemon_ioctl(), making sure to release the | pgoyette |
| 2015-11-23 | Retrieve the pathname of the exec'd file before we call sys_execve(). | pgoyette |
| 2015-11-22 | Fix return-code handling for execve and chdir wrappers. | pgoyette |
| 2015-11-21 | If a second call to the SET_FD ioctl occurs, release the reference we | pgoyette |
| 2015-11-21 | The correct default return value from a module's xxx_modcmd() routine | pgoyette |
| 2015-11-20 | Ensure that the PID specified in the FILEMON_SET_PID ioctl() call | pgoyette |
| 2015-11-20 | Remove extra ')' (bad cut&paste) | pgoyette |
| 2015-11-20 | Don't allow setting the PID-to-trace if the target has a non-native | pgoyette |
| 2015-11-20 | Install wrapper functions only in native emulation. | pgoyette |
| 2015-11-20 | Don't initialize twice. | pgoyette |
| 2015-09-06 | More on PR 41200: headers that declare ioctls should include sys/ioccom.h. | dholland |
| 2015-08-20 | include "ioconf.h" to get the 'void <driver>attach(int count);' prototype. | christos |
| 2015-06-17 | Bump version due to openat | sjg |
| 2015-06-15 | staircase flattening police. | christos |
| 2015-06-15 | Latest clang uses openat, filemon thus needs to handle it. | sjg |
| 2015-05-30 | Improve wording. | joerg |
| 2015-05-21 | Avoid dereferencing NULL tp crashing the kernel (brad harder) | christos |
| 2014-07-25 | Add d_discard to all struct cdevsw instances I could find. | dholland |
| 2014-03-27 | remove a bunch of repetitive code by introducing filemon_printf. | christos |
| 2014-03-16 | Change (mostly mechanically) every cdevsw/bdevsw I can find to use | dholland |
| 2012-11-19 | filemon_pid_check: | sjg |
| 2012-06-20 | Install filemon.h | sjg |
| 2011-10-15 | Add the plumbing so one could compile filemon(4) into a kernel. | sjg |
| 2011-09-24 | For files opened O_RDWR, output an R record as well as W | sjg |
| 2011-07-04 | Set FILEMON_VERSION to 3 | sjg |
| 2011-05-13 | filemon_open: remove unnecessary check (which has a leak in error path). | rmind |
| 2011-03-13 | EJUSTRETURN is expected return from sys_execve() | sjg |
| 2010-09-09 | First cut of simple syscall wrapper, which make(1) can use | sjg |