Файл исправления в Linux

У меня есть файл исправления в следующей строке:

Only in /tmp/ns-allinone-2.26/ns-2.26/common: ip.o
Only in /tmp/ns-allinone-2.26/ns-2.26/common: ivs.o
Only in /tmp/ns-allinone-2.26/ns-2.26/common: message.o
Only in /tmp/ns-allinone-2.26/ns-2.26/common: misc.o
diff -r ns-2.26/common/mobilenode.cc /tmp/ns-allinone-2.26/ns-2.26/common/mobilenode.cc
64a65,68
> #ifdef        GgX
> #include "wireless-phy.h"
> #include "mac-802_11.h"
> #endif        GgX
128a133
> 
147a153,157
> 
> #ifdef  GgX
>       Mac802_11* macptr;
> #endif  GgX
> 
266a277,294
> 
> #ifdef GgX //GgX - To have an access to change rate!
>               } else if (strcmp(argv[1], "change_rate") == 0) {
>                       macptr = (Mac802_11*) ifhead_.lh_first->uptarget();
>                       if (macptr) {
>                               // Keep attention GgX supposes only 1
>                               // interface present!
>                               macptr->setRate(atoi(argv[2])); 
>                               fprintf(stderr, "Rate changed to: %d\n\n",\
>                                               atoi(argv[2]));
>                               return TCL_OK;
>                       } else {
>                               fprintf(stderr, "Error.. Mac not found..\n");
>                               return(TCL_ERROR);
>                       };
>                       return TCL_OK;
> #endif // GgX
> 

Как исправить этот файл к ns2.26? Я попробовал patch -p0 < <file_patch> но ошибка:

patch: **** Only garbage was found in the patch input.

Пожалуйста, помогите мне.

0
задан 19 December 2017 в 07:22

0 ответов

Другие вопросы по тегам:

Похожие вопросы: