http://dlsvr01.asus.com/pub/ASUS/wireless/WL-600g/GPL_WL600g_1028A.zip
[bcm963xx.git] / targets / fs.src / etc / l7-protocols / protocols / netbios.pat
diff --git a/targets/fs.src/etc/l7-protocols/protocols/netbios.pat b/targets/fs.src/etc/l7-protocols/protocols/netbios.pat
new file mode 100755 (executable)
index 0000000..fc40dfb
--- /dev/null
@@ -0,0 +1,31 @@
+# NetBIOS - Network Basic Input Output System
+# Pattern quality: marginal fast
+# Protocol groups: ietf_internet_standard proprietary networking
+#
+# As mentioned in smb.pat:
+#
+# "This protocol is sometimes also referred to as the Common Internet File 
+# System (CIFS), LanManager or NetBIOS protocol." -- "man samba"
+#
+# Actually, SMB is a higher level protocol than NetBIOS.  However, the 
+# NetBIOS header is only 4 bytes: not much to match on.
+#
+# http://www.ubiqx.org/cifs/SMB.html
+# See also RFCs 1001 and 1002.
+#
+# This pattern attempts to match the (Session layer) NetBIOS Session request. 
+# If sucessful, you may be able to match NetBIOS several packets earlier 
+# than if you just waited for the easier-to-match SMB header.
+#
+# This pattern is untested.
+#
+# To get or provide more information about this protocol and/or pattern:
+# http://www.protocolinfo.org/wiki/NetBIOS
+# http://lists.sourceforge.net/lists/listinfo/l7-filter-developers
+
+netbios
+# session request byte, three bytes of flags and length.  Then 
+# there should be a big mess of letters between A and P which represent
+# the NetBIOS names of the involved computers (with a null between them).  
+# (40ish here, damn this regexp implementation and its lack of {40,})
+\x81.?.?.[A-P][A-P][A-P][A-P][A-P][A-P][A-P][A-P][A-P][A-P][A-P][A-P][A-P][A-P][A-P][A-P][A-P][A-P][A-P][A-P][A-P][A-P][A-P][A-P][A-P][A-P][A-P][A-P][A-P][A-P][A-P][A-P][A-P][A-P][A-P][A-P][A-P][A-P][A-P][A-P]