Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Feb 2017 20:03:04 +0100
From:      =?UTF-8?B?xYF1a2FzeiBXw7NqY2lr?= <lukasz.wojcik@zoho.com>
To:        freebsd-net@freebsd.org
Subject:   NETGRAPH's ng_cisco and IPv6 support
Message-ID:  <9980efee-f51c-2e48-59e1-099a609fc0a3@zoho.com>

next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------5AFC86F01A2CAF91540AA2D7
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit

Hello everyone,

I've recently started to develop certain driver that uses 'ng_cisco' 
netgraph module for CHDLC en-/de-capsulation.
When it connects with ng_cisco node via 'inet' hook, everything works 
fine, but there is an issue when trying to
use 'inet6' node. cisco_notify() routine only sends flow control 
messages to nodes connected via 'inet' hook,
completely ignoring those connected via 'inet6'. This poses some problem 
if peer node relies on link status information
passed from ng_cisco. I'd therefore like to suggest/discuss a patch 
(attached to this email). All it does is to make ng_cisco node
pass flow control messages to *both* 'inet' and 'inet6' peers. It seems 
to me that it is both possible and sensible to
expect both mentioned hooks to be connected at the same time.

I would appreciate any feedback.

Best regards,
-ŁW

--------------5AFC86F01A2CAF91540AA2D7
Content-Type: text/plain; charset=UTF-8;
 name="cisco_ipv6_notify_all2.patch"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
 filename="cisco_ipv6_notify_all2.patch"

ZGlmZiAtLWdpdCBhL3N5cy9uZXRncmFwaC9uZ19jaXNjby5jIGIvc3lzL25ldGdyYXBoL25n
X2Npc2NvLmMKaW5kZXggN2U2NGEwZi4uMTJlN2UwMyAxMDA2NDQKLS0tIGEvc3lzL25ldGdy
YXBoL25nX2Npc2NvLmMKKysrIGIvc3lzL25ldGdyYXBoL25nX2Npc2NvLmMKQEAgLTYzNywx
MCArNjM3LDIwIEBAIGNpc2NvX25vdGlmeShzY19wIHNjLCB1aW50MzJfdCBjbWQpCiAJc3Ry
dWN0IG5nX21lc2cgKm1zZzsKIAlpbnQgZHVtbXlfZXJyb3IgPSAwOwogCi0JaWYgKHNjLT5p
bmV0Lmhvb2sgPT0gTlVMTCkgLyogbm90aGluZyB0byBub3RpZnkgKi8KKwlpZiAoc2MtPmlu
ZXQuaG9vayA9PSBOVUxMICYmIHNjLT5pbmV0Ni5ob29rID09IE5VTEwpCisJCS8qIG5vdGhp
bmcgdG8gbm90aWZ5ICovCiAJCXJldHVybjsKLSAgICAgICAgICAgICAgICAKLQlOR19NS01F
U1NBR0UobXNnLCBOR01fRkxPV19DT09LSUUsIGNtZCwgMCwgTV9OT1dBSVQpOwotCWlmICht
c2cgIT0gTlVMTCkKLQkJTkdfU0VORF9NU0dfSE9PSyhkdW1teV9lcnJvciwgc2MtPm5vZGUs
IG1zZywgc2MtPmluZXQuaG9vaywgMCk7CisKKwlpZiAoc2MtPmluZXQuaG9vayAhPSBOVUxM
KSB7CisJCU5HX01LTUVTU0FHRShtc2csIE5HTV9GTE9XX0NPT0tJRSwgY21kLCAwLCBNX05P
V0FJVCk7CisJCWlmIChtc2cgIT0gTlVMTCkKKwkJCU5HX1NFTkRfTVNHX0hPT0soZHVtbXlf
ZXJyb3IsIHNjLT5ub2RlLCBtc2csCisJCQkgICAgc2MtPmluZXQuaG9vaywgMCk7CisJfQor
CWlmIChzYy0+aW5ldDYuaG9vayAhPSBOVUxMKSB7CisJCU5HX01LTUVTU0FHRShtc2csIE5H
TV9GTE9XX0NPT0tJRSwgY21kLCAwLCBNX05PV0FJVCk7CisJCWlmIChtc2cgIT0gTlVMTCkK
KwkJCU5HX1NFTkRfTVNHX0hPT0soZHVtbXlfZXJyb3IsIHNjLT5ub2RlLCBtc2csCisJCQkg
ICAgc2MtPmluZXQ2Lmhvb2ssIDApOworCX0KIH0K
--------------5AFC86F01A2CAF91540AA2D7--




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9980efee-f51c-2e48-59e1-099a609fc0a3>