The flags field indicates what UDP checksum policy that should be used for a UDP session. This can be either to switch UDP checksumming off completely, or to use UDP Lite in which the checksum covers only parts of the datagram...
// main.c
static void vSetupIFTask (void *pvParameters) {
...
while (1) {
physts = lpcPHYStsPoll();
if (physts & PHY_LINK_CHANGED) {
if (physts & PHY_LINK_CONNECTED) {
tcpip_callback_with_block((tcpip_callback_fn) netif_set_link_up, (void *) &lpc_netif, 1);
}
else {
tcpip_callback_with_block((tcpip_callback_fn) netif_set_link_down, (void *) &lpc_netif, 1);
}
vTaskDelay(configTICK_RATE_HZ / 4);
}
}
}
برچسب:
نویسنده: هستی رستمیان