ZTWHHH commited on
Commit
7105614
·
verified ·
1 Parent(s): 6756267

Add files using upload-large-folder tool

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. vllm/lib/python3.10/site-packages/dns/__pycache__/_features.cpython-310.pyc +0 -0
  2. vllm/lib/python3.10/site-packages/dns/__pycache__/zonetypes.cpython-310.pyc +0 -0
  3. vllm/lib/python3.10/site-packages/dns/rdtypes/ANY/CSYNC.py +68 -0
  4. vllm/lib/python3.10/site-packages/dns/rdtypes/ANY/EUI64.py +30 -0
  5. vllm/lib/python3.10/site-packages/dns/rdtypes/ANY/GPOS.py +126 -0
  6. vllm/lib/python3.10/site-packages/dns/rdtypes/ANY/ISDN.py +78 -0
  7. vllm/lib/python3.10/site-packages/dns/rdtypes/ANY/L64.py +47 -0
  8. vllm/lib/python3.10/site-packages/dns/rdtypes/ANY/NINFO.py +26 -0
  9. vllm/lib/python3.10/site-packages/dns/rdtypes/ANY/NSEC3PARAM.py +69 -0
  10. vllm/lib/python3.10/site-packages/dns/rdtypes/ANY/PTR.py +24 -0
  11. vllm/lib/python3.10/site-packages/dns/rdtypes/ANY/SOA.py +86 -0
  12. vllm/lib/python3.10/site-packages/dns/rdtypes/ANY/SPF.py +26 -0
  13. vllm/lib/python3.10/site-packages/dns/rdtypes/ANY/TKEY.py +142 -0
  14. vllm/lib/python3.10/site-packages/dns/rdtypes/ANY/URI.py +79 -0
  15. vllm/lib/python3.10/site-packages/dns/rdtypes/ANY/__pycache__/AFSDB.cpython-310.pyc +0 -0
  16. vllm/lib/python3.10/site-packages/dns/rdtypes/ANY/__pycache__/AMTRELAY.cpython-310.pyc +0 -0
  17. vllm/lib/python3.10/site-packages/dns/rdtypes/ANY/__pycache__/AVC.cpython-310.pyc +0 -0
  18. vllm/lib/python3.10/site-packages/dns/rdtypes/ANY/__pycache__/CAA.cpython-310.pyc +0 -0
  19. vllm/lib/python3.10/site-packages/dns/rdtypes/ANY/__pycache__/CDNSKEY.cpython-310.pyc +0 -0
  20. vllm/lib/python3.10/site-packages/dns/rdtypes/ANY/__pycache__/CDS.cpython-310.pyc +0 -0
  21. vllm/lib/python3.10/site-packages/dns/rdtypes/ANY/__pycache__/CERT.cpython-310.pyc +0 -0
  22. vllm/lib/python3.10/site-packages/dns/rdtypes/ANY/__pycache__/CNAME.cpython-310.pyc +0 -0
  23. vllm/lib/python3.10/site-packages/dns/rdtypes/ANY/__pycache__/CSYNC.cpython-310.pyc +0 -0
  24. vllm/lib/python3.10/site-packages/dns/rdtypes/ANY/__pycache__/DLV.cpython-310.pyc +0 -0
  25. vllm/lib/python3.10/site-packages/dns/rdtypes/ANY/__pycache__/DNAME.cpython-310.pyc +0 -0
  26. vllm/lib/python3.10/site-packages/dns/rdtypes/ANY/__pycache__/DNSKEY.cpython-310.pyc +0 -0
  27. vllm/lib/python3.10/site-packages/dns/rdtypes/ANY/__pycache__/DS.cpython-310.pyc +0 -0
  28. vllm/lib/python3.10/site-packages/dns/rdtypes/ANY/__pycache__/EUI48.cpython-310.pyc +0 -0
  29. vllm/lib/python3.10/site-packages/dns/rdtypes/ANY/__pycache__/EUI64.cpython-310.pyc +0 -0
  30. vllm/lib/python3.10/site-packages/dns/rdtypes/ANY/__pycache__/GPOS.cpython-310.pyc +0 -0
  31. vllm/lib/python3.10/site-packages/dns/rdtypes/ANY/__pycache__/HINFO.cpython-310.pyc +0 -0
  32. vllm/lib/python3.10/site-packages/dns/rdtypes/ANY/__pycache__/HIP.cpython-310.pyc +0 -0
  33. vllm/lib/python3.10/site-packages/dns/rdtypes/ANY/__pycache__/ISDN.cpython-310.pyc +0 -0
  34. vllm/lib/python3.10/site-packages/dns/rdtypes/ANY/__pycache__/L32.cpython-310.pyc +0 -0
  35. vllm/lib/python3.10/site-packages/dns/rdtypes/ANY/__pycache__/L64.cpython-310.pyc +0 -0
  36. vllm/lib/python3.10/site-packages/dns/rdtypes/ANY/__pycache__/LP.cpython-310.pyc +0 -0
  37. vllm/lib/python3.10/site-packages/dns/rdtypes/ANY/__pycache__/MX.cpython-310.pyc +0 -0
  38. vllm/lib/python3.10/site-packages/dns/rdtypes/ANY/__pycache__/NID.cpython-310.pyc +0 -0
  39. vllm/lib/python3.10/site-packages/dns/rdtypes/ANY/__pycache__/NINFO.cpython-310.pyc +0 -0
  40. vllm/lib/python3.10/site-packages/dns/rdtypes/ANY/__pycache__/NS.cpython-310.pyc +0 -0
  41. vllm/lib/python3.10/site-packages/dns/rdtypes/ANY/__pycache__/NSEC.cpython-310.pyc +0 -0
  42. vllm/lib/python3.10/site-packages/dns/rdtypes/ANY/__pycache__/NSEC3.cpython-310.pyc +0 -0
  43. vllm/lib/python3.10/site-packages/dns/rdtypes/ANY/__pycache__/NSEC3PARAM.cpython-310.pyc +0 -0
  44. vllm/lib/python3.10/site-packages/dns/rdtypes/ANY/__pycache__/OPENPGPKEY.cpython-310.pyc +0 -0
  45. vllm/lib/python3.10/site-packages/dns/rdtypes/ANY/__pycache__/OPT.cpython-310.pyc +0 -0
  46. vllm/lib/python3.10/site-packages/dns/rdtypes/ANY/__pycache__/PTR.cpython-310.pyc +0 -0
  47. vllm/lib/python3.10/site-packages/dns/rdtypes/ANY/__pycache__/RESINFO.cpython-310.pyc +0 -0
  48. vllm/lib/python3.10/site-packages/dns/rdtypes/ANY/__pycache__/RP.cpython-310.pyc +0 -0
  49. vllm/lib/python3.10/site-packages/dns/rdtypes/ANY/__pycache__/RRSIG.cpython-310.pyc +0 -0
  50. vllm/lib/python3.10/site-packages/dns/rdtypes/ANY/__pycache__/RT.cpython-310.pyc +0 -0
vllm/lib/python3.10/site-packages/dns/__pycache__/_features.cpython-310.pyc ADDED
Binary file (2.4 kB). View file
 
vllm/lib/python3.10/site-packages/dns/__pycache__/zonetypes.cpython-310.pyc ADDED
Binary file (1.04 kB). View file
 
vllm/lib/python3.10/site-packages/dns/rdtypes/ANY/CSYNC.py ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (C) Dnspython Contributors, see LICENSE for text of ISC license
2
+
3
+ # Copyright (C) 2004-2007, 2009-2011, 2016 Nominum, Inc.
4
+ #
5
+ # Permission to use, copy, modify, and distribute this software and its
6
+ # documentation for any purpose with or without fee is hereby granted,
7
+ # provided that the above copyright notice and this permission notice
8
+ # appear in all copies.
9
+ #
10
+ # THE SOFTWARE IS PROVIDED "AS IS" AND NOMINUM DISCLAIMS ALL WARRANTIES
11
+ # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12
+ # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL NOMINUM BE LIABLE FOR
13
+ # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14
+ # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15
+ # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
16
+ # OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17
+
18
+ import struct
19
+
20
+ import dns.exception
21
+ import dns.immutable
22
+ import dns.name
23
+ import dns.rdata
24
+ import dns.rdatatype
25
+ import dns.rdtypes.util
26
+
27
+
28
+ @dns.immutable.immutable
29
+ class Bitmap(dns.rdtypes.util.Bitmap):
30
+ type_name = "CSYNC"
31
+
32
+
33
+ @dns.immutable.immutable
34
+ class CSYNC(dns.rdata.Rdata):
35
+ """CSYNC record"""
36
+
37
+ __slots__ = ["serial", "flags", "windows"]
38
+
39
+ def __init__(self, rdclass, rdtype, serial, flags, windows):
40
+ super().__init__(rdclass, rdtype)
41
+ self.serial = self._as_uint32(serial)
42
+ self.flags = self._as_uint16(flags)
43
+ if not isinstance(windows, Bitmap):
44
+ windows = Bitmap(windows)
45
+ self.windows = tuple(windows.windows)
46
+
47
+ def to_text(self, origin=None, relativize=True, **kw):
48
+ text = Bitmap(self.windows).to_text()
49
+ return "%d %d%s" % (self.serial, self.flags, text)
50
+
51
+ @classmethod
52
+ def from_text(
53
+ cls, rdclass, rdtype, tok, origin=None, relativize=True, relativize_to=None
54
+ ):
55
+ serial = tok.get_uint32()
56
+ flags = tok.get_uint16()
57
+ bitmap = Bitmap.from_text(tok)
58
+ return cls(rdclass, rdtype, serial, flags, bitmap)
59
+
60
+ def _to_wire(self, file, compress=None, origin=None, canonicalize=False):
61
+ file.write(struct.pack("!IH", self.serial, self.flags))
62
+ Bitmap(self.windows).to_wire(file)
63
+
64
+ @classmethod
65
+ def from_wire_parser(cls, rdclass, rdtype, parser, origin=None):
66
+ (serial, flags) = parser.get_struct("!IH")
67
+ bitmap = Bitmap.from_wire_parser(parser)
68
+ return cls(rdclass, rdtype, serial, flags, bitmap)
vllm/lib/python3.10/site-packages/dns/rdtypes/ANY/EUI64.py ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (C) Dnspython Contributors, see LICENSE for text of ISC license
2
+
3
+ # Copyright (C) 2015 Red Hat, Inc.
4
+ # Author: Petr Spacek <pspacek@redhat.com>
5
+ #
6
+ # Permission to use, copy, modify, and distribute this software and its
7
+ # documentation for any purpose with or without fee is hereby granted,
8
+ # provided that the above copyright notice and this permission notice
9
+ # appear in all copies.
10
+ #
11
+ # THE SOFTWARE IS PROVIDED 'AS IS' AND RED HAT DISCLAIMS ALL WARRANTIES
12
+ # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
13
+ # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL NOMINUM BE LIABLE FOR
14
+ # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
15
+ # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
16
+ # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
17
+ # OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
18
+
19
+ import dns.immutable
20
+ import dns.rdtypes.euibase
21
+
22
+
23
+ @dns.immutable.immutable
24
+ class EUI64(dns.rdtypes.euibase.EUIBase):
25
+ """EUI64 record"""
26
+
27
+ # see: rfc7043.txt
28
+
29
+ byte_len = 8 # 0123456789abcdef (in hex)
30
+ text_len = byte_len * 3 - 1 # 01-23-45-67-89-ab-cd-ef
vllm/lib/python3.10/site-packages/dns/rdtypes/ANY/GPOS.py ADDED
@@ -0,0 +1,126 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (C) Dnspython Contributors, see LICENSE for text of ISC license
2
+
3
+ # Copyright (C) 2003-2007, 2009-2011 Nominum, Inc.
4
+ #
5
+ # Permission to use, copy, modify, and distribute this software and its
6
+ # documentation for any purpose with or without fee is hereby granted,
7
+ # provided that the above copyright notice and this permission notice
8
+ # appear in all copies.
9
+ #
10
+ # THE SOFTWARE IS PROVIDED "AS IS" AND NOMINUM DISCLAIMS ALL WARRANTIES
11
+ # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12
+ # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL NOMINUM BE LIABLE FOR
13
+ # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14
+ # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15
+ # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
16
+ # OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17
+
18
+ import struct
19
+
20
+ import dns.exception
21
+ import dns.immutable
22
+ import dns.rdata
23
+ import dns.tokenizer
24
+
25
+
26
+ def _validate_float_string(what):
27
+ if len(what) == 0:
28
+ raise dns.exception.FormError
29
+ if what[0] == b"-"[0] or what[0] == b"+"[0]:
30
+ what = what[1:]
31
+ if what.isdigit():
32
+ return
33
+ try:
34
+ (left, right) = what.split(b".")
35
+ except ValueError:
36
+ raise dns.exception.FormError
37
+ if left == b"" and right == b"":
38
+ raise dns.exception.FormError
39
+ if not left == b"" and not left.decode().isdigit():
40
+ raise dns.exception.FormError
41
+ if not right == b"" and not right.decode().isdigit():
42
+ raise dns.exception.FormError
43
+
44
+
45
+ @dns.immutable.immutable
46
+ class GPOS(dns.rdata.Rdata):
47
+ """GPOS record"""
48
+
49
+ # see: RFC 1712
50
+
51
+ __slots__ = ["latitude", "longitude", "altitude"]
52
+
53
+ def __init__(self, rdclass, rdtype, latitude, longitude, altitude):
54
+ super().__init__(rdclass, rdtype)
55
+ if isinstance(latitude, float) or isinstance(latitude, int):
56
+ latitude = str(latitude)
57
+ if isinstance(longitude, float) or isinstance(longitude, int):
58
+ longitude = str(longitude)
59
+ if isinstance(altitude, float) or isinstance(altitude, int):
60
+ altitude = str(altitude)
61
+ latitude = self._as_bytes(latitude, True, 255)
62
+ longitude = self._as_bytes(longitude, True, 255)
63
+ altitude = self._as_bytes(altitude, True, 255)
64
+ _validate_float_string(latitude)
65
+ _validate_float_string(longitude)
66
+ _validate_float_string(altitude)
67
+ self.latitude = latitude
68
+ self.longitude = longitude
69
+ self.altitude = altitude
70
+ flat = self.float_latitude
71
+ if flat < -90.0 or flat > 90.0:
72
+ raise dns.exception.FormError("bad latitude")
73
+ flong = self.float_longitude
74
+ if flong < -180.0 or flong > 180.0:
75
+ raise dns.exception.FormError("bad longitude")
76
+
77
+ def to_text(self, origin=None, relativize=True, **kw):
78
+ return (
79
+ f"{self.latitude.decode()} {self.longitude.decode()} "
80
+ f"{self.altitude.decode()}"
81
+ )
82
+
83
+ @classmethod
84
+ def from_text(
85
+ cls, rdclass, rdtype, tok, origin=None, relativize=True, relativize_to=None
86
+ ):
87
+ latitude = tok.get_string()
88
+ longitude = tok.get_string()
89
+ altitude = tok.get_string()
90
+ return cls(rdclass, rdtype, latitude, longitude, altitude)
91
+
92
+ def _to_wire(self, file, compress=None, origin=None, canonicalize=False):
93
+ l = len(self.latitude)
94
+ assert l < 256
95
+ file.write(struct.pack("!B", l))
96
+ file.write(self.latitude)
97
+ l = len(self.longitude)
98
+ assert l < 256
99
+ file.write(struct.pack("!B", l))
100
+ file.write(self.longitude)
101
+ l = len(self.altitude)
102
+ assert l < 256
103
+ file.write(struct.pack("!B", l))
104
+ file.write(self.altitude)
105
+
106
+ @classmethod
107
+ def from_wire_parser(cls, rdclass, rdtype, parser, origin=None):
108
+ latitude = parser.get_counted_bytes()
109
+ longitude = parser.get_counted_bytes()
110
+ altitude = parser.get_counted_bytes()
111
+ return cls(rdclass, rdtype, latitude, longitude, altitude)
112
+
113
+ @property
114
+ def float_latitude(self):
115
+ "latitude as a floating point value"
116
+ return float(self.latitude)
117
+
118
+ @property
119
+ def float_longitude(self):
120
+ "longitude as a floating point value"
121
+ return float(self.longitude)
122
+
123
+ @property
124
+ def float_altitude(self):
125
+ "altitude as a floating point value"
126
+ return float(self.altitude)
vllm/lib/python3.10/site-packages/dns/rdtypes/ANY/ISDN.py ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (C) Dnspython Contributors, see LICENSE for text of ISC license
2
+
3
+ # Copyright (C) 2003-2007, 2009-2011 Nominum, Inc.
4
+ #
5
+ # Permission to use, copy, modify, and distribute this software and its
6
+ # documentation for any purpose with or without fee is hereby granted,
7
+ # provided that the above copyright notice and this permission notice
8
+ # appear in all copies.
9
+ #
10
+ # THE SOFTWARE IS PROVIDED "AS IS" AND NOMINUM DISCLAIMS ALL WARRANTIES
11
+ # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12
+ # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL NOMINUM BE LIABLE FOR
13
+ # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14
+ # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15
+ # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
16
+ # OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17
+
18
+ import struct
19
+
20
+ import dns.exception
21
+ import dns.immutable
22
+ import dns.rdata
23
+ import dns.tokenizer
24
+
25
+
26
+ @dns.immutable.immutable
27
+ class ISDN(dns.rdata.Rdata):
28
+ """ISDN record"""
29
+
30
+ # see: RFC 1183
31
+
32
+ __slots__ = ["address", "subaddress"]
33
+
34
+ def __init__(self, rdclass, rdtype, address, subaddress):
35
+ super().__init__(rdclass, rdtype)
36
+ self.address = self._as_bytes(address, True, 255)
37
+ self.subaddress = self._as_bytes(subaddress, True, 255)
38
+
39
+ def to_text(self, origin=None, relativize=True, **kw):
40
+ if self.subaddress:
41
+ return (
42
+ f'"{dns.rdata._escapify(self.address)}" '
43
+ f'"{dns.rdata._escapify(self.subaddress)}"'
44
+ )
45
+ else:
46
+ return f'"{dns.rdata._escapify(self.address)}"'
47
+
48
+ @classmethod
49
+ def from_text(
50
+ cls, rdclass, rdtype, tok, origin=None, relativize=True, relativize_to=None
51
+ ):
52
+ address = tok.get_string()
53
+ tokens = tok.get_remaining(max_tokens=1)
54
+ if len(tokens) >= 1:
55
+ subaddress = tokens[0].unescape().value
56
+ else:
57
+ subaddress = ""
58
+ return cls(rdclass, rdtype, address, subaddress)
59
+
60
+ def _to_wire(self, file, compress=None, origin=None, canonicalize=False):
61
+ l = len(self.address)
62
+ assert l < 256
63
+ file.write(struct.pack("!B", l))
64
+ file.write(self.address)
65
+ l = len(self.subaddress)
66
+ if l > 0:
67
+ assert l < 256
68
+ file.write(struct.pack("!B", l))
69
+ file.write(self.subaddress)
70
+
71
+ @classmethod
72
+ def from_wire_parser(cls, rdclass, rdtype, parser, origin=None):
73
+ address = parser.get_counted_bytes()
74
+ if parser.remaining() > 0:
75
+ subaddress = parser.get_counted_bytes()
76
+ else:
77
+ subaddress = b""
78
+ return cls(rdclass, rdtype, address, subaddress)
vllm/lib/python3.10/site-packages/dns/rdtypes/ANY/L64.py ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (C) Dnspython Contributors, see LICENSE for text of ISC license
2
+
3
+ import struct
4
+
5
+ import dns.immutable
6
+ import dns.rdtypes.util
7
+
8
+
9
+ @dns.immutable.immutable
10
+ class L64(dns.rdata.Rdata):
11
+ """L64 record"""
12
+
13
+ # see: rfc6742.txt
14
+
15
+ __slots__ = ["preference", "locator64"]
16
+
17
+ def __init__(self, rdclass, rdtype, preference, locator64):
18
+ super().__init__(rdclass, rdtype)
19
+ self.preference = self._as_uint16(preference)
20
+ if isinstance(locator64, bytes):
21
+ if len(locator64) != 8:
22
+ raise ValueError("invalid locator64")
23
+ self.locator64 = dns.rdata._hexify(locator64, 4, b":")
24
+ else:
25
+ dns.rdtypes.util.parse_formatted_hex(locator64, 4, 4, ":")
26
+ self.locator64 = locator64
27
+
28
+ def to_text(self, origin=None, relativize=True, **kw):
29
+ return f"{self.preference} {self.locator64}"
30
+
31
+ @classmethod
32
+ def from_text(
33
+ cls, rdclass, rdtype, tok, origin=None, relativize=True, relativize_to=None
34
+ ):
35
+ preference = tok.get_uint16()
36
+ locator64 = tok.get_identifier()
37
+ return cls(rdclass, rdtype, preference, locator64)
38
+
39
+ def _to_wire(self, file, compress=None, origin=None, canonicalize=False):
40
+ file.write(struct.pack("!H", self.preference))
41
+ file.write(dns.rdtypes.util.parse_formatted_hex(self.locator64, 4, 4, ":"))
42
+
43
+ @classmethod
44
+ def from_wire_parser(cls, rdclass, rdtype, parser, origin=None):
45
+ preference = parser.get_uint16()
46
+ locator64 = parser.get_remaining()
47
+ return cls(rdclass, rdtype, preference, locator64)
vllm/lib/python3.10/site-packages/dns/rdtypes/ANY/NINFO.py ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (C) Dnspython Contributors, see LICENSE for text of ISC license
2
+
3
+ # Copyright (C) 2006, 2007, 2009-2011 Nominum, Inc.
4
+ #
5
+ # Permission to use, copy, modify, and distribute this software and its
6
+ # documentation for any purpose with or without fee is hereby granted,
7
+ # provided that the above copyright notice and this permission notice
8
+ # appear in all copies.
9
+ #
10
+ # THE SOFTWARE IS PROVIDED "AS IS" AND NOMINUM DISCLAIMS ALL WARRANTIES
11
+ # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12
+ # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL NOMINUM BE LIABLE FOR
13
+ # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14
+ # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15
+ # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
16
+ # OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17
+
18
+ import dns.immutable
19
+ import dns.rdtypes.txtbase
20
+
21
+
22
+ @dns.immutable.immutable
23
+ class NINFO(dns.rdtypes.txtbase.TXTBase):
24
+ """NINFO record"""
25
+
26
+ # see: draft-reid-dnsext-zs-01
vllm/lib/python3.10/site-packages/dns/rdtypes/ANY/NSEC3PARAM.py ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (C) Dnspython Contributors, see LICENSE for text of ISC license
2
+
3
+ # Copyright (C) 2004-2007, 2009-2011 Nominum, Inc.
4
+ #
5
+ # Permission to use, copy, modify, and distribute this software and its
6
+ # documentation for any purpose with or without fee is hereby granted,
7
+ # provided that the above copyright notice and this permission notice
8
+ # appear in all copies.
9
+ #
10
+ # THE SOFTWARE IS PROVIDED "AS IS" AND NOMINUM DISCLAIMS ALL WARRANTIES
11
+ # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12
+ # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL NOMINUM BE LIABLE FOR
13
+ # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14
+ # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15
+ # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
16
+ # OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17
+
18
+ import binascii
19
+ import struct
20
+
21
+ import dns.exception
22
+ import dns.immutable
23
+ import dns.rdata
24
+
25
+
26
+ @dns.immutable.immutable
27
+ class NSEC3PARAM(dns.rdata.Rdata):
28
+ """NSEC3PARAM record"""
29
+
30
+ __slots__ = ["algorithm", "flags", "iterations", "salt"]
31
+
32
+ def __init__(self, rdclass, rdtype, algorithm, flags, iterations, salt):
33
+ super().__init__(rdclass, rdtype)
34
+ self.algorithm = self._as_uint8(algorithm)
35
+ self.flags = self._as_uint8(flags)
36
+ self.iterations = self._as_uint16(iterations)
37
+ self.salt = self._as_bytes(salt, True, 255)
38
+
39
+ def to_text(self, origin=None, relativize=True, **kw):
40
+ if self.salt == b"":
41
+ salt = "-"
42
+ else:
43
+ salt = binascii.hexlify(self.salt).decode()
44
+ return "%u %u %u %s" % (self.algorithm, self.flags, self.iterations, salt)
45
+
46
+ @classmethod
47
+ def from_text(
48
+ cls, rdclass, rdtype, tok, origin=None, relativize=True, relativize_to=None
49
+ ):
50
+ algorithm = tok.get_uint8()
51
+ flags = tok.get_uint8()
52
+ iterations = tok.get_uint16()
53
+ salt = tok.get_string()
54
+ if salt == "-":
55
+ salt = ""
56
+ else:
57
+ salt = binascii.unhexlify(salt.encode())
58
+ return cls(rdclass, rdtype, algorithm, flags, iterations, salt)
59
+
60
+ def _to_wire(self, file, compress=None, origin=None, canonicalize=False):
61
+ l = len(self.salt)
62
+ file.write(struct.pack("!BBHB", self.algorithm, self.flags, self.iterations, l))
63
+ file.write(self.salt)
64
+
65
+ @classmethod
66
+ def from_wire_parser(cls, rdclass, rdtype, parser, origin=None):
67
+ (algorithm, flags, iterations) = parser.get_struct("!BBH")
68
+ salt = parser.get_counted_bytes()
69
+ return cls(rdclass, rdtype, algorithm, flags, iterations, salt)
vllm/lib/python3.10/site-packages/dns/rdtypes/ANY/PTR.py ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (C) Dnspython Contributors, see LICENSE for text of ISC license
2
+
3
+ # Copyright (C) 2003-2007, 2009-2011 Nominum, Inc.
4
+ #
5
+ # Permission to use, copy, modify, and distribute this software and its
6
+ # documentation for any purpose with or without fee is hereby granted,
7
+ # provided that the above copyright notice and this permission notice
8
+ # appear in all copies.
9
+ #
10
+ # THE SOFTWARE IS PROVIDED "AS IS" AND NOMINUM DISCLAIMS ALL WARRANTIES
11
+ # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12
+ # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL NOMINUM BE LIABLE FOR
13
+ # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14
+ # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15
+ # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
16
+ # OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17
+
18
+ import dns.immutable
19
+ import dns.rdtypes.nsbase
20
+
21
+
22
+ @dns.immutable.immutable
23
+ class PTR(dns.rdtypes.nsbase.NSBase):
24
+ """PTR record"""
vllm/lib/python3.10/site-packages/dns/rdtypes/ANY/SOA.py ADDED
@@ -0,0 +1,86 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (C) Dnspython Contributors, see LICENSE for text of ISC license
2
+
3
+ # Copyright (C) 2003-2007, 2009-2011 Nominum, Inc.
4
+ #
5
+ # Permission to use, copy, modify, and distribute this software and its
6
+ # documentation for any purpose with or without fee is hereby granted,
7
+ # provided that the above copyright notice and this permission notice
8
+ # appear in all copies.
9
+ #
10
+ # THE SOFTWARE IS PROVIDED "AS IS" AND NOMINUM DISCLAIMS ALL WARRANTIES
11
+ # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12
+ # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL NOMINUM BE LIABLE FOR
13
+ # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14
+ # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15
+ # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
16
+ # OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17
+
18
+ import struct
19
+
20
+ import dns.exception
21
+ import dns.immutable
22
+ import dns.name
23
+ import dns.rdata
24
+
25
+
26
+ @dns.immutable.immutable
27
+ class SOA(dns.rdata.Rdata):
28
+ """SOA record"""
29
+
30
+ # see: RFC 1035
31
+
32
+ __slots__ = ["mname", "rname", "serial", "refresh", "retry", "expire", "minimum"]
33
+
34
+ def __init__(
35
+ self, rdclass, rdtype, mname, rname, serial, refresh, retry, expire, minimum
36
+ ):
37
+ super().__init__(rdclass, rdtype)
38
+ self.mname = self._as_name(mname)
39
+ self.rname = self._as_name(rname)
40
+ self.serial = self._as_uint32(serial)
41
+ self.refresh = self._as_ttl(refresh)
42
+ self.retry = self._as_ttl(retry)
43
+ self.expire = self._as_ttl(expire)
44
+ self.minimum = self._as_ttl(minimum)
45
+
46
+ def to_text(self, origin=None, relativize=True, **kw):
47
+ mname = self.mname.choose_relativity(origin, relativize)
48
+ rname = self.rname.choose_relativity(origin, relativize)
49
+ return "%s %s %d %d %d %d %d" % (
50
+ mname,
51
+ rname,
52
+ self.serial,
53
+ self.refresh,
54
+ self.retry,
55
+ self.expire,
56
+ self.minimum,
57
+ )
58
+
59
+ @classmethod
60
+ def from_text(
61
+ cls, rdclass, rdtype, tok, origin=None, relativize=True, relativize_to=None
62
+ ):
63
+ mname = tok.get_name(origin, relativize, relativize_to)
64
+ rname = tok.get_name(origin, relativize, relativize_to)
65
+ serial = tok.get_uint32()
66
+ refresh = tok.get_ttl()
67
+ retry = tok.get_ttl()
68
+ expire = tok.get_ttl()
69
+ minimum = tok.get_ttl()
70
+ return cls(
71
+ rdclass, rdtype, mname, rname, serial, refresh, retry, expire, minimum
72
+ )
73
+
74
+ def _to_wire(self, file, compress=None, origin=None, canonicalize=False):
75
+ self.mname.to_wire(file, compress, origin, canonicalize)
76
+ self.rname.to_wire(file, compress, origin, canonicalize)
77
+ five_ints = struct.pack(
78
+ "!IIIII", self.serial, self.refresh, self.retry, self.expire, self.minimum
79
+ )
80
+ file.write(five_ints)
81
+
82
+ @classmethod
83
+ def from_wire_parser(cls, rdclass, rdtype, parser, origin=None):
84
+ mname = parser.get_name(origin)
85
+ rname = parser.get_name(origin)
86
+ return cls(rdclass, rdtype, mname, rname, *parser.get_struct("!IIIII"))
vllm/lib/python3.10/site-packages/dns/rdtypes/ANY/SPF.py ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (C) Dnspython Contributors, see LICENSE for text of ISC license
2
+
3
+ # Copyright (C) 2006, 2007, 2009-2011 Nominum, Inc.
4
+ #
5
+ # Permission to use, copy, modify, and distribute this software and its
6
+ # documentation for any purpose with or without fee is hereby granted,
7
+ # provided that the above copyright notice and this permission notice
8
+ # appear in all copies.
9
+ #
10
+ # THE SOFTWARE IS PROVIDED "AS IS" AND NOMINUM DISCLAIMS ALL WARRANTIES
11
+ # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12
+ # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL NOMINUM BE LIABLE FOR
13
+ # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14
+ # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15
+ # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
16
+ # OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17
+
18
+ import dns.immutable
19
+ import dns.rdtypes.txtbase
20
+
21
+
22
+ @dns.immutable.immutable
23
+ class SPF(dns.rdtypes.txtbase.TXTBase):
24
+ """SPF record"""
25
+
26
+ # see: RFC 4408
vllm/lib/python3.10/site-packages/dns/rdtypes/ANY/TKEY.py ADDED
@@ -0,0 +1,142 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (C) Dnspython Contributors, see LICENSE for text of ISC license
2
+
3
+ # Copyright (C) 2004-2007, 2009-2011 Nominum, Inc.
4
+ #
5
+ # Permission to use, copy, modify, and distribute this software and its
6
+ # documentation for any purpose with or without fee is hereby granted,
7
+ # provided that the above copyright notice and this permission notice
8
+ # appear in all copies.
9
+ #
10
+ # THE SOFTWARE IS PROVIDED "AS IS" AND NOMINUM DISCLAIMS ALL WARRANTIES
11
+ # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12
+ # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL NOMINUM BE LIABLE FOR
13
+ # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14
+ # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15
+ # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
16
+ # OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17
+
18
+ import base64
19
+ import struct
20
+
21
+ import dns.exception
22
+ import dns.immutable
23
+ import dns.rdata
24
+
25
+
26
+ @dns.immutable.immutable
27
+ class TKEY(dns.rdata.Rdata):
28
+ """TKEY Record"""
29
+
30
+ __slots__ = [
31
+ "algorithm",
32
+ "inception",
33
+ "expiration",
34
+ "mode",
35
+ "error",
36
+ "key",
37
+ "other",
38
+ ]
39
+
40
+ def __init__(
41
+ self,
42
+ rdclass,
43
+ rdtype,
44
+ algorithm,
45
+ inception,
46
+ expiration,
47
+ mode,
48
+ error,
49
+ key,
50
+ other=b"",
51
+ ):
52
+ super().__init__(rdclass, rdtype)
53
+ self.algorithm = self._as_name(algorithm)
54
+ self.inception = self._as_uint32(inception)
55
+ self.expiration = self._as_uint32(expiration)
56
+ self.mode = self._as_uint16(mode)
57
+ self.error = self._as_uint16(error)
58
+ self.key = self._as_bytes(key)
59
+ self.other = self._as_bytes(other)
60
+
61
+ def to_text(self, origin=None, relativize=True, **kw):
62
+ _algorithm = self.algorithm.choose_relativity(origin, relativize)
63
+ text = "%s %u %u %u %u %s" % (
64
+ str(_algorithm),
65
+ self.inception,
66
+ self.expiration,
67
+ self.mode,
68
+ self.error,
69
+ dns.rdata._base64ify(self.key, 0),
70
+ )
71
+ if len(self.other) > 0:
72
+ text += f" {dns.rdata._base64ify(self.other, 0)}"
73
+
74
+ return text
75
+
76
+ @classmethod
77
+ def from_text(
78
+ cls, rdclass, rdtype, tok, origin=None, relativize=True, relativize_to=None
79
+ ):
80
+ algorithm = tok.get_name(relativize=False)
81
+ inception = tok.get_uint32()
82
+ expiration = tok.get_uint32()
83
+ mode = tok.get_uint16()
84
+ error = tok.get_uint16()
85
+ key_b64 = tok.get_string().encode()
86
+ key = base64.b64decode(key_b64)
87
+ other_b64 = tok.concatenate_remaining_identifiers(True).encode()
88
+ other = base64.b64decode(other_b64)
89
+
90
+ return cls(
91
+ rdclass, rdtype, algorithm, inception, expiration, mode, error, key, other
92
+ )
93
+
94
+ def _to_wire(self, file, compress=None, origin=None, canonicalize=False):
95
+ self.algorithm.to_wire(file, compress, origin)
96
+ file.write(
97
+ struct.pack("!IIHH", self.inception, self.expiration, self.mode, self.error)
98
+ )
99
+ file.write(struct.pack("!H", len(self.key)))
100
+ file.write(self.key)
101
+ file.write(struct.pack("!H", len(self.other)))
102
+ if len(self.other) > 0:
103
+ file.write(self.other)
104
+
105
+ @classmethod
106
+ def from_wire_parser(cls, rdclass, rdtype, parser, origin=None):
107
+ algorithm = parser.get_name(origin)
108
+ inception, expiration, mode, error = parser.get_struct("!IIHH")
109
+ key = parser.get_counted_bytes(2)
110
+ other = parser.get_counted_bytes(2)
111
+
112
+ return cls(
113
+ rdclass, rdtype, algorithm, inception, expiration, mode, error, key, other
114
+ )
115
+
116
+ # Constants for the mode field - from RFC 2930:
117
+ # 2.5 The Mode Field
118
+ #
119
+ # The mode field specifies the general scheme for key agreement or
120
+ # the purpose of the TKEY DNS message. Servers and resolvers
121
+ # supporting this specification MUST implement the Diffie-Hellman key
122
+ # agreement mode and the key deletion mode for queries. All other
123
+ # modes are OPTIONAL. A server supporting TKEY that receives a TKEY
124
+ # request with a mode it does not support returns the BADMODE error.
125
+ # The following values of the Mode octet are defined, available, or
126
+ # reserved:
127
+ #
128
+ # Value Description
129
+ # ----- -----------
130
+ # 0 - reserved, see section 7
131
+ # 1 server assignment
132
+ # 2 Diffie-Hellman exchange
133
+ # 3 GSS-API negotiation
134
+ # 4 resolver assignment
135
+ # 5 key deletion
136
+ # 6-65534 - available, see section 7
137
+ # 65535 - reserved, see section 7
138
+ SERVER_ASSIGNMENT = 1
139
+ DIFFIE_HELLMAN_EXCHANGE = 2
140
+ GSSAPI_NEGOTIATION = 3
141
+ RESOLVER_ASSIGNMENT = 4
142
+ KEY_DELETION = 5
vllm/lib/python3.10/site-packages/dns/rdtypes/ANY/URI.py ADDED
@@ -0,0 +1,79 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (C) Dnspython Contributors, see LICENSE for text of ISC license
2
+
3
+ # Copyright (C) 2003-2007, 2009-2011 Nominum, Inc.
4
+ # Copyright (C) 2015 Red Hat, Inc.
5
+ #
6
+ # Permission to use, copy, modify, and distribute this software and its
7
+ # documentation for any purpose with or without fee is hereby granted,
8
+ # provided that the above copyright notice and this permission notice
9
+ # appear in all copies.
10
+ #
11
+ # THE SOFTWARE IS PROVIDED "AS IS" AND NOMINUM DISCLAIMS ALL WARRANTIES
12
+ # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
13
+ # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL NOMINUM BE LIABLE FOR
14
+ # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
15
+ # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
16
+ # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
17
+ # OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
18
+
19
+ import struct
20
+
21
+ import dns.exception
22
+ import dns.immutable
23
+ import dns.name
24
+ import dns.rdata
25
+ import dns.rdtypes.util
26
+
27
+
28
+ @dns.immutable.immutable
29
+ class URI(dns.rdata.Rdata):
30
+ """URI record"""
31
+
32
+ # see RFC 7553
33
+
34
+ __slots__ = ["priority", "weight", "target"]
35
+
36
+ def __init__(self, rdclass, rdtype, priority, weight, target):
37
+ super().__init__(rdclass, rdtype)
38
+ self.priority = self._as_uint16(priority)
39
+ self.weight = self._as_uint16(weight)
40
+ self.target = self._as_bytes(target, True)
41
+ if len(self.target) == 0:
42
+ raise dns.exception.SyntaxError("URI target cannot be empty")
43
+
44
+ def to_text(self, origin=None, relativize=True, **kw):
45
+ return '%d %d "%s"' % (self.priority, self.weight, self.target.decode())
46
+
47
+ @classmethod
48
+ def from_text(
49
+ cls, rdclass, rdtype, tok, origin=None, relativize=True, relativize_to=None
50
+ ):
51
+ priority = tok.get_uint16()
52
+ weight = tok.get_uint16()
53
+ target = tok.get().unescape()
54
+ if not (target.is_quoted_string() or target.is_identifier()):
55
+ raise dns.exception.SyntaxError("URI target must be a string")
56
+ return cls(rdclass, rdtype, priority, weight, target.value)
57
+
58
+ def _to_wire(self, file, compress=None, origin=None, canonicalize=False):
59
+ two_ints = struct.pack("!HH", self.priority, self.weight)
60
+ file.write(two_ints)
61
+ file.write(self.target)
62
+
63
+ @classmethod
64
+ def from_wire_parser(cls, rdclass, rdtype, parser, origin=None):
65
+ (priority, weight) = parser.get_struct("!HH")
66
+ target = parser.get_remaining()
67
+ if len(target) == 0:
68
+ raise dns.exception.FormError("URI target may not be empty")
69
+ return cls(rdclass, rdtype, priority, weight, target)
70
+
71
+ def _processing_priority(self):
72
+ return self.priority
73
+
74
+ def _processing_weight(self):
75
+ return self.weight
76
+
77
+ @classmethod
78
+ def _processing_order(cls, iterable):
79
+ return dns.rdtypes.util.weighted_processing_order(iterable)
vllm/lib/python3.10/site-packages/dns/rdtypes/ANY/__pycache__/AFSDB.cpython-310.pyc ADDED
Binary file (775 Bytes). View file
 
