/* $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-11Take a reference on the (activity log) file itself, and not on thepgoyette 2016-01-09When following process parent pointers, lock the new (parent) beforepgoyette 2016-01-08Don't release the proc_lock mutex until we're finished using the stuffpgoyette 2016-01-08typo in debug printdholland 2016-01-05KNF - blank line after (non-existant) declarations. No functional change.pgoyette 2016-01-05Although not recommended, it is possible to include filemon(4) as apgoyette 2015-11-25Be a bit more paranoid about hijacking (and restoring) syscall functionpgoyette 2015-11-24Add missing /* $NetBSD$ */ keywordpgoyette 2015-11-24finish previous - remove no-longer-used variablespgoyette 2015-11-23Remove the requirement that the target (tracked) process be a descendantpgoyette 2015-11-23Clean up the error paths in filemon_ioctl(), making sure to release thepgoyette 2015-11-23Retrieve the pathname of the exec'd file before we call sys_execve().pgoyette 2015-11-22Fix return-code handling for execve and chdir wrappers.pgoyette 2015-11-21If a second call to the SET_FD ioctl occurs, release the reference wepgoyette 2015-11-21The correct default return value from a module's xxx_modcmd() routinepgoyette 2015-11-20Ensure that the PID specified in the FILEMON_SET_PID ioctl() callpgoyette 2015-11-20Remove extra ')' (bad cut&paste)pgoyette 2015-11-20Don't allow setting the PID-to-trace if the target has a non-nativepgoyette 2015-11-20Install wrapper functions only in native emulation.pgoyette 2015-11-20Don't initialize twice.pgoyette 2015-09-06More on PR 41200: headers that declare ioctls should include sys/ioccom.h.dholland 2015-08-20include "ioconf.h" to get the 'void <driver>attach(int count);' prototype.christos 2015-06-17Bump version due to openatsjg 2015-06-15staircase flattening police.christos 2015-06-15Latest clang uses openat, filemon thus needs to handle it.sjg 2015-05-30Improve wording.joerg 2015-05-21Avoid dereferencing NULL tp crashing the kernel (brad harder)christos 2014-07-25Add d_discard to all struct cdevsw instances I could find.dholland 2014-03-27remove a bunch of repetitive code by introducing filemon_printf.christos 2014-03-16Change (mostly mechanically) every cdevsw/bdevsw I can find to usedholland 2012-11-19filemon_pid_check:sjg 2012-06-20Install filemon.hsjg 2011-10-15Add the plumbing so one could compile filemon(4) into a kernel.sjg 2011-09-24For files opened O_RDWR, output an R record as well as Wsjg 2011-07-04Set FILEMON_VERSION to 3sjg 2011-05-13filemon_open: remove unnecessary check (which has a leak in error path).rmind 2011-03-13EJUSTRETURN is expected return from sys_execve()sjg 2010-09-09First cut of simple syscall wrapper, which make(1) can usesjg