Changeset 313824a in mainline for uspace/srv/net/inetsrv/inet_link.c
- Timestamp:
- 2013-07-16T17:05:30Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1f97352
- Parents:
- fc4bf2a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/inetsrv/inet_link.c
rfc4bf2a r313824a 52 52 static bool first_link6 = true; 53 53 54 static FIBRIL_MUTEX_INITIALIZE(ip_ident_lock); 55 static uint16_t ip_ident = 0; 56 54 57 static int inet_link_open(service_id_t); 55 58 static int inet_iplink_recv(iplink_t *, iplink_recv_sdu_t *, uint16_t); … … 366 369 packet.proto = proto; 367 370 packet.ttl = ttl; 371 372 /* Allocate identifier */ 373 fibril_mutex_lock(&ip_ident_lock); 374 packet.ident = ++ip_ident; 375 fibril_mutex_unlock(&ip_ident_lock); 376 368 377 packet.df = df; 369 378 packet.data = dgram->data; 370 379 packet.size = dgram->size; 371 380 381 int rc; 372 382 size_t offs = 0; 373 int rc;374 383 375 384 do { … … 421 430 packet.proto = proto; 422 431 packet.ttl = ttl; 432 433 /* Allocate identifier */ 434 fibril_mutex_lock(&ip_ident_lock); 435 packet.ident = ++ip_ident; 436 fibril_mutex_unlock(&ip_ident_lock); 437 423 438 packet.df = df; 424 439 packet.data = dgram->data;
Note:
See TracChangeset
for help on using the changeset viewer.