vllm/lib/python3.10/site-packages/dns/rdtypes/ANY/__pycache__/AMTRELAY.cpython-310.pyc ADDED
Binary file (2.53 kB). View file
 
vllm/lib/python3.10/site-packages/dns/rdtypes/ANY/__pycache__/AVC.cpython-310.pyc ADDED
Binary file (454 Bytes). View file
 
vllm/lib/python3.10/site-packages/dns/rdtypes/ANY/__pycache__/CAA.cpython-310.pyc ADDED
Binary file (2 kB). View file
 
vllm/lib/python3.10/site-packages/dns/rdtypes/ANY/__pycache__/CDNSKEY.cpython-310.pyc ADDED
Binary file (533 Bytes). View file
 
vllm/lib/python3.10/site-packages/dns/rdtypes/ANY/__pycache__/CDS.cpython-310.pyc ADDED
Binary file (539 Bytes). View file
 
vllm/lib/python3.10/site-packages/dns/rdtypes/ANY/__pycache__/CERT.cpython-310.pyc ADDED
Binary file (2.78 kB). View file
 
vllm/lib/python3.10/site-packages/dns/rdtypes/ANY/__pycache__/CNAME.cpython-310.pyc ADDED
Binary file (662 Bytes). View file
 
vllm/lib/python3.10/site-packages/dns/rdtypes/ANY/__pycache__/CSYNC.cpython-310.pyc ADDED
Binary file (2.1 kB). View file
 
