It is rather rich that you claim Pakistan's foreign policy is based on 'wrong perceptions', when your own comments continually imply that Afghanistan and Afghans refuse to accept Pakistan's territorial integrity and harbor irredentist ambitions.
Afghanistan's foreign policy has since Pakistan's independence been based on hostility towards Pakistan, a refusal to accept her territorial integrity (and initially accept the nation itself) and support for various insurgent movements that tried to spread the 'Pashtunistan' cause.
Even now Afghanistan refuses to accept Pakistan's territorial integrity:
Enayatullah Nabiel, director-general in the Economic Relations department of the Afghan ministry of foreign affairs, in Dec 2009:
Karzai in 2006:
http://www.afghannews.net/index.php?action=show&type=news&id=201
There are only two possible implications behind the statements and views of Afghan officials, that the Durand Line is irrelevant in the sense that Afghanistan and Pakistan should move towards a confederation, or that the Durand Line is irrelevant in the sense that Afghanistan claims Pakistan's territory.
Which is it for you?