20180129_jeffrey - silenceuncrio/diary GitHub Wiki

0915

review

1115

่ฉฆ่‘—ไพ†ๆŠŠ quagga package ๅŠ ๅ…ฅ m360

ๆ‰พๅˆฐไธ€ๅ€‹ OpenWrt package feed containing community maintained routing packages

GitHub - https://github.com/openwrt-routing/packages

่ค‡่ฃฝๅ…ถ quagga ่ณ‡ๆ–™ๅคพ่‡ณ M360P ็š„ package/net/quagga

้ †ไพฟไฟฎๆ”น proscend open source dependency

diff --git a/package/proscend/Makefile b/package/proscend/Makefile
index dca8ec3..e20f479 100644
--- a/package/proscend/Makefile
+++ b/package/proscend/Makefile
@@ -25,7 +25,8 @@ define Package/proscend
          +mosquitto-nossl \
          +libpam \
          +postfix \
-         +xl2tpd
+         +xl2tpd \
+         +quagga
   TITLE:=The proscend ICOS library and utilities
 endef

ๅ›žๅˆฐ M360P ่ทŸ็›ฎ้Œ„ make menuconfig

Network -> Routing and Redirection -> quagga

็„ถๅพŒๆŠŠ quagga-bgpd ้ธ่ตทไพ† ๅ…ถ้ค˜็š„ไฟๆŒ้ ่จญ

 .config - OpenWrt Configuration                                                                         
 โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ 
  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ quagga................................. The Quagga Software Routing Suite โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”   
  โ”‚  Arrow keys navigate the menu.  <Enter> selects submenus --->.  Highlighted letters are hotkeys. โ”‚   
  โ”‚  Pressing <Y> includes, <N> excludes, <M> modularizes features.  Press <Esc><Esc> to exit, <?>   โ”‚   
  โ”‚  for Help, </> for Search.  Legend: [*] built-in  [ ] excluded  <M> module  < > module capable   โ”‚   
  โ”‚                                                                                                  โ”‚   
  โ”‚ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚   
  โ”‚ โ”‚            --- quagga................................. The Quagga Software Routing Suite     โ”‚ โ”‚   
  โ”‚ โ”‚            <*>   quagga-bgpd......................... BGPv4, BGPv4+, BGPv4- routing engine   โ”‚ โ”‚   
  โ”‚ โ”‚            < >   quagga-isisd........................................ IS-IS routing engine   โ”‚ โ”‚   
  โ”‚ โ”‚            < >   quagga-libospf.............................................. OSPF library   โ”‚ โ”‚   
  โ”‚ โ”‚            -*-   quagga-libzebra............................................ zebra library   โ”‚ โ”‚   
  โ”‚ โ”‚            < >   quagga-ospf6d...................................... OSPFv3 routing engine   โ”‚ โ”‚   
  โ”‚ โ”‚            < >   quagga-ospfd....................................... OSPFv2 routing engine   โ”‚ โ”‚   
  โ”‚ โ”‚            < >   quagga-ripd........................................... RIP routing engine   โ”‚ โ”‚   
  โ”‚ โ”‚            < >   quagga-ripngd....................................... RIPNG routing engine   โ”‚ โ”‚   
  โ”‚ โ”‚            < >   quagga-vtysh................ integrated shell for Quagga routing software   โ”‚ โ”‚   
  โ”‚ โ”‚            <*>   quagga-watchquagga....................................... Quagga watchdog   โ”‚ โ”‚   
  โ”‚ โ”‚            <*>   quagga-zebra................................................ Zebra daemon   โ”‚ โ”‚   
  โ”‚ โ”‚                                                                                              โ”‚ โ”‚   

ๅ›žๅˆฐ M360P ่ทŸ็›ฎ้Œ„ make V=s

compile ้Žไบ†

้€ฒ M360P/proscend

make clean ๅ† make menuconfig

็ขบ่ช BGP ๅŠŸ่ƒฝๆœ‰้–‹ๅ•Ÿ

compile ้Žไบ†

upgrade ๅˆฐๆฟๅญ่ฉฆ่ฉฆ

้›–็„ถๆœ‰้ปžๅ•้กŒ ไฝ†ๅฏไปฅๅ…ˆ commit ไบ†

1155

commit b2f7c027c6ea828dd14f786c97abe1911105085e
Refs: [develop], {origin/develop}
Author: jeffrey <[email protected]>
Date:   Mon Jan 29 11:54:10 2018 +0800

    add quagga package for 'BGP' function

 m360p_defconfig                                    |  19 +-
 package/net/quagga/Makefile                        | 283 +++++++++++++++++
 package/net/quagga/files/quagga                    | 335 +++++++++++++++++++++
 package/net/quagga/files/quagga.conf               |   7 +
 package/net/quagga/files/quagga.init               |  11 +
 package/net/quagga/patches/140-holdtimer-set.patch |  22 ++
 .../net/quagga/patches/150-no-cross-fs-link.patch  |  40 +++
 .../quagga/patches/170-use-supported-pagers.patch  |  29 ++
 8 files changed, 739 insertions(+), 7 deletions(-)