vllm/lib/python3.10/site-packages/dns/rdtypes/ANY/__pycache__/DLV.cpython-310.pyc ADDED
Binary file (451 Bytes). View file
 
vllm/lib/python3.10/site-packages/dns/rdtypes/ANY/__pycache__/DNAME.cpython-310.pyc ADDED
Binary file (660 Bytes). View file
 
vllm/lib/python3.10/site-packages/dns/rdtypes/ANY/__pycache__/DNSKEY.cpython-310.pyc ADDED
Binary file (530 Bytes). View file
 
vllm/lib/python3.10/site-packages/dns/rdtypes/ANY/__pycache__/DS.cpython-310.pyc ADDED
Binary file (448 Bytes). View file
 
vllm/lib/python3.10/site-packages/dns/rdtypes/ANY/__pycache__/EUI48.cpython-310.pyc ADDED
Binary file (515 Bytes). View file
 
vllm/lib/python3.10/site-packages/dns/rdtypes/ANY/__pycache__/EUI64.cpython-310.pyc ADDED
Binary file (515 Bytes). View file
 
vllm/lib/python3.10/site-packages/dns/rdtypes/ANY/__pycache__/GPOS.cpython-310.pyc ADDED
Binary file (3.27 kB). View file
 
vllm/lib/python3.10/site-packages/dns/rdtypes/ANY/__pycache__/HINFO.cpython-310.pyc ADDED
Binary file (1.82 kB). View file
 
