ジョージ
ジョージ

Reputation: 1566

meaning of 'CG' in SIOCGIF* in netdevice(7)?

Linux netdevice(7) interface introduces a number of SIOCGIF* constants, for example, SIOCGIFNAME.

I suppose the latter reads as "socket i/o ?? interface name", where ?? stands for "CG".

So what is "CG" then? Shall be something simple, but I'm a little stuck here. ( And I'm in a habit of knowing of what my identifiers mean, hence the question )

Upvotes: 0

Views: 57

Answers (1)

Probably Socket I/O Control - Get InterFace NAME.

It seems obvious that ioctl stands for "I/O Control" (but if not then just consider that IOC stands for IOCTL)

We can see the TIOC prefix used on some older Terminal I/O Controls. T for Terminal and S for Socket - makes sense.

You can also notice the Get functions have G and the Set functions have S.

And IFNAME seems clear enough.

Upvotes: 1

Related Questions