MCPcopy Create free account
hub / github.com/F-Stack/f-stack / ngipi_rcvdata

Function ngipi_rcvdata

freebsd/netgraph/ng_ip_input.c:119–136  ·  view source on GitHub ↗

* Receive data */

Source from the content-addressed store, hash-verified

117 * Receive data
118 */
119static int
120ngipi_rcvdata(hook_p hook, item_p item)
121{
122 struct mbuf *m;
123
124 NGI_GET_M(item, m);
125 NG_FREE_ITEM(item);
126 if (curthread->td_ng_outbound)
127 netisr_queue(NETISR_IP, m);
128 else {
129 struct epoch_tracker et;
130
131 NET_EPOCH_ENTER(et);
132 netisr_dispatch(NETISR_IP, m);
133 NET_EPOCH_EXIT(et);
134 }
135 return 0;
136}
137
138/*
139 * Hook disconnection

Callers

nothing calls this directly

Calls 2

netisr_queueFunction · 0.85
netisr_dispatchFunction · 0.85

Tested by

no test coverage detected