1325

bgp module init fail ๆ˜ฏๅ› ็‚บ _verify_setting() ๆฒ’ๆœ‰ return ICOS_SUCCESS ้€™ๅ€‹ๆ•˜่ฟฐ

m300 project ๆฒ’้€™ๅ€‹ๅ•้กŒๅฏ่ƒฝๆ˜ฏ default return value ๅ‰›ๅฅฝๆ˜ฏ 0(ICOS_SUCCESS)

ไธŠ code ๅ…ˆ

commit fd363db2416cc232c946d8ca295d39aaa7aff9fe
Author: jeffrey <[email protected]>
Date:   Mon Jan 29 13:25:25 2018 +0800

    return 'ICOS_SUCCESS' explicitly

 proscend/prosrc/icos/icoslib/bgp/bgp.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

1335

ๅ…ถไป– module ไนŸๆœ‰้กžไผผ็š„ๅ•้กŒไธ€ไฝตไฟฎๆމ

commit 5e96029bcbf18de0f8140db5110f1be16248b749
Refs: [develop], {origin/develop}
Author: jeffrey <[email protected]>
Date:   Mon Jan 29 13:35:26 2018 +0800

    return 'ICOS_SUCCESS' explicitly

 proscend/prosrc/icos/icoslib/gre/gre.c           | 2 ++
 proscend/prosrc/icos/icoslib/ip_alias/ip_alias.c | 3 +--
 proscend/prosrc/icos/icoslib/pptpd/pptpd.c       | 2 ++
 3 files changed, 5 insertions(+), 2 deletions(-)

1540

commit aba75710050fac101b90b7aa70619e09e73dbc79
Refs: [develop], {origin/develop}
Author: jeffrey <[email protected]>
Date:   Mon Jan 29 15:29:34 2018 +0800

    workaroud the 'keepalived' package
    - use version 1.2.19 instead of 1.3.9
      - use 'git checkout 4006865' at 'https://github.com/openwrt/packages.git'
    - modify the 'DEPENDS' or it will be filled at compile
    - turn on the libnl package

 m360p_defconfig                                    |  4 +-
 package/net/keepalived/Makefile                    | 18 ++++----
 package/net/keepalived/files/hotplug-user          |  7 ---
 package/net/keepalived/files/keepalived.config     |  2 +-
 package/net/keepalived/files/keepalived.init       | 50 +++-------------------
 package/net/keepalived/files/keepalived.user       | 14 ------
 .../101-0001-vrrp-update-struct-msghdr.patch       | 50 ++++++++++++++++++++++
 ...Reinstate-initialisation-of-msghdr-fields.patch | 41 ++++++++++++++++++
 8 files changed, 109 insertions(+), 77 deletions(-)

1640

commit a2bcce7cbc5ea10342f91acfa9f897e2f1ab9e81
Refs: [develop], {origin/develop}
Author: jeffrey <[email protected]>
Date:   Mon Jan 29 16:26:00 2018 +0800

    keep the '/www.cgi-bin/luci' for reference now

 proscend/prosrc/webcgi/Makefile | 16 +++++-----------
 1 file changed, 5 insertions(+), 11 deletions(-)

1650

commit 7110aecfc2abec2288d29c2bc53e39dde967fa9e
Refs: [develop], {origin/develop}
Author: jeffrey <[email protected]>
Date:   Mon Jan 29 16:46:57 2018 +0800

    turn on 'openssl-util' - open source SSL toolkit (utility)

 m360p_defconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

1715

commit b851a54d04a4b3b3f693e2066395b8f8ff9a9d14
Refs: [develop], {origin/develop}
Author: jeffrey <[email protected]>
Date:   Mon Jan 29 17:11:04 2018 +0800

    for bring up proscend web service
    - stop the uhttpd at '/etc/rc.local' currently
      - uhttpd will tart first then stop
    - prepare the 'install' task for 'prosrc/www'

1800

commit 92aa9f75da975f0d4f4f42ac4f7372dde67ffd22
Refs: [develop], {origin/develop}
Author: jeffrey <[email protected]>
Date:   Mon Jan 29 17:58:40 2018 +0800

    now 'rc.local' does not stop the uhttpd

 proscend/base_fs/default/rootfs/etc/rc.local | 3 ---
 1 file changed, 3 deletions(-)
โš ๏ธ **GitHub.com Fallback** โš ๏ธ