Changeset 637a3b4 in mainline
- Timestamp:
- 2012-03-09T19:41:43Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ffa8912
- Parents:
- fa101c4
- Location:
- uspace/srv/inet
- Files:
-
- 3 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified uspace/srv/inet/Makefile ¶
rfa101c4 r637a3b4 32 32 SOURCES = \ 33 33 addrobj.c \ 34 icmp.c \ 34 35 inet.c \ 35 36 inet_link.c \ -
TabularUnified uspace/srv/inet/inet.c ¶
rfa101c4 r637a3b4 48 48 49 49 #include "addrobj.h" 50 #include "icmp.h" 51 #include "icmp_std.h" 50 52 #include "inet.h" 51 53 #include "inetcfg.h" … … 110 112 } 111 113 112 staticint inet_route_packet(inet_dgram_t *dgram, uint8_t proto, uint8_t ttl,114 int inet_route_packet(inet_dgram_t *dgram, uint8_t proto, uint8_t ttl, 113 115 int df) 114 116 { … … 338 340 log_msg(LVL_DEBUG, "inet_recv_dgram_local()"); 339 341 342 /* ICMP messages are handled internally */ 343 if (proto == IP_PROTO_ICMP) 344 return icmp_recv(dgram); 345 340 346 client = inet_client_find(proto); 341 347 if (client == NULL) { -
TabularUnified uspace/srv/inet/inet.h ¶
rfa101c4 r637a3b4 117 117 extern int inet_ev_recv(inet_client_t *, inet_dgram_t *); 118 118 extern int inet_recv_packet(inet_packet_t *); 119 extern int inet_route_packet(inet_dgram_t *, uint8_t, uint8_t, int); 119 120 120 121 #endif -
TabularUnified uspace/srv/inet/pdu.c ¶
rfa101c4 r637a3b4 51 51 static uint16_t ip_ident = 0; 52 52 53 #define INET_CHECKSUM_INIT 0xffff54 55 53 /** One's complement addition. 56 54 * … … 65 63 } 66 64 67 staticuint16_t inet_checksum_calc(uint16_t ivalue, void *data, size_t size)65 uint16_t inet_checksum_calc(uint16_t ivalue, void *data, size_t size) 68 66 { 69 67 uint16_t sum; -
TabularUnified uspace/srv/inet/pdu.h ¶
rfa101c4 r637a3b4 38 38 #define INET_PDU_H_ 39 39 40 #include <sys/types.h> 40 41 #include "inet.h" 42 43 #define INET_CHECKSUM_INIT 0xffff 44 45 extern uint16_t inet_checksum_calc(uint16_t, void *, size_t); 41 46 42 47 extern int inet_pdu_encode(inet_packet_t *, void **, size_t *);
Note:
See TracChangeset
for help on using the changeset viewer.