Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pcom-laboratoare-public
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Clara-Maria CIARNĂU (78551)
pcom-laboratoare-public
Commits
c1971cc1
Commit
c1971cc1
authored
2 years ago
by
Vlad-Andrei BĂDOIU (78692)
Browse files
Options
Downloads
Patches
Plain Diff
lab4: Add README.md
parent
76c76518
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lab4/README.md
+21
-0
21 additions, 0 deletions
lab4/README.md
with
21 additions
and
0 deletions
lab4/README.md
0 → 100644
+
21
−
0
View file @
c1971cc1
Pachetele primite/trimise de router vor avea urmatorul format:
```
typedef struct {
int len;
char payload[MAX_LEN];
int interface;
} msg;
```
In implementarea laboratorului vom folosii urmatoarele functii:
**get\_packet**
care primeste un pachet si
**send\_packet**
care trimite un pachet pe o
interfata specificata.
```
/* Blocking function, blocks if there is no packet to be received.
On success returns 0 and populates m. m must be allocated! */
int get_packet(msg *m);
int send_packet(int interface, msg *m);
```
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment