#include <linux/module.h>#include <linux/kernel.h>#include "lwip/ip_addr.h"#include "lwip/api.h"#include "lwip/sys.h"#include <rtl_sched.h>Include dependency graph for udpclient.c:
Go to the source code of this file.
Functions | |
| void | udpclient (void *arg) |
| int | init_module (void) |
| void | cleanup_module (void) |
Variables | |
| void * | status |
| netconn * | conn |
| netbuf * | buf |
| ip_addr | ipaddr |
| char | buffer [5] |
|
|
Definition at line 53 of file udpclient.c.
00053 {
00054 printk("\n UDP echo client module removed\n");
00055 }
|
|
|
Definition at line 46 of file udpclient.c. References NULL, sys_thread_new(), and udpclient().
00046 {
00047 printk("\n\n UDP echo client module inserted\n\n");
00048 sys_thread_new(udpclient, NULL, 0);
00049 return 0;
00050 }
|
Here is the call graph for this function:
|
|
Definition at line 21 of file udpclient.c. References buf, buffer, conn, IP4_ADDR, ipaddr, netbuf_new(), netbuf_ref(), netconn_connect(), netconn_new(), netconn_send(), NETCONN_UDP, and sys_thread_exit(). Referenced by init_module().
00021 {
00022
00023 IP4_ADDR(&ipaddr, 158,42,58,139);
00024
00025 conn = netconn_new(NETCONN_UDP);
00026 netconn_connect(conn, &ipaddr, 7);
00027
00028 buffer[0]='h';
00029 buffer[1]='o';
00030 buffer[2]='l';
00031 buffer[3]='a';
00032 buffer[4]='\0';
00033
00034 buf=netbuf_new();
00035
00036 netbuf_ref(buf,&buffer,sizeof(buffer));
00037 netconn_send(conn,buf);
00038
00039 rtl_printf(" UDP CLient sending %s\n", buffer);
00040
00041 sys_thread_exit();
00042 }
|
Here is the call graph for this function:
|
|
Definition at line 17 of file udpclient.c. Referenced by udpclient(). |
|
|
Definition at line 19 of file udpclient.c. Referenced by boomerang_rx(), copy_from_pbuf(), rt_3c905c_send_packet(), rt_pci_restore_state(), rt_rtl8139_send_packet(), udpclient(), and udpecho_thread(). |
|
|
Definition at line 16 of file udpclient.c. |
|
|
Definition at line 18 of file udpclient.c. Referenced by add_arp_entry(), arp_init(), arp_lookup(), arp_query(), arp_tmr(), etharp_output(), etharp_query(), netif_add(), netif_set_addr(), netif_set_ipaddr(), rt_3c905c_set_ip_filter(), rt_3c905cif_output(), rt_rtl8139_set_ip_filter(), rt_rtl8139if_output(), tcp_client(), udpclient(), udpecho_thread(), and update_arp_entry(). |
|
|
Definition at line 15 of file udpclient.c. Referenced by addr_callback(), ares_init_options(), ares_parse_a_reply(), ares_parse_ptr_reply(), ares_query(), ares_search(), boomerang_interrupt(), callback(), dns_client(), dns_client_callback(), end_aquery(), end_hquery(), end_query(), end_squery(), gethostbynameaddr(), host_callback(), qcallback(), rt_pci_find_capability(), rt_rtl8139_interrupt(), search_callback(), sys_thread_exit(), and vortex_error(). |
1.3.4