MCPcopy
hub / github.com/osrg/gobgp / sendCommand

Method sendCommand

pkg/zebra/zapi.go:1545–1557  ·  view source on GitHub ↗
(command APIType, vrfID uint32, body Body)

Source from the content-addressed store, hash-verified

1543}
1544
1545func (c *Client) sendCommand(command APIType, vrfID uint32, body Body) {
1546 m := &Message{
1547 Header: Header{
1548 Len: HeaderSize(c.Version),
1549 Marker: HeaderMarker(c.Version),
1550 Version: c.Version,
1551 VrfID: vrfID,
1552 Command: command.ToEach(c.Version, c.Software),
1553 },
1554 Body: body,
1555 }
1556 c.send(m)
1557}
1558
1559// SendHello sends HELLO message to zebra daemon.
1560func (c *Client) SendHello() {

Callers 9

SendHelloMethod · 0.95
SendRouterIDAddMethod · 0.95
SendInterfaceAddMethod · 0.95
SendRedistributeMethod · 0.95
SendIPRouteMethod · 0.95
SendNexthopRegisterMethod · 0.95
SendGetLabelChunkMethod · 0.95
SendVrfLabelMethod · 0.95

Calls 4

sendMethod · 0.95
HeaderSizeFunction · 0.85
HeaderMarkerFunction · 0.85
ToEachMethod · 0.45

Tested by

no test coverage detected