Check-in [e894818bf1]
Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:If netlink permission denied, just don't run netlink task
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: e894818bf1ea8a360ab8e9426d5bb6459b53df1c
User & Date: bernd 2020-02-25 22:50:24
Context
2020-02-25
23:23
Snap-based config init check-in: 2ade3d4f87 user: bernd tags: trunk
22:50
If netlink permission denied, just don't run netlink task check-in: e894818bf1 user: bernd tags: trunk
2020-02-24
23:22
Add special case for SNAP to setup environment check-in: 7ee854e7ac user: bernd tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to linux/net.fs.

121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
    REPEAT
    check-preferred? ;
: wait-for-address ( -- )
    BEGIN  read-netlink?
	netlink( 2dup address? IF  2dup .rtaddr THEN )
    address? check-preferred? or  UNTIL ;
: netlink-loop ( -- )
    netlink-sock 0= IF  get-netlink  THEN
    BEGIN
	wait-for-address  !!0depth!!
	new-preferred? IF
	    nat( ." new preferred IP: " )
	    netlink-done? @ IF
		nat( ." dht-beacon" cr )
		netlink-done? off netlink-again? off







|







121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
    REPEAT
    check-preferred? ;
: wait-for-address ( -- )
    BEGIN  read-netlink?
	netlink( 2dup address? IF  2dup .rtaddr THEN )
    address? check-preferred? or  UNTIL ;
: netlink-loop ( -- )
    netlink-sock 0= IF  ['] get-netlink catch -525 = ?EXIT  THEN
    BEGIN
	wait-for-address  !!0depth!!
	new-preferred? IF
	    nat( ." new preferred IP: " )
	    netlink-done? @ IF
		nat( ." dht-beacon" cr )
		netlink-done? off netlink-again? off