Previous Next
Customizing the SNiFF+ <Meta> key (Unix only)

By default, SNiFF+ recognizes the Xwindows modifier key 1 ( mod1 ) as <Meta> . Some vendors use the same modifier key for generating special characters. Using the same <Meta><key> combination for generating special characters and as a SNiFF+ keyboard shortcut can cause a conflict. In such a case the special character is generated and the SNiFF+ keyboard shortcut is executed as well. If you want to use a special modifier for SNiFF+ keyboard shortcuts, you can redefine the Xwindows modifier keys and tell SNiFF+ to recognize a different key as <Meta> .
The following text shows a standard keyboard mapping on an HP as output by the xmodmap utility:

% xmodmap -pm
xmodmap: up to 3 keys per modifier, (keycodes in parentheses):
shift Shift_R (0xc), Shift_L (0xd)
lock Caps_Lock (0x37)
control Control_L (0xe)
mod1 Meta_R (0xa), Meta_L (0xb), Mode_switch (0x36)
mod2
mod3
mod4
mod5

The output shows that both the left and the right <Meta> keys are translated to mod1 .
To change the mapping, follow these steps: