Main index | Section 4 | Options |
#include <sys/types.h>
#include <netinet/in.h>
#include <netgraph/ng_cisco.h>
The downstream hook should connect to the synchronous line. On the other side of the node are the inet, inet6, atalk, and ipx hooks, which transmit and receive raw IP, IPv6, AppleTalk, and IPX packets, respectively. Typically these hooks would connect to the corresponding hooks on an ng_iface(4) type node.
Whenever such an inquire packet is received, the node sends a NGM_CISCO_GET_IPADDR control message to the peer node connected to the inet hook (if any). If the peer responds, then that response is used. This is the automatic method.
If the peer does not respond, the node falls back on its cached value for the IP address and netmask. This cached value can be set at any time with a NGM_CISCO_SET_IPADDR message, and this is the manual method.
If the inet hook is connected to the inet hook of an ng_iface(4) node, as is usually the case, then configuration is automatic as the ng_iface(4) understands the NGM_CISCO_GET_IPADDR message.
downstream | |
The connection to the synchronous line. | |
inet | |
IP hook. | |
inet6 | |
IPv6 hook. | |
atalk | |
AppleTalk hook. | |
ipx | |
IPX hook. | |
NGM_CISCO_SET_IPADDR ( setipaddr) | |
This command takes an array of two struct in_addr arguments. The first is the IP address of the corresponding interface and the second is the netmask. | |
NGM_CISCO_GET_IPADDR ( getipaddr) | |
This command returns the IP configuration in the same format used by NGM_CISCO_SET_IPADDR. This command is also sent by this node type to the inet peer whenever an IP address inquiry packet is received. | |
NGM_CISCO_GET_STATUS ( getstats) | |
Returns a
struct ngciscostat:
struct ngciscostat { uint32_t seqRetries; /* # unack'd retries */ uint32_t keepAlivePeriod; /* in seconds */ }; | |
RFC 1547, Requirements for an Internet Standard Point-to-Point Protocol,
,NG_CISCO (4) | January 19, 1999 |
Main index | Section 4 | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.
“ | As soon as we started programming, we found to our surprise that it wasn't as easy to get programs right as we had thought. Debugging had to be discovered. I can remember the exact instant when I realized that a large part of my life from then on was going to be spent in finding mistakes in my own programs. | ” |
— Maurice Wilkes |