Return the multicast mac address associated with provided IPv4 address. Passed address must be in network format.
(a)
| 899 | |
| 900 | |
| 901 | def in4_getnsmac(a): |
| 902 | # type: (bytes) -> str |
| 903 | """ |
| 904 | Return the multicast mac address associated with provided |
| 905 | IPv4 address. Passed address must be in network format. |
| 906 | """ |
| 907 | |
| 908 | return "01:00:5e:%.2x:%.2x:%.2x" % (a[1] & 0x7f, a[2], a[3]) |
| 909 | |
| 910 | |
| 911 | def decode_locale_str(x): |
no outgoing calls
no test coverage detected
searching dependent graphs…