Print this page
3168 pfmod commands could be more useful

*** 21,32 **** /* * Copyright 2006 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ - #pragma ident "%Z%%M% %I% %E% SMI" - /* * STREAMS Packet Filter Module * * This module applies a filter to messages arriving on its read * queue, passing on messages that the filter accepts adn discarding --- 21,30 ----
*** 53,62 **** --- 51,61 ---- #include <sys/sunddi.h> #include <sys/kmem.h> #include <sys/strsun.h> #include <sys/pfmod.h> #include <sys/modctl.h> + #include <netinet/in.h> /* * Expanded version of the Packetfilt structure that includes * some additional fields that aid filter execution efficiency. */
*** 432,441 **** --- 431,442 ---- case ENF_PUSHZERO: case ENF_PUSHONE: case ENF_PUSHFFFF: case ENF_PUSHFF00: case ENF_PUSH00FF: + case ENF_PUSHFF00_N: + case ENF_PUSH00FF_N: case ENF_NOPUSH: case ENF_POP: break; } }
*** 544,553 **** --- 545,560 ---- *--sp = 0xff00; break; case ENF_PUSH00FF: *--sp = 0x00ff; break; + case ENF_PUSHFF00_N: + *--sp = htons(0xff00); + break; + case ENF_PUSH00FF_N: + *--sp = htons(0x00ff); + break; case ENF_LOAD_OFFSET: offreg = *fp++; break; case ENF_BRTR: if (*sp != 0)