vllm/lib/python3.10/site-packages/dns/rdtypes/ANY/__pycache__/HIP.cpython-310.pyc ADDED
Binary file (2.67 kB). View file
 
vllm/lib/python3.10/site-packages/dns/rdtypes/ANY/__pycache__/ISDN.cpython-310.pyc ADDED
Binary file (2.01 kB). View file
 
vllm/lib/python3.10/site-packages/dns/rdtypes/ANY/__pycache__/L32.cpython-310.pyc ADDED
Binary file (1.65 kB). View file
 
vllm/lib/python3.10/site-packages/dns/rdtypes/ANY/__pycache__/L64.cpython-310.pyc ADDED
Binary file (1.86 kB). View file
 
vllm/lib/python3.10/site-packages/dns/rdtypes/ANY/__pycache__/LP.cpython-310.pyc ADDED
Binary file (1.64 kB). View file
 
vllm/lib/python3.10/site-packages/dns/rdtypes/ANY/__pycache__/MX.cpython-310.pyc ADDED
Binary file (448 Bytes). View file
 
vllm/lib/python3.10/site-packages/dns/rdtypes/ANY/__pycache__/NID.cpython-310.pyc ADDED
Binary file (1.85 kB). View file
 
vllm/lib/python3.10/site-packages/dns/rdtypes/ANY/__pycache__/NINFO.cpython-310.pyc ADDED
Binary file (460 Bytes). View file
 
