Project

General

Profile

Download (575 Bytes) Statistics
| Branch: | Tag: | Revision:
1
# Ident - Identification Protocol - RFC 1413
2
# Pattern attributes: good fast fast
3
# Protocol groups: networking ietf_proposed_standard
4
# Wiki: http://www.protocolinfo.org/wiki/Ident
5
# Copyright (C) 2008 Matthew Strait, Ethan Sommer; See ../LICENSE
6
#
7
# Usually runs on port 113
8
#
9
# This pattern is believed to work.
10

    
11
ident
12
# "number , numberCRLF" possibly without the CR and/or LF.
13
# ^$ is appropriate because the first packet should never have anything
14
# else in it.
15
^[1-9][0-9]?[0-9]?[0-9]?[0-9]?[\x09-\x0d]*,[\x09-\x0d]*[1-9][0-9]?[0-9]?[0-9]?[0-9]?(\x0d\x0a|[\x0d\x0a])?$
(58-58/146)