diff --git a/sctp.py b/sctp.py index 6c94eb8..87bcd2b 100644 --- a/sctp.py +++ b/sctp.py @@ -1112,7 +1112,7 @@ def getladdrs(self, assoc_id = 0): # -> tuple of sockaddrs as strings return _sctp.getladdrs(self._sk.fileno(), assoc_id) - def sctp_send(self, msg, to=("",0), ppid=0, flags=0, stream=None, timetolive=None, context=0, + def sctp_send(self, msg, to=("",0), ppid=None, flags=0, stream=None, timetolive=None, context=0, record_file_prefix="RECORD_sctp_traffic", datalogging = False): """ Sends a SCTP message. While send()/sendto() can also be used, this method also @@ -1157,6 +1157,9 @@ def sctp_send(self, msg, to=("",0), ppid=0, flags=0, stream=None, timetolive=Non The application must configure this buffer accordingly. """ + if ppid is None: + ppid = self.adaptation + if timetolive is None: timetolive = self._ttl