Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite6a4f10

Browse files
committed
drop bad interests
1 parent8244525 commite6a4f10

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

‎ndn_python_repo/utils/passive_svs.py‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,13 @@ def sync_handler(self, name: FormalName, _param: InterestParam, _app_param: Bina
8888
iflen(name)!=len(self.base_prefix)+2:
8989
logging.error(f'Received invalid Sync Interest:{Name.to_str(name)}')
9090
return
91-
logging.info(f'Received Sync Interest:{Name.to_str(name)}')
91+
_,_,_,sig_ptrs=parse_interest(raw_packet)
92+
sig_info=sig_ptrs.signature_info
93+
ifsig_infoandsig_info.key_locatorandsig_info.key_locator.name:
94+
logging.info(f'Received Sync Interest:{Name.to_str(sig_info.key_locator.name)}')
95+
else:
96+
logging.info(f'Drop unsigned or improperly signed Sync Snterests')
97+
return
9298
try:
9399
remote_sv_pkt=StateVecWrapper.parse(name[-2]).val
94100
except (DecodeError,IndexError)ase:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp