(self, ancdata)
| 4434 | traffic_class = -1 |
| 4435 | |
| 4436 | def ancillaryMapping(self, ancdata): |
| 4437 | # Given ancillary data list ancdata, return a mapping from |
| 4438 | # pairs (cmsg_level, cmsg_type) to corresponding cmsg_data. |
| 4439 | # Check that no (level, type) pair appears more than once. |
| 4440 | d = {} |
| 4441 | for cmsg_level, cmsg_type, cmsg_data in ancdata: |
| 4442 | self.assertNotIn((cmsg_level, cmsg_type), d) |
| 4443 | d[(cmsg_level, cmsg_type)] = cmsg_data |
| 4444 | return d |
| 4445 | |
| 4446 | def checkHopLimit(self, ancbufsize, maxhop=255, ignoreflags=0): |
| 4447 | # Receive hop limit into ancbufsize bytes of ancillary data |
no test coverage detected