(self)
| 1325 | raise Exception("Could not push to table: %s" % errstr) |
| 1326 | |
| 1327 | def pop(self): |
| 1328 | leaf = self.Leaf() |
| 1329 | res = lib.bpf_lookup_and_delete(self.map_fd, None, ct.byref(leaf)) |
| 1330 | if res < 0: |
| 1331 | raise KeyError("Could not pop from table") |
| 1332 | return leaf |
| 1333 | |
| 1334 | def peek(self): |
| 1335 | leaf = self.Leaf() |
no outgoing calls