summaryrefslogtreecommitdiffstats
path: root/src/usr/local/share/protocols/x11.pat
blob: 2028ee7ea86b3e375d6dbf51f900ae41db8e5c10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# X Windows Version 11 - Networked GUI system used in most Unices
# Pattern attributes: good notsofast veryfast
# Protocol groups: remote_access x_consortium_standard
# Wiki: http://www.protocolinfo.org/wiki/X11
# Copyright (C) 2008 Matthew Strait, Ethan Sommer; See ../LICENSE
#
# It is common for X to be tunneled through SSH.  Then obviously this pattern
# will not catch it.
#
# Specification: http://www.msu.edu/~huntharo/xwin/docs/xwindows/PROTO.pdf
# Usually runs on port 6000 (6001 for the second server on a host, etc)
#
# This pattern has been tested.

x11
# 'l' = little-endian.  'B' = big endian
# ".?" is for the unused byte that comes next.  If it's a null, it won't appear.
# \x0b = protocol-major-version 11.
# For some reason, protocol-minor-version is 0, not 6, so can't match it.
# This pattern is too general. 
^[lb].?\x0b
userspace pattern=^[lB].?\x0b
userspace flags=REG_NOSUB
OpenPOWER on IntegriCloud