vllm/lib/python3.10/site-packages/dns/rdtypes/ANY/__pycache__/NS.cpython-310.pyc ADDED
Binary file (448 Bytes). View file
 
vllm/lib/python3.10/site-packages/dns/rdtypes/ANY/__pycache__/NSEC.cpython-310.pyc ADDED
Binary file (1.98 kB). View file
 
vllm/lib/python3.10/site-packages/dns/rdtypes/ANY/__pycache__/NSEC3.cpython-310.pyc ADDED
Binary file (3.45 kB). View file
 
vllm/lib/python3.10/site-packages/dns/rdtypes/ANY/__pycache__/NSEC3PARAM.cpython-310.pyc ADDED
Binary file (2.08 kB). View file
 
vllm/lib/python3.10/site-packages/dns/rdtypes/ANY/__pycache__/OPENPGPKEY.cpython-310.pyc ADDED
Binary file (1.65 kB). View file
 
vllm/lib/python3.10/site-packages/dns/rdtypes/ANY/__pycache__/OPT.cpython-310.pyc ADDED
Binary file (2.38 kB). View file
 
vllm/lib/python3.10/site-packages/dns/rdtypes/ANY/__pycache__/PTR.cpython-310.pyc ADDED
Binary file (451 Bytes). View file
 
vllm/lib/python3.10/site-packages/dns/rdtypes/ANY/__pycache__/RESINFO.cpython-310.pyc ADDED
Binary file (466 Bytes). View file
 
vllm/lib/python3.10/site-packages/dns/rdtypes/ANY/__pycache__/RP.cpython-310.pyc ADDED
Binary file (1.65 kB). View file
 
vllm/lib/python3.10/site-packages/dns/rdtypes/ANY/__pycache__/RRSIG.cpython-310.pyc ADDED
Binary file (3.71 kB). View file
 
vllm/lib/python3.10/site-packages/dns/rdtypes/ANY/__pycache__/RT.cpython-310.pyc ADDED
Binary file (466 Bytes). View file