Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TLMSP curl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
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
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
CYBER - Cyber Security
TS 103 523 MSP
TLMSP
TLMSP curl
Commits
11576b11
Commit
11576b11
authored
22 years ago
by
Daniel Stenberg
Browse files
Options
Downloads
Patches
Plain Diff
Nedelcho Stanev's work-around for SFU 3.0
parent
ce011b8a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/if2ip.h
+35
-0
35 additions, 0 deletions
lib/if2ip.h
with
35 additions
and
0 deletions
lib/if2ip.h
+
35
−
0
View file @
11576b11
...
...
@@ -29,5 +29,40 @@ extern char *Curl_if2ip(char *interface, char *buf, int buf_size);
#else
#define Curl_if2ip(a,b,c) NULL
#endif
#ifdef __INTERIX
/* Nedelcho Stanev's work-around for SFU 3.0 */
struct
ifreq
{
#define IFNAMSIZ 16
#define IFHWADDRLEN 6
union
{
char
ifrn_name
[
IFNAMSIZ
];
/* if name, e.g. "en0" */
}
ifr_ifrn
;
union
{
struct
sockaddr
ifru_addr
;
struct
sockaddr
ifru_broadaddr
;
struct
sockaddr
ifru_netmask
;
struct
sockaddr
ifru_hwaddr
;
short
ifru_flags
;
int
ifru_metric
;
int
ifru_mtu
;
}
ifr_ifru
;
};
/* This define was added by Daniel to avoid an extra #ifdef INTERIX in the
C code. */
#define ifr_dstaddr ifr_addr
#define ifr_name ifr_ifrn.ifrn_name
/* interface name */
#define ifr_addr ifr_ifru.ifru_addr
/* address */
#define ifr_broadaddr ifr_ifru.ifru_broadaddr
/* broadcast address */
#define ifr_netmask ifr_ifru.ifru_netmask
/* interface net mask */
#define ifr_flags ifr_ifru.ifru_flags
/* flags */
#define ifr_hwaddr ifr_ifru.ifru_hwaddr
/* MAC address */
#define ifr_metric ifr_ifru.ifru_metric
/* metric */
#define ifr_mtu ifr_ifru.ifru_mtu
/* mtu */
#define SIOCGIFADDR _IOW('s', 102, struct ifreq)
/* Get if addr */
#endif
/* interix */
#endif
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