Skip to content

Commit 8dd2cd2

Browse files
committed
added dicom alt port 11112 per the spec
1 parent 24a1e8a commit 8dd2cd2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scapy/contrib/dicom.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141

4242
__all__ = [
4343
"DICOM_PORT",
44+
"DICOM_PORT_ALT",
4445
"APP_CONTEXT_UID",
4546
"DEFAULT_TRANSFER_SYNTAX_UID",
4647
"VERIFICATION_SOP_CLASS_UID",
@@ -105,6 +106,7 @@
105106
log = logging.getLogger("scapy.contrib.dicom")
106107

107108
DICOM_PORT = 104
109+
DICOM_PORT_ALT = 11112
108110
APP_CONTEXT_UID = "1.2.840.10008.3.1.1.1"
109111
DEFAULT_TRANSFER_SYNTAX_UID = "1.2.840.10008.1.2"
110112
VERIFICATION_SOP_CLASS_UID = "1.2.840.10008.1.1"
@@ -1270,6 +1272,8 @@ def mysummary(self) -> str:
12701272

12711273
bind_layers(TCP, DICOM, dport=DICOM_PORT)
12721274
bind_layers(TCP, DICOM, sport=DICOM_PORT)
1275+
bind_layers(TCP, DICOM, dport=DICOM_PORT_ALT)
1276+
bind_layers(TCP, DICOM, sport=DICOM_PORT_ALT)
12731277
bind_layers(DICOM, A_ASSOCIATE_RQ, pdu_type=0x01)
12741278
bind_layers(DICOM, A_ASSOCIATE_AC, pdu_type=0x02)
12751279
bind_layers(DICOM, A_ASSOCIATE_RJ, pdu_type=0x03)

0 commit comments

Comments
